aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--irc/xchat-gnome/Makefile22
-rw-r--r--irc/xchat-gnome/pkg-plist2
-rw-r--r--irc/xchat2/Makefile22
-rw-r--r--irc/xchat2/pkg-plist2
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