From c497679a21dca307725cf4340f3923f921bfef83 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 24 Nov 2003 01:42:27 +0000 Subject: 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) --- irc/xchat-gnome/Makefile | 22 +++++++++++++++++----- irc/xchat-gnome/pkg-plist | 2 +- irc/xchat2/Makefile | 22 +++++++++++++++++----- irc/xchat2/pkg-plist | 2 +- 4 files changed, 36 insertions(+), 12 deletions(-) (limited to 'irc') 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 + +.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 +.include 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 + +.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 +.include 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 -- cgit v1.2.3