1998-04-18 02:04:44 +00:00
|
|
|
# New ports collection makefile for: BitchX ircII client
|
|
|
|
# Date created: 26 Jan 1998
|
|
|
|
# Whom: griffin
|
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1998-04-18 02:04:44 +00:00
|
|
|
#
|
|
|
|
|
2001-03-15 20:31:36 +00:00
|
|
|
PORTNAME= BitchX
|
|
|
|
PORTVERSION= 1.0c18
|
2000-06-01 16:25:45 +00:00
|
|
|
CATEGORIES= irc gnome
|
2000-01-22 14:12:17 +00:00
|
|
|
MASTER_SITES= ftp://ftp.bitchx.com/pub/BitchX/source/ \
|
2000-09-16 17:27:39 +00:00
|
|
|
ftp://ftp.bitchx.org/pub/BitchX/source/
|
2001-03-15 20:31:36 +00:00
|
|
|
DISTNAME= ircii-pana-1.0c18
|
1998-04-18 02:04:44 +00:00
|
|
|
|
2001-03-27 14:20:40 +00:00
|
|
|
MAINTAINER= LoRd_CJ@dalusers.com
|
1998-04-18 02:04:44 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/BitchX
|
2000-10-05 07:22:56 +00:00
|
|
|
|
2001-03-15 20:31:36 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2000-01-22 04:56:41 +00:00
|
|
|
USE_GMAKE= yes
|
2000-10-05 07:22:56 +00:00
|
|
|
WANT_ESOUND= yes
|
|
|
|
WANT_GNOME= yes
|
|
|
|
CONFIGURE_ARGS= --exec-prefix="${PREFIX}/share" \
|
|
|
|
--bindir="${PREFIX}/bin" \
|
|
|
|
--datadir="${PREFIX}/share" \
|
|
|
|
--libdir="${PREFIX}/share"
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2001-04-15 15:36:26 +00:00
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2000-10-05 07:22:56 +00:00
|
|
|
|
2000-10-13 09:23:58 +00:00
|
|
|
MAN1= BitchX.1
|
|
|
|
|
2000-10-05 07:22:56 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(HAVE_GNOME)
|
|
|
|
USE_GNOME= yes
|
|
|
|
CONFIGURE_ARGS+=--with-gtk
|
2000-01-22 04:56:41 +00:00
|
|
|
.else
|
2000-10-05 07:22:56 +00:00
|
|
|
CONFIGURE_ARGS+=--without-gtk
|
2000-07-07 18:24:43 +00:00
|
|
|
.endif
|
2001-01-28 22:23:25 +00:00
|
|
|
.if (defined(HAVE_ESOUND) && defined(HAVE_GNOME))
|
2000-10-05 07:22:56 +00:00
|
|
|
USE_ESOUND= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-sound
|
2000-09-16 17:27:39 +00:00
|
|
|
.endif
|
2001-04-06 21:36:03 +00:00
|
|
|
.if defined(WITH_IPV6)
|
2001-01-28 22:23:25 +00:00
|
|
|
USE_IPV6= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
|
|
.endif
|
2000-10-05 07:22:56 +00:00
|
|
|
.if defined(WITH_TCL)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/tcl8.3/tcl.h:${PORTSDIR}/lang/tcl83
|
|
|
|
CONFIGURE_ARGS+=--with-tcl \
|
2000-12-20 13:44:27 +00:00
|
|
|
--with-tcl-includes=${LOCALBASE}/include/tcl8.3 \
|
|
|
|
--with-tcl-libs=${LOCALBASE}/lib
|
2000-10-05 07:22:56 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3"
|
|
|
|
post-extract:
|
|
|
|
@uudecode -p ${FILESDIR}/tcl-freebsd.o.uu > ${WRKSRC}/source/tcl.o
|
2000-09-01 02:51:06 +00:00
|
|
|
.endif
|
2000-10-05 07:22:56 +00:00
|
|
|
|
2000-12-20 13:44:27 +00:00
|
|
|
.if defined(WITH_SOCKS5)
|
2001-01-28 22:23:25 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
|
|
|
|
CONFIGURE_ARGS+= --with-socks5=${LOCALBASE}
|
2000-12-20 13:44:27 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
.endif
|
|
|
|
|
2000-07-07 18:24:43 +00:00
|
|
|
.if defined(WITH_PLUGINS)
|
2001-03-15 20:31:36 +00:00
|
|
|
CONFIGURE_ARGS+=--with-plugins
|
2000-10-05 07:22:56 +00:00
|
|
|
PLIST_SUB+= PLUGINS:=""
|
2000-07-07 18:24:43 +00:00
|
|
|
.else
|
2000-10-05 07:22:56 +00:00
|
|
|
CONFIGURE_ARGS+=--without-plugins
|
|
|
|
PLIST_SUB+= PLUGINS:="@comment "
|
2000-01-22 04:56:41 +00:00
|
|
|
.endif
|
|
|
|
|
2000-10-05 07:22:56 +00:00
|
|
|
pre-patch:
|
2001-03-15 21:45:12 +00:00
|
|
|
.if defined(WITH_LATIN)
|
2000-10-05 07:22:56 +00:00
|
|
|
@${PERL} -pi -e "s!#undef LATIN1!#define LATIN1!" ${WRKSRC}/include/config.h
|
2000-09-16 17:27:39 +00:00
|
|
|
.endif
|
2001-03-15 21:45:12 +00:00
|
|
|
@${PERL} -pi -e "s!bzip2!true!g" ${WRKSRC}/Makefile.in
|
1999-06-27 16:16:16 +00:00
|
|
|
|
2000-01-22 04:56:41 +00:00
|
|
|
pre-extract:
|
2000-09-30 15:57:08 +00:00
|
|
|
@${ECHO} "Available switches:"
|
|
|
|
@${ECHO} "-------------------"
|
2001-01-28 22:23:25 +00:00
|
|
|
.if !defined(WITH_PLUGINS)
|
2000-09-30 15:57:08 +00:00
|
|
|
@${ECHO} "WITH_PLUGINS - Build the plugins"
|
2001-01-28 22:23:25 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_LATIN)
|
2000-09-30 15:57:08 +00:00
|
|
|
@${ECHO} "WITH_LATIN - Recommended if you are using an ISO-8859-1 display"
|
2001-01-28 22:23:25 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_TCL)
|
2000-09-30 15:57:08 +00:00
|
|
|
@${ECHO} "WITH_TCL - Build BitchX with TCL scripting"
|
2001-01-28 22:23:25 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_SOCKS5)
|
2000-12-20 13:44:27 +00:00
|
|
|
@${ECHO} "WITH_SOCKS5 - Build BitchX with SOCKS5 support"
|
2001-01-28 22:23:25 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_IPV6)
|
|
|
|
@${ECHO} "WITH_IPV6 - Build BitchX with IPV6 support"
|
|
|
|
.endif
|
2000-09-09 13:14:50 +00:00
|
|
|
|
2000-01-22 04:56:41 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/bx/help
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/bitchx
|
2000-09-01 02:51:06 +00:00
|
|
|
${TAR} --directory ${WRKSRC}/bitchx-docs -cf - . --exclude CVS | \
|
|
|
|
${TAR} --directory ${PREFIX}/share/bx/help -xf -
|
2000-01-22 04:56:41 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/bxfaq.html ${PREFIX}/share/doc/bitchx
|
|
|
|
.endif
|
2000-09-01 02:51:06 +00:00
|
|
|
|
2000-10-05 07:22:56 +00:00
|
|
|
.include <bsd.port.post.mk>
|