aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-06-17 10:37:15 +0800
committerwill <will@FreeBSD.org>2000-06-17 10:37:15 +0800
commit6dd7168cddcf03645b7b524d0eaec762ba4a5c26 (patch)
treedde5ee054b255f449dc09b875bfef1cb678c4d3e /x11-toolkits
parent09860925596143f36628cd7f462f54e90412d7ae (diff)
downloadfreebsd-ports-graphics-6dd7168cddcf03645b7b524d0eaec762ba4a5c26.tar.gz
freebsd-ports-graphics-6dd7168cddcf03645b7b524d0eaec762ba4a5c26.tar.zst
freebsd-ports-graphics-6dd7168cddcf03645b7b524d0eaec762ba4a5c26.zip
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')
-rw-r--r--x11-toolkits/p5-Gtk/Makefile11
-rw-r--r--x11-toolkits/p5-Tcl-Tk/Makefile12
-rw-r--r--x11-toolkits/p5-TclTk/Makefile12
-rw-r--r--x11-toolkits/p5-Tk/Makefile16
4 files changed, 29 insertions, 22 deletions
diff --git a/x11-toolkits/p5-Gtk/Makefile b/x11-toolkits/p5-Gtk/Makefile
index 144c41af477..5fbcce3abd6 100644
--- a/x11-toolkits/p5-Gtk/Makefile
+++ b/x11-toolkits/p5-Gtk/Makefile
@@ -5,25 +5,26 @@
# $FreeBSD$
#
-PORTNAME= p5-Gtk
+PORTNAME= Gtk
PORTVERSION= 0.7000
CATEGORIES= x11-toolkits lang perl5
MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/perl/ \
${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Gtk
-DISTNAME= Gtk-Perl-0.7000
+DISTNAME= ${PORTNAME}-Perl-${PORTVERSION}
+PKGNAMEPREFIX= p5-
MAINTAINER= vanilla@FreeBSD.org
LIB_DEPENDS= gdk_imlib.5:${PORTSDIR}/graphics/imlib
-USE_PERL5= YES
+USE_PERL5= yes
MAN3= Gtk::GtkColorSelectButton.3
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
do-configure:
- @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL \
- --with-gdkimlib --without-gnome
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL \
+ --with-gdkimlib --without-gnome CC="${CC}" CCFLAGS="${CFLAGS}"
.include <bsd.port.mk>
diff --git a/x11-toolkits/p5-Tcl-Tk/Makefile b/x11-toolkits/p5-Tcl-Tk/Makefile
index e8c1d24ca93..c0590bf50b1 100644
--- a/x11-toolkits/p5-Tcl-Tk/Makefile
+++ b/x11-toolkits/p5-Tcl-Tk/Makefile
@@ -5,26 +5,26 @@
# $FreeBSD$
#
-PORTNAME= p5-Tcl-Tk
+PORTNAME= TclTk
PORTVERSION= b2
CATEGORIES= x11-toolkits lang perl5 tk82
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Tcl
-DISTNAME= TclTk-b2
+PKGNAMEPREFIX= p5-
MAINTAINER= jfitz@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/i386-freebsd/Tcl.pm:${PORTSDIR}/lang/p5-Tcl
LIB_DEPENDS= tk82.1:${PORTSDIR}/x11-toolkits/tk82
-USE_PERL5= YES
-
-WRKSRC= ${WRKDIR}/TclTk
+USE_PERL5= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Tcl::Tk.3
do-configure:
- @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL \
+ CC="${CC}" CCFLAGS="${CFLAGS}"
.include <bsd.port.mk>
diff --git a/x11-toolkits/p5-TclTk/Makefile b/x11-toolkits/p5-TclTk/Makefile
index e8c1d24ca93..c0590bf50b1 100644
--- a/x11-toolkits/p5-TclTk/Makefile
+++ b/x11-toolkits/p5-TclTk/Makefile
@@ -5,26 +5,26 @@
# $FreeBSD$
#
-PORTNAME= p5-Tcl-Tk
+PORTNAME= TclTk
PORTVERSION= b2
CATEGORIES= x11-toolkits lang perl5 tk82
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Tcl
-DISTNAME= TclTk-b2
+PKGNAMEPREFIX= p5-
MAINTAINER= jfitz@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/i386-freebsd/Tcl.pm:${PORTSDIR}/lang/p5-Tcl
LIB_DEPENDS= tk82.1:${PORTSDIR}/x11-toolkits/tk82
-USE_PERL5= YES
-
-WRKSRC= ${WRKDIR}/TclTk
+USE_PERL5= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Tcl::Tk.3
do-configure:
- @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL \
+ CC="${CC}" CCFLAGS="${CFLAGS}"
.include <bsd.port.mk>
diff --git a/x11-toolkits/p5-Tk/Makefile b/x11-toolkits/p5-Tk/Makefile
index 5e578372427..0ef8793e12a 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>