diff -ruN xchat2.orig/Makefile xchat2/Makefile --- xchat2.orig/Makefile Wed Feb 12 04:31:58 2003 +++ xchat2/Makefile Tue Feb 18 21:01:31 2003 @@ -7,12 +7,14 @@ PORTNAME= xchat2 PORTVERSION= 2.0.0 +PORTREVISION= 1 CATEGORIES= irc gnome ipv6 MASTER_SITES= http://xchat.org/files/source/2.0/ \ http://xchat.linuxpower.org/files/source/2.0/ DISTNAME= xchat-${PORTVERSION} MAINTAINER= gnome@FreeBSD.org +COMMENT= An X11 IRC client using the GTK+ 2 toolkit LIB_DEPENDS= gtk-x11-2.0.200:${PORTSDIR}/x11-toolkits/gtk20 @@ -48,8 +50,21 @@ PLIST_SUB= PYTHON="@comment " .endif +.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} \ + -I${LOCALBASE}/include/tcl8.3" \ + LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \ + -L${LOCALBASE}/lib/tcl8.3" +PLIST_SUB= TCL="" +.else +CONFIGURE_ARGS+= --enable-tcl=no +PLIST_SUB= TCL="@comment " +.endif + pre-everything:: -.if !defined(WITH_PYTHON) || !defined(WITH_SOCKS) +.if !defined(WITH_PYTHON) || !defined(WITH_SOCKS) || !defined(WITH_TCL) @${ECHO_MSG} "You may specify the following on the command line:" @${ECHO_MSG} "" .endif @@ -58,6 +73,9 @@ .endif .if !defined(WITH_SOCKS) @${ECHO_MSG} "WITH_SOCKS=yes for SOCKS5 proxy support" +.endif +.if !defined(WITH_TCL) + @${ECHO_MSG} "WITH_TCL=yes for tcl support" .endif post-patch: diff -ruN xchat2.orig/pkg-comment xchat2/pkg-comment --- xchat2.orig/pkg-comment Sun Aug 18 06:21:24 2002 +++ xchat2/pkg-comment Thu Jan 1 01:00:00 1970 @@ -1 +0,0 @@ -An X11 IRC client using the GTK+ 2 toolkit diff -ruN xchat2.orig/pkg-plist xchat2/pkg-plist --- xchat2.orig/pkg-plist Wed Feb 12 04:31:58 2003 +++ xchat2/pkg-plist Mon Feb 17 15:16:29 2003 @@ -2,6 +2,7 @@ bin/xchat-text lib/xchat/plugins/perl.so %%PYTHON%%lib/xchat/plugins/python.so +%%TCL%%lib/xchat/plugins/tcl.so share/gnome/apps/Internet/xchat.desktop share/gnome/pixmaps/xchat.png share/locale/am/LC_MESSAGES/xchat.mo