1998-04-18 04:04:44 +02:00
|
|
|
# New ports collection makefile for: BitchX ircII client
|
|
|
|
# Date created: 26 Jan 1998
|
|
|
|
# Whom: griffin
|
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1998-04-18 04:04:44 +02:00
|
|
|
#
|
|
|
|
|
2002-05-01 02:42:45 +02:00
|
|
|
PORTNAME= BitchX
|
|
|
|
PORTVERSION= 1.0c19
|
2003-03-27 20:12:50 +01:00
|
|
|
PORTREVISION?= 2
|
2001-08-10 17:33:39 +02:00
|
|
|
CATEGORIES+= irc gnome
|
2000-01-22 15:12:17 +01:00
|
|
|
MASTER_SITES= ftp://ftp.bitchx.com/pub/BitchX/source/ \
|
2002-05-16 19:24:13 +02:00
|
|
|
ftp://ftp.bitchx.org/pub/BitchX/source/ \
|
|
|
|
ftp://ftp.cyberpunkz.org/pub/BitchX/source/ \
|
|
|
|
ftp://ftp.cyberpunkz.org/pub/BitchX/tcl-o/:tcl
|
2002-06-08 21:41:09 +02:00
|
|
|
.if !defined(WITH_TCL)
|
|
|
|
DISTNAME= ircii-pana-${PORTVERSION}
|
|
|
|
.else
|
|
|
|
DISTFILES= ircii-pana-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
freebsd4-tcl83-bx1.0c19-tcl.o:tcl
|
|
|
|
EXTRACT_ONLY= ircii-pana-${PORTVERSION}${EXTRACT_SUFX}
|
2002-05-16 19:24:13 +02:00
|
|
|
.endif
|
1998-04-18 04:04:44 +02:00
|
|
|
|
2002-10-25 11:52:44 +02:00
|
|
|
MAINTAINER?= arved@FreeBSD.org
|
2003-02-22 15:38:12 +01:00
|
|
|
COMMENT?= "An alternative ircII color client with optional GTK/GNOME support"
|
1998-04-18 04:04:44 +02:00
|
|
|
|
2002-07-08 22:28:55 +02:00
|
|
|
.if defined(WITH_XMMS)
|
2002-11-28 17:37:35 +01:00
|
|
|
LIB_DEPENDS+= xmms.3:${PORTSDIR}/multimedia/xmms
|
2002-07-08 22:28:55 +02:00
|
|
|
.endif
|
2002-06-08 21:41:09 +02:00
|
|
|
|
1998-04-18 04:04:44 +02:00
|
|
|
WRKSRC= ${WRKDIR}/BitchX
|
2002-11-07 12:54:23 +01:00
|
|
|
USE_PERL5= yes
|
2002-07-28 23:28:01 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-11-18 16:51:08 +01:00
|
|
|
.if defined(WITH_IPV6)
|
2002-11-11 10:20:12 +01:00
|
|
|
USE_AUTOCONF_VER=253
|
2002-11-18 16:51:08 +01:00
|
|
|
.endif
|
2002-07-28 23:28:01 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2000-01-22 05:56:41 +01:00
|
|
|
USE_GMAKE= yes
|
2002-07-28 23:28:01 +02:00
|
|
|
CONFIGURE_TARGET=
|
|
|
|
CONFIGURE_ARGS+=--exec-prefix="${PREFIX}/share" \
|
2000-10-05 09:22:56 +02:00
|
|
|
--bindir="${PREFIX}/bin" \
|
|
|
|
--datadir="${PREFIX}/share" \
|
2002-07-28 23:28:01 +02:00
|
|
|
--libdir="${PREFIX}/share" \
|
|
|
|
--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2000-10-05 09:22:56 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2001-04-15 17:36:26 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2000-10-05 09:22:56 +02:00
|
|
|
|
2000-10-13 11:23:58 +02:00
|
|
|
MAN1= BitchX.1
|
|
|
|
|
2002-06-08 21:41:09 +02:00
|
|
|
.if defined(WITH_GNOME)
|
2002-08-08 19:13:44 +02:00
|
|
|
USE_X_PREFIX= yes
|
2002-07-14 20:30:16 +02:00
|
|
|
USE_GNOME= gnomelibs
|
2000-10-05 09:22:56 +02:00
|
|
|
CONFIGURE_ARGS+=--with-gtk
|
2002-10-25 11:52:44 +02:00
|
|
|
CFLAGS+= -I${X11BASE}/include/gnome-1.0/
|
2002-06-08 21:41:09 +02:00
|
|
|
PLIST_SUB+= NOGNOME:="@comment " GNOME:=""
|
2000-01-22 05:56:41 +01:00
|
|
|
.else
|
2000-10-05 09:22:56 +02:00
|
|
|
CONFIGURE_ARGS+=--without-gtk
|
2002-06-08 21:41:09 +02:00
|
|
|
PLIST_SUB+= GNOME:="@comment " NOGNOME:=""
|
2000-07-07 20:24:43 +02:00
|
|
|
.endif
|
2002-07-14 20:30:16 +02:00
|
|
|
.if (defined(WITH_ESOUND) && defined(WITH_GNOME))
|
|
|
|
USE_GNOME+= esound
|
2000-10-05 09:22:56 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-sound
|
2000-09-16 19:27:39 +02:00
|
|
|
.endif
|
2002-10-25 11:52:44 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2001-04-06 23:36:03 +02:00
|
|
|
.if defined(WITH_IPV6)
|
2001-01-28 23:23:25 +01:00
|
|
|
USE_IPV6= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
|
|
.endif
|
2000-10-05 09:22:56 +02:00
|
|
|
.if defined(WITH_TCL)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/tcl8.3/tcl.h:${PORTSDIR}/lang/tcl83
|
|
|
|
CONFIGURE_ARGS+=--with-tcl \
|
2000-12-20 14:44:27 +01:00
|
|
|
--with-tcl-libs=${LOCALBASE}/lib
|
2002-10-25 11:52:44 +02:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3"
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3
|
2000-09-01 04:51:06 +02:00
|
|
|
.endif
|
2000-12-20 14:44:27 +01:00
|
|
|
.if defined(WITH_SOCKS5)
|
2001-01-28 23:23:25 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
|
|
|
|
CONFIGURE_ARGS+= --with-socks5=${LOCALBASE}
|
2000-12-20 14:44:27 +01:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
.endif
|
2002-10-25 11:52:44 +02:00
|
|
|
.if defined(WITH_SSL)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+= --with-ssl
|
|
|
|
.endif
|
2000-07-07 20:24:43 +02:00
|
|
|
.if defined(WITH_PLUGINS)
|
2003-03-27 20:12:50 +01:00
|
|
|
PLUGINS= abot,acro,aim,arcfour,autocycle,blowfish,cavlink,encrypt,fserv,hint,identd,nap,pkga,possum,qbx,qmail,scan,wavplay
|
2000-10-05 09:22:56 +02:00
|
|
|
PLIST_SUB+= PLUGINS:=""
|
2000-07-07 20:24:43 +02:00
|
|
|
.else
|
2000-10-05 09:22:56 +02:00
|
|
|
CONFIGURE_ARGS+=--without-plugins
|
|
|
|
PLIST_SUB+= PLUGINS:="@comment "
|
2000-01-22 05:56:41 +01:00
|
|
|
.endif
|
2002-07-08 22:28:55 +02: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 20:12:50 +01:00
|
|
|
PLUGINS= abot,acro,aim,arcfour,autocycle,blowfish,cavlink,encrypt,fserv,hint,identd,nap,pkga,possum,qbx,qmail,scan,wavplay,xmms
|
2002-07-08 22:28:55 +02:00
|
|
|
.endif
|
|
|
|
.if (defined(WITH_PLUGINS) || defined(WITH_XMMS))
|
2002-10-25 11:52:44 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
CONFIGURE_ARGS+= --with-plugins=${PLUGINS}
|
2002-07-08 22:28:55 +02:00
|
|
|
.endif
|
2002-10-25 11:52:44 +02:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
|
2000-01-22 05:56:41 +01:00
|
|
|
|
2000-10-05 09:22:56 +02:00
|
|
|
pre-patch:
|
2001-03-15 22:45:12 +01:00
|
|
|
.if defined(WITH_LATIN)
|
2002-07-28 23:28:01 +02:00
|
|
|
${REINPLACE_CMD} -e 's|#undef LATIN1|#define LATIN1|g' ${WRKSRC}/include/config.h
|
2000-09-16 19:27:39 +02:00
|
|
|
.endif
|
2002-07-28 23:28:01 +02:00
|
|
|
${REINPLACE_CMD} -e 's|bzip2|true|g' ${WRKSRC}/Makefile.in
|
1999-06-27 18:16:16 +02:00
|
|
|
|
2000-01-22 05:56:41 +01:00
|
|
|
pre-extract:
|
2002-06-08 21:41:09 +02:00
|
|
|
@${ECHO_CMD} "Available switches:"
|
|
|
|
@${ECHO_CMD} "-------------------"
|
2002-07-08 22:28:55 +02:00
|
|
|
.if !defined (WITH_XMMS)
|
2002-07-28 23:28:01 +02:00
|
|
|
@${ECHO_CMD} "WITH_XMMS - Building BitchX with XMMS-Plugin"
|
2002-07-08 22:28:55 +02:00
|
|
|
.endif
|
2001-01-28 23:23:25 +01:00
|
|
|
.if !defined(WITH_PLUGINS)
|
2002-07-08 22:28:55 +02:00
|
|
|
@${ECHO_CMD} "WITH_PLUGINS - Building BitchX with some other plugins"
|
2001-01-28 23:23:25 +01:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_LATIN)
|
2002-07-28 23:28:01 +02:00
|
|
|
@${ECHO_CMD} "WITH_LATIN - Recommended if you are using an ISO-8859-1 display"
|
2001-01-28 23:23:25 +01:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_TCL)
|
2002-07-28 23:28:01 +02:00
|
|
|
@${ECHO_CMD} "WITH_TCL - Build BitchX with TCL scripting"
|
2001-01-28 23:23:25 +01:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_SOCKS5)
|
2002-07-28 23:28:01 +02:00
|
|
|
@${ECHO_CMD} "WITH_SOCKS5 - Build BitchX with SOCKS5 support"
|
2001-01-28 23:23:25 +01:00
|
|
|
.endif
|
2002-10-25 11:52:44 +02:00
|
|
|
.if !defined(WITH_SSL)
|
|
|
|
@${ECHO_CMD} "WITH_SSL - Build BitchX with SSL support"
|
|
|
|
.endif
|
2001-01-28 23:23:25 +01:00
|
|
|
.if !defined(WITH_IPV6)
|
2002-07-28 23:28:01 +02:00
|
|
|
@${ECHO_CMD} "WITH_IPV6 - Build BitchX with IPV6 support"
|
2002-10-25 11:52:44 +02:00
|
|
|
@${ECHO_CMD} " (Please Note: /detach crashes BitchX with IPv6)"
|
2002-06-08 21:41:09 +02:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_GNOME)
|
2002-07-28 23:28:01 +02:00
|
|
|
@${ECHO_CMD} "WITH_GNOME - Build BitchX with Gtk-Frontend"
|
2001-01-28 23:23:25 +01:00
|
|
|
.endif
|
2002-05-16 19:24:13 +02:00
|
|
|
.if defined(WITH_TCL)
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${CP} ${DISTDIR}/freebsd4-tcl83-bx1.0c19-tcl.o ${WRKSRC}/source/tcl.o
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2000-01-22 05:56:41 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/bx/help
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/bitchx
|
2000-09-01 04:51:06 +02:00
|
|
|
${TAR} --directory ${WRKSRC}/bitchx-docs -cf - . --exclude CVS | \
|
|
|
|
${TAR} --directory ${PREFIX}/share/bx/help -xf -
|
2000-01-22 05:56:41 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/bxfaq.html ${PREFIX}/share/doc/bitchx
|
2002-07-28 23:28:01 +02:00
|
|
|
.else
|
|
|
|
${RMDIR} ${PREFIX}/share/bx/help
|
2000-01-22 05:56:41 +01:00
|
|
|
.endif
|
2000-09-01 04:51:06 +02:00
|
|
|
|
2002-10-25 11:52:44 +02:00
|
|
|
.include <bsd.port.post.mk>
|