openbsd-ports/x11/p5-Tk/Makefile

54 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.25 2005/09/23 19:41:45 pvalchev Exp $
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
2005-01-12 22:23:09 -05:00
COMMENT= "Tk 8.4 bindings for Perl"
2002-04-21 07:05:46 -04:00
COMMENT-demo= "demonstrate the features of ptk"
2005-01-12 22:23:09 -05:00
VERSION= 804.027
2002-04-21 07:05:46 -04:00
DISTNAME= Tk-${VERSION}
PKGNAME= p5-Tk-${VERSION}p0
2002-04-21 07:05:46 -04:00
PKGNAME-demo= p5-Tk-demo-${VERSION}
CATEGORIES= x11 devel perl5
# GPL + custom
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Tk/}
MULTI_PACKAGES= -demo
2001-09-02 01:29:29 -04:00
SUBPACKAGE?=
LIB_DEPENDS= png.4::graphics/png
RUN_DEPENDS= :p5-HTML-Parser-*:www/p5-HTML-Parser
BUILD_DEPENDS= ${RUN_DEPENDS}
USE_X11= Yes
2005-01-12 22:23:09 -05:00
CONFIGURE_STYLE= perl
2002-04-21 07:05:46 -04:00
2002-06-08 21:36:54 -04:00
REGRESS_IS_INTERACTIVE= Yes
REGRESS_FLAGS= DISPLAY="${DISPLAY}" XAUTHORITY="${HOME}/.Xauthority"
pre-configure:
@perl -i -pe 's,%%LOCALBASE%%,${LOCALBASE},g' ${WRKSRC}/PNG/Makefile.PL
2002-06-08 21:36:54 -04:00
pre-regress:
.ifndef DISPLAY
@echo requires access to X11; exit 1
2002-06-08 21:36:54 -04:00
.endif
2004-12-19 12:36:31 -05:00
.if empty(SUBPACKAGE)
WANTLIB= X11 m z
2004-12-19 12:36:31 -05:00
.endif
.if defined(PACKAGING) && !empty(SUBPACKAGE)
LIB_DEPENDS=
RUN_DEPENDS= ::x11/p5-Tk
.endif
.include <bsd.port.mk>