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
|
|
|
#
|
|
|
|
|
2002-05-01 00:42:45 +00:00
|
|
|
PORTNAME= BitchX
|
2004-03-28 14:35:13 +00:00
|
|
|
PORTVERSION= 1.1
|
|
|
|
CATEGORIES+= irc
|
2004-05-20 18:15:33 +00:00
|
|
|
MASTER_SITES= ftp://ftp.bitchx.org/pub/BitchX/source/ \
|
2002-05-16 17:24:13 +00:00
|
|
|
ftp://ftp.cyberpunkz.org/pub/BitchX/source/ \
|
|
|
|
ftp://ftp.cyberpunkz.org/pub/BitchX/tcl-o/:tcl
|
2004-08-01 18:59:26 +00:00
|
|
|
DISTFILES= ircii-pana-${PORTVERSION}-final${EXTRACT_SUFX}
|
2004-03-28 14:35:13 +00:00
|
|
|
EXTRACT_ONLY= ircii-pana-${PORTVERSION}-final${EXTRACT_SUFX}
|
1998-04-18 02:04:44 +00:00
|
|
|
|
2004-08-11 11:58:55 +00:00
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
2003-02-22 14:38:12 +00:00
|
|
|
COMMENT?= "An alternative ircII color client with optional GTK/GNOME support"
|
1998-04-18 02:04:44 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/BitchX
|
2002-11-07 11:54:23 +00:00
|
|
|
USE_PERL5= yes
|
2002-07-28 21:28:01 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-02-04 06:50:04 +00:00
|
|
|
WANT_GNOME= yes
|
2000-01-22 04:56:41 +00:00
|
|
|
USE_GMAKE= yes
|
2002-07-28 21:28:01 +00:00
|
|
|
CONFIGURE_TARGET=
|
|
|
|
CONFIGURE_ARGS+=--exec-prefix="${PREFIX}/share" \
|
2000-10-05 07:22:56 +00:00
|
|
|
--bindir="${PREFIX}/bin" \
|
|
|
|
--datadir="${PREFIX}/share" \
|
2002-07-28 21:28:01 +00:00
|
|
|
--libdir="${PREFIX}/share" \
|
|
|
|
--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2000-10-05 07:22:56 +00:00
|
|
|
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
|
|
|
|
|
2004-01-20 14:47:08 +00:00
|
|
|
#OPTIONS= ESOND "With ESOUND support" off \
|
|
|
|
# GNOME "With GTK/GNOME1 Frontend" off \
|
|
|
|
# IPV6 "With IPV6 support" off \
|
|
|
|
# LATIN "Recommended if you are using an ISO-8859-1 display" off \
|
|
|
|
# PLUGINS "With BitchX Plugins" off \
|
|
|
|
# SOCKS5 "With SOCKS5 support" off \
|
|
|
|
# SSL "With SSL" off \
|
|
|
|
# TCL "With TCL support" off \
|
|
|
|
# XMMS "With XMMS plugin" off
|
2004-01-20 14:37:19 +00:00
|
|
|
|
2002-06-08 19:41:09 +00:00
|
|
|
.if defined(WITH_GNOME)
|
2002-08-08 17:13:44 +00:00
|
|
|
USE_X_PREFIX= yes
|
2002-07-14 18:30:16 +00:00
|
|
|
USE_GNOME= gnomelibs
|
2000-10-05 07:22:56 +00:00
|
|
|
CONFIGURE_ARGS+=--with-gtk
|
2002-10-25 09:52:44 +00:00
|
|
|
CFLAGS+= -I${X11BASE}/include/gnome-1.0/
|
2002-06-08 19:41:09 +00:00
|
|
|
PLIST_SUB+= NOGNOME:="@comment " GNOME:=""
|
2000-01-22 04:56:41 +00:00
|
|
|
.else
|
2000-10-05 07:22:56 +00:00
|
|
|
CONFIGURE_ARGS+=--without-gtk
|
2002-06-08 19:41:09 +00:00
|
|
|
PLIST_SUB+= GNOME:="@comment " NOGNOME:=""
|
2000-07-07 18:24:43 +00:00
|
|
|
.endif
|
2002-07-14 18:30:16 +00:00
|
|
|
.if (defined(WITH_ESOUND) && defined(WITH_GNOME))
|
|
|
|
USE_GNOME+= esound
|
2000-10-05 07:22:56 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-sound
|
2000-09-16 17:27:39 +00:00
|
|
|
.endif
|
2003-04-23 15:14:34 +00:00
|
|
|
|
2003-10-02 18:06:05 +00:00
|
|
|
.if defined(WITH_SSL)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
.endif
|
|
|
|
|
2004-03-28 14:35:13 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_TCL)
|
2004-08-01 18:59:26 +00:00
|
|
|
DISTFILES+= freebsd4-tcl83-bx1.0c19-tcl.o:tcl
|
2004-03-28 14:35:13 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_XMMS)
|
|
|
|
LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_IPV6)
|
|
|
|
USE_AUTOCONF_VER=253
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == "alpha" || ${ARCH} == "ia64" || ${ARCH} == "amd64"
|
2004-09-27 23:02:20 +00:00
|
|
|
IGNORE= "dumps core on startup"
|
2003-05-11 21:37:54 +00:00
|
|
|
.endif
|
|
|
|
|
2001-04-06 21:36:03 +00:00
|
|
|
.if defined(WITH_IPV6)
|
2001-01-28 22:23:25 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
|
|
.endif
|
2003-04-23 14:21:56 +00:00
|
|
|
|
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-libs=${LOCALBASE}/lib
|
2002-10-25 09:52:44 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3"
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3
|
2003-04-23 15:14:34 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2004-01-05 09:10:55 +00:00
|
|
|
.if ${OSVERSION} > 500017
|
|
|
|
BROKEN= "WITH_TCL is not available on 5.X, try to install without TCL"
|
|
|
|
.endif
|
2000-09-01 02:51:06 +00:00
|
|
|
.endif
|
2003-04-23 14:21: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
|
2003-04-23 15:14:34 +00:00
|
|
|
|
2002-10-25 09:52:44 +00:00
|
|
|
.if defined(WITH_SSL)
|
|
|
|
CONFIGURE_ARGS+= --with-ssl
|
|
|
|
.endif
|
2003-04-23 15:14:34 +00:00
|
|
|
|
2000-07-07 18:24:43 +00:00
|
|
|
.if defined(WITH_PLUGINS)
|
2003-03-27 19:12:50 +00:00
|
|
|
PLUGINS= abot,acro,aim,arcfour,autocycle,blowfish,cavlink,encrypt,fserv,hint,identd,nap,pkga,possum,qbx,qmail,scan,wavplay
|
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
|
2003-04-23 15:14:34 +00:00
|
|
|
|
2002-07-08 20:28:55 +00:00
|
|
|
.if defined(WITH_XMMS)
|
|
|
|
PLUGINS= xmms
|
|
|
|
PLIST_SUB+= XMMS:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= XMMS:="@comment "
|
|
|
|
.endif
|
|
|
|
.if (defined(WITH_XMMS) && defined(WITH_PLUGINS))
|
2003-03-27 19:12:50 +00:00
|
|
|
PLUGINS= abot,acro,aim,arcfour,autocycle,blowfish,cavlink,encrypt,fserv,hint,identd,nap,pkga,possum,qbx,qmail,scan,wavplay,xmms
|
2002-07-08 20:28:55 +00:00
|
|
|
.endif
|
2003-04-23 15:14:34 +00:00
|
|
|
|
2002-07-08 20:28:55 +00:00
|
|
|
.if (defined(WITH_PLUGINS) || defined(WITH_XMMS))
|
2002-10-25 09:52:44 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
CONFIGURE_ARGS+= --with-plugins=${PLUGINS}
|
2002-07-08 20:28:55 +00:00
|
|
|
.endif
|
2002-10-25 09:52:44 +00:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
|
2000-01-22 04:56:41 +00:00
|
|
|
|
2003-04-23 15:14:34 +00:00
|
|
|
.if defined(WITH_TCL)
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
2004-03-28 14:35:13 +00:00
|
|
|
${DIALOG} --yesno "SECURITY NOTICE: TCL support is only \
|
2003-04-23 15:14:34 +00:00
|
|
|
available by linking a precompiled binary object into the Application. \
|
2004-01-05 08:50:39 +00:00
|
|
|
Do you really want to proceed building BitchX with TCL support?" 7 70 || ${FALSE}
|
2003-04-23 15:14:34 +00:00
|
|
|
.endif # BATCH
|
|
|
|
|
|
|
|
.endif # WITH_TCL
|
2003-04-22 17:13:18 +00:00
|
|
|
|
2003-04-22 16:35:48 +00:00
|
|
|
pre-extract:
|
2002-06-08 19:41:09 +00:00
|
|
|
@${ECHO_CMD} "Available switches:"
|
|
|
|
@${ECHO_CMD} "-------------------"
|
2002-07-08 20:28:55 +00:00
|
|
|
.if !defined (WITH_XMMS)
|
2002-07-28 21:28:01 +00:00
|
|
|
@${ECHO_CMD} "WITH_XMMS - Building BitchX with XMMS-Plugin"
|
2002-07-08 20:28:55 +00:00
|
|
|
.endif
|
2001-01-28 22:23:25 +00:00
|
|
|
.if !defined(WITH_PLUGINS)
|
2002-07-08 20:28:55 +00:00
|
|
|
@${ECHO_CMD} "WITH_PLUGINS - Building BitchX with some other plugins"
|
2001-01-28 22:23:25 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_LATIN)
|
2002-07-28 21:28:01 +00:00
|
|
|
@${ECHO_CMD} "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)
|
2002-07-28 21:28:01 +00:00
|
|
|
@${ECHO_CMD} "WITH_TCL - Build BitchX with TCL scripting"
|
2001-01-28 22:23:25 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_SOCKS5)
|
2002-07-28 21:28:01 +00:00
|
|
|
@${ECHO_CMD} "WITH_SOCKS5 - Build BitchX with SOCKS5 support"
|
2001-01-28 22:23:25 +00:00
|
|
|
.endif
|
2002-10-25 09:52:44 +00:00
|
|
|
.if !defined(WITH_SSL)
|
|
|
|
@${ECHO_CMD} "WITH_SSL - Build BitchX with SSL support"
|
|
|
|
.endif
|
2001-01-28 22:23:25 +00:00
|
|
|
.if !defined(WITH_IPV6)
|
2002-07-28 21:28:01 +00:00
|
|
|
@${ECHO_CMD} "WITH_IPV6 - Build BitchX with IPV6 support"
|
2002-10-25 09:52:44 +00:00
|
|
|
@${ECHO_CMD} " (Please Note: /detach crashes BitchX with IPv6)"
|
2002-06-08 19:41:09 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_GNOME)
|
2002-07-28 21:28:01 +00:00
|
|
|
@${ECHO_CMD} "WITH_GNOME - Build BitchX with Gtk-Frontend"
|
2001-01-28 22:23:25 +00:00
|
|
|
.endif
|
2003-04-22 17:13:18 +00:00
|
|
|
|
2002-05-16 17:24:13 +00:00
|
|
|
.if defined(WITH_TCL)
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${CP} ${DISTDIR}/freebsd4-tcl83-bx1.0c19-tcl.o ${WRKSRC}/source/tcl.o
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2003-04-23 15:14:34 +00:00
|
|
|
pre-patch:
|
|
|
|
.if defined(WITH_LATIN)
|
|
|
|
${REINPLACE_CMD} -e 's|#undef LATIN1|#define LATIN1|g' ${WRKSRC}/include/config.h
|
|
|
|
.endif
|
|
|
|
${REINPLACE_CMD} -e 's|bzip2|true|g' ${WRKSRC}/Makefile.in
|
|
|
|
|
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 -
|
2002-07-28 21:28:01 +00:00
|
|
|
.else
|
|
|
|
${RMDIR} ${PREFIX}/share/bx/help
|
2000-01-22 04:56:41 +00:00
|
|
|
.endif
|
2004-04-19 07:50:04 +00:00
|
|
|
.if defined(WITH_GNOME)
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/gtkBitchX-${PORTVERSION}-final
|
|
|
|
.else
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/BitchX-${PORTVERSION}-final
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/scr-bx
|
|
|
|
.endif
|
2000-09-01 02:51:06 +00:00
|
|
|
|
2002-10-25 09:52:44 +00:00
|
|
|
.include <bsd.port.post.mk>
|