summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/p5-Tk
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-06-17 02:37:15 +0000
committerwill <will@FreeBSD.org>2000-06-17 02:37:15 +0000
commit6dd7168cddcf03645b7b524d0eaec762ba4a5c26 (patch)
treedde5ee054b255f449dc09b875bfef1cb678c4d3e /x11-toolkits/p5-Tk
parent09860925596143f36628cd7f462f54e90412d7ae (diff)
downloadFreeBSD-ports-6dd7168cddcf03645b7b524d0eaec762ba4a5c26.zip
FreeBSD-ports-6dd7168cddcf03645b7b524d0eaec762ba4a5c26.tar.gz
Lots and lots of cleanups. Teach p5-* in general about PKGNAMEPREFIX.
Add some missing/wrong dependencies. Show how to respect CC/CFLAGS. Many miscellaneous modifications. I used more excessive hacks to force p5-Jcode and p5-WWW-Search to respect CC/CFLAGS. Patches largely done by: Christian Weisgerber <naddy@mips.inka.de>
Diffstat (limited to 'x11-toolkits/p5-Tk')
-rw-r--r--x11-toolkits/p5-Tk/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/x11-toolkits/p5-Tk/Makefile b/x11-toolkits/p5-Tk/Makefile
index 5e57837..0ef8793 100644
--- a/x11-toolkits/p5-Tk/Makefile
+++ b/x11-toolkits/p5-Tk/Makefile
@@ -5,17 +5,18 @@
# $FreeBSD$
#
-PORTNAME= p5-Tk
+PORTNAME= Tk
PORTVERSION= 800.021
CATEGORIES= x11-toolkits tk80 perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Tk
-DISTNAME= Tk${PORTVERSION}
+DISTNAME= ${PORTNAME}${PORTVERSION}
+PKGNAMEPREFIX= p5-
MAINTAINER= jfitz@FreeBSD.org
-USE_XLIB= YES
-USE_PERL5= YES
+USE_XLIB= yes
+USE_PERL5= yes
MAN1= ptked.1 \
ptksh.1 \
@@ -124,6 +125,11 @@ MAN3= Tk.3 \
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
do-configure:
- @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL PREFIX=${PREFIX} INSTALLSCRIPT=${PREFIX}/bin INSTALLMAN1DIR=${PREFIX}/man/man1
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL \
+ PREFIX=${PREFIX} CC="${CC}" CCFLAGS="${CFLAGS}"
+ @${PERL} -i -p \
+ -e 's/^(CC = ).*/$$1 ${CC}/;' \
+ -e 's/^(CCFLAGS = ).*/$$1 ${CFLAGS}/' \
+ `find ${WRKSRC} -name Makefile`
.include <bsd.port.mk>
OpenPOWER on IntegriCloud