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
|
|
|
#
|
|
|
|
|
2000-04-12 08:28:35 +02:00
|
|
|
PORTNAME= BitchX
|
2000-09-01 04:51:06 +02:00
|
|
|
PORTVERSION= 1.0c17
|
2000-06-01 18:25:45 +02:00
|
|
|
CATEGORIES= irc gnome
|
2000-01-22 15:12:17 +01:00
|
|
|
MASTER_SITES= ftp://ftp.bitchx.com/pub/BitchX/source/ \
|
2000-09-16 19:27:39 +02:00
|
|
|
ftp://ftp.bitchx.org/pub/BitchX/source/
|
1998-04-18 04:04:44 +02:00
|
|
|
|
2000-06-28 14:33:57 +02:00
|
|
|
MAINTAINER= cj@vallcom.net
|
1998-04-18 04:04:44 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/BitchX
|
2000-10-05 09:22:56 +02:00
|
|
|
|
2000-01-29 22:54:28 +01:00
|
|
|
USE_AUTOCONF= yes
|
2000-01-22 05:56:41 +01:00
|
|
|
USE_GMAKE= yes
|
2000-10-05 09:22:56 +02: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" \
|
|
|
|
LIBS="-L{LOCALBASE}/lib"
|
|
|
|
|
2000-10-13 11:23:58 +02:00
|
|
|
MAN1= BitchX.1
|
|
|
|
|
2000-10-05 09:22:56 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(HAVE_GNOME)
|
|
|
|
USE_GNOME= yes
|
|
|
|
CONFIGURE_ARGS+=--with-gtk
|
2000-01-22 05:56:41 +01:00
|
|
|
.else
|
2000-10-05 09:22:56 +02:00
|
|
|
CONFIGURE_ARGS+=--without-gtk
|
2000-07-07 20:24:43 +02:00
|
|
|
.endif
|
2000-10-05 09:22:56 +02:00
|
|
|
.if defined(HAVE_ESOUND)
|
|
|
|
USE_ESOUND= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-sound
|
2000-09-16 19:27:39 +02:00
|
|
|
.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 \
|
|
|
|
--with-tcl-includes=/usr/local/include/tcl8.3 \
|
|
|
|
--with-tcl-libs=/usr/local/lib
|
|
|
|
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 04:51:06 +02:00
|
|
|
.endif
|
2000-10-05 09:22:56 +02:00
|
|
|
|
2000-07-07 20:24:43 +02:00
|
|
|
.if defined(WITH_PLUGINS)
|
2000-10-05 09:22:56 +02:00
|
|
|
CONFIGURE_ARGS+=--with-plugins=pkga,possum,encrypt,hint,abot,acro,amp,blowfish,scan,wavplay,qmail,fserv,nap,qbx
|
|
|
|
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
|
|
|
|
|
2000-10-05 09:22:56 +02:00
|
|
|
.if defined(WITH_LATIN)
|
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi -e "s!#undef LATIN1!#define LATIN1!" ${WRKSRC}/include/config.h
|
2000-09-16 19:27:39 +02:00
|
|
|
.endif
|
1999-06-27 18:16:16 +02:00
|
|
|
|
2000-01-22 05:56:41 +01:00
|
|
|
pre-extract:
|
2000-09-30 17:57:08 +02:00
|
|
|
@${ECHO} "Available switches:"
|
|
|
|
@${ECHO} "-------------------"
|
|
|
|
@${ECHO} "WITH_PLUGINS - Build the plugins"
|
|
|
|
@${ECHO} "WITH_LATIN - Recommended if you are using an ISO-8859-1 display"
|
|
|
|
@${ECHO} "WITH_TCL - Build BitchX with TCL scripting"
|
2000-09-09 15:14:50 +02:00
|
|
|
|
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
|
|
|
|
.endif
|
2000-09-01 04:51:06 +02:00
|
|
|
|
2000-10-05 09:22:56 +02:00
|
|
|
.include <bsd.port.post.mk>
|