diff options
author | marcus <marcus@FreeBSD.org> | 2003-11-24 09:42:27 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-11-24 09:42:27 +0800 |
commit | 881396eca8eb9f6da0eea37660434ce93dc37dcf (patch) | |
tree | 0da09566b9a84a88343dda6392a00de75d62d984 /irc | |
parent | 7c480d2e47c43a184fc1b5554debb68e37a63068 (diff) | |
download | freebsd-ports-gnome-881396eca8eb9f6da0eea37660434ce93dc37dcf.tar.gz freebsd-ports-gnome-881396eca8eb9f6da0eea37660434ce93dc37dcf.tar.zst freebsd-ports-gnome-881396eca8eb9f6da0eea37660434ce93dc37dcf.zip |
Don't build in Perl support on amd64, and add a new WITHOUT_PERL knob to
disable it on other architectures.
Approved by: portmgr (implicit)
Diffstat (limited to 'irc')
-rw-r--r-- | irc/xchat-gnome/Makefile | 22 | ||||
-rw-r--r-- | irc/xchat-gnome/pkg-plist | 2 | ||||
-rw-r--r-- | irc/xchat2/Makefile | 22 | ||||
-rw-r--r-- | irc/xchat2/pkg-plist | 2 |
4 files changed, 36 insertions, 12 deletions
diff --git a/irc/xchat-gnome/Makefile b/irc/xchat-gnome/Makefile index 63765934c2d6..bb7bfd1d43a4 100644 --- a/irc/xchat-gnome/Makefile +++ b/irc/xchat-gnome/Makefile @@ -19,15 +19,13 @@ COMMENT= An X11 IRC client using the GTK+ 2 toolkit USE_X_PREFIX= yes USE_BZIP2= yes USE_GMAKE= yes -USE_PERL5= yes USE_GNOME= gnomeprefix gnomehack gtk20 GNU_CONFIGURE= yes USE_REINPLACE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" CONFIGURE_ARGS= --enable-nls \ - --enable-ipv6 \ - --enable-perl + --enable-ipv6 CONFLICTS= xchat-1* @@ -50,7 +48,7 @@ PLIST_SUB+= PYTHON="@comment " .if defined(WITH_TCL) LIB_DEPENDS+= tcl83.1:${PORTSDIR}/lang/tcl83 CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.3 -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \ +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \ -I${LOCALBASE}/include/tcl8.3" \ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \ -L${LOCALBASE}/lib/tcl8.3" @@ -60,6 +58,17 @@ CONFIGURE_ARGS+=--enable-tcl=no PLIST_SUB+= TCL="@comment " .endif +.include <bsd.port.pre.mk> + +.if ${ARCH} == "amd64" || defined(WITHOUT_PERL) +CONFIGURE_ARGS+=--disable-perl +PLIST_SUB+= PERL="@comment " +.else +USE_PERL5= yes +CONFIGURE_ARGS+=--enable-perl +PLIST_SUB+= PERL="" +.endif + pre-everything:: .if !defined(WITH_PYTHON) || !defined(WITH_SOCKS) || !defined(WITH_TCL) @${ECHO_MSG} "You may specify the following on the command line:" @@ -74,9 +83,12 @@ pre-everything:: .if !defined(WITH_TCL) @${ECHO_MSG} "WITH_TCL=yes for tcl support" .endif +.if ${ARCH} != "amd64" && !defined(WITHOUT_PERL) + @${ECHO_MSG} "WITHOUT_PERL=yes to disable Perl support" +.endif post-patch: @${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VER/config -lpython\$$PY_VER ${PTHREAD_LIBS} -lutil"|' \ ${WRKSRC}/configure -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/irc/xchat-gnome/pkg-plist b/irc/xchat-gnome/pkg-plist index 7990fd95d97a..8069d4c9974d 100644 --- a/irc/xchat-gnome/pkg-plist +++ b/irc/xchat-gnome/pkg-plist @@ -1,5 +1,5 @@ bin/xchat -lib/xchat/plugins/perl.so +%%PERL%%lib/xchat/plugins/perl.so %%PYTHON%%lib/xchat/plugins/python.so %%TCL%%lib/xchat/plugins/tcl.so share/gnome/apps/Internet/xchat.desktop diff --git a/irc/xchat2/Makefile b/irc/xchat2/Makefile index 63765934c2d6..bb7bfd1d43a4 100644 --- a/irc/xchat2/Makefile +++ b/irc/xchat2/Makefile @@ -19,15 +19,13 @@ COMMENT= An X11 IRC client using the GTK+ 2 toolkit USE_X_PREFIX= yes USE_BZIP2= yes USE_GMAKE= yes -USE_PERL5= yes USE_GNOME= gnomeprefix gnomehack gtk20 GNU_CONFIGURE= yes USE_REINPLACE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" CONFIGURE_ARGS= --enable-nls \ - --enable-ipv6 \ - --enable-perl + --enable-ipv6 CONFLICTS= xchat-1* @@ -50,7 +48,7 @@ PLIST_SUB+= PYTHON="@comment " .if defined(WITH_TCL) LIB_DEPENDS+= tcl83.1:${PORTSDIR}/lang/tcl83 CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.3 -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \ +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \ -I${LOCALBASE}/include/tcl8.3" \ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \ -L${LOCALBASE}/lib/tcl8.3" @@ -60,6 +58,17 @@ CONFIGURE_ARGS+=--enable-tcl=no PLIST_SUB+= TCL="@comment " .endif +.include <bsd.port.pre.mk> + +.if ${ARCH} == "amd64" || defined(WITHOUT_PERL) +CONFIGURE_ARGS+=--disable-perl +PLIST_SUB+= PERL="@comment " +.else +USE_PERL5= yes +CONFIGURE_ARGS+=--enable-perl +PLIST_SUB+= PERL="" +.endif + pre-everything:: .if !defined(WITH_PYTHON) || !defined(WITH_SOCKS) || !defined(WITH_TCL) @${ECHO_MSG} "You may specify the following on the command line:" @@ -74,9 +83,12 @@ pre-everything:: .if !defined(WITH_TCL) @${ECHO_MSG} "WITH_TCL=yes for tcl support" .endif +.if ${ARCH} != "amd64" && !defined(WITHOUT_PERL) + @${ECHO_MSG} "WITHOUT_PERL=yes to disable Perl support" +.endif post-patch: @${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VER/config -lpython\$$PY_VER ${PTHREAD_LIBS} -lutil"|' \ ${WRKSRC}/configure -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/irc/xchat2/pkg-plist b/irc/xchat2/pkg-plist index 7990fd95d97a..8069d4c9974d 100644 --- a/irc/xchat2/pkg-plist +++ b/irc/xchat2/pkg-plist @@ -1,5 +1,5 @@ bin/xchat -lib/xchat/plugins/perl.so +%%PERL%%lib/xchat/plugins/perl.so %%PYTHON%%lib/xchat/plugins/python.so %%TCL%%lib/xchat/plugins/tcl.so share/gnome/apps/Internet/xchat.desktop |