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
|
|
|
#
|
|
|
|
|
2000-04-12 06:28:35 +00:00
|
|
|
PORTNAME= BitchX
|
2000-09-01 02:51:06 +00:00
|
|
|
PORTVERSION= 1.0c17
|
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-07-04 01:30:56 +00:00
|
|
|
ftp://ftp.bitchx.org/pub/BitchX/source/ \
|
1998-04-18 02:04:44 +00:00
|
|
|
|
2000-06-28 12:33:57 +00:00
|
|
|
MAINTAINER= cj@vallcom.net
|
1998-04-18 02:04:44 +00:00
|
|
|
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_GNOME)
|
2000-06-01 16:25:45 +00:00
|
|
|
LIB_DEPENDS= gnome.4:${PORTSDIR}/x11/gnomelibs
|
2000-01-22 04:56:41 +00:00
|
|
|
.endif
|
1998-04-18 02:04:44 +00:00
|
|
|
|
2000-01-22 04:56:41 +00:00
|
|
|
GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
|
|
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
|
1998-04-18 02:04:44 +00:00
|
|
|
WRKSRC= ${WRKDIR}/BitchX
|
2000-01-29 21:54:28 +00:00
|
|
|
USE_AUTOCONF= yes
|
2000-01-22 04:56:41 +00:00
|
|
|
USE_GMAKE= yes
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_GNOME)
|
2000-09-09 13:14:50 +00:00
|
|
|
CONFIGURE_ARGS+= --with-gtk
|
2000-01-22 04:56:41 +00:00
|
|
|
.else
|
2000-07-07 18:24:43 +00:00
|
|
|
CONFIGURE_ARGS+= --without-gtk
|
|
|
|
.endif
|
2000-09-01 02:51:06 +00:00
|
|
|
.if defined(WITH_ESD)
|
2000-09-09 13:14:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-sound
|
2000-09-01 02:51:06 +00:00
|
|
|
.endif
|
2000-07-07 18:24:43 +00:00
|
|
|
.if defined(WITH_PLUGINS)
|
2000-09-01 02:51:06 +00:00
|
|
|
CONFIGURE_ARGS+= --with-plugins=pkga,possum,encrypt,hint,abot,acro,amp,blowfish,scan,wavplay,qmail,fserv,nap,qbx
|
2000-07-07 18:24:43 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-plugins
|
2000-01-22 04:56:41 +00:00
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --exec-prefix="${PREFIX}/share" \
|
|
|
|
--bindir="${PREFIX}/bin" \
|
|
|
|
--datadir="${PREFIX}/share" \
|
|
|
|
--libdir="${PREFIX}/share"
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
GLIB_CONFIG="${GLIB_CONFIG}" \
|
|
|
|
GTK_CONFIG="${GTK_CONFIG}"
|
1998-04-18 02:04:44 +00:00
|
|
|
|
2000-01-22 04:56:41 +00:00
|
|
|
MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}"
|
1999-06-27 16:16:16 +00:00
|
|
|
|
2000-01-22 04:56:41 +00:00
|
|
|
pre-extract:
|
2000-09-09 13:14:50 +00:00
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
|
|
|
|
2000-09-01 02:51:06 +00:00
|
|
|
.if defined(WITH_LATIN)
|
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi -e "s!#undef LATIN1!#define LATIN1!" ${WRKSRC}/include/config.h
|
2000-01-22 04:56:41 +00:00
|
|
|
.endif
|
|
|
|
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-07-07 18:24:43 +00:00
|
|
|
.if defined(WITH_PLUGINS)
|
|
|
|
@${ECHO} share/bx/plugins/BitchX.hints >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/acro.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/amp.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/autobot.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/blowfish.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/encrypt.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/fserv.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/hint.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/nap.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/pkga.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/possum.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/qmail.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/scan.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/wavplay.so >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/plugins/qbx.so >> ${TMPPLIST}
|
2000-09-01 02:51:06 +00:00
|
|
|
@${ECHO} @dirrm share/bx/plugins >> ${TMPPLIST}
|
2000-07-07 18:24:43 +00:00
|
|
|
.endif
|
2000-09-01 02:51:06 +00:00
|
|
|
.if defined(WITH_GNOME)
|
|
|
|
@${ECHO} bin/gtkBitchX >> ${TMPPLIST}
|
|
|
|
@${ECHO} bin/gtkBitchX-1.0c17 >> ${TMPPLIST}
|
2000-01-22 04:56:41 +00:00
|
|
|
.else
|
|
|
|
@${ECHO} bin/BitchX >> ${TMPPLIST}
|
2000-09-01 02:51:06 +00:00
|
|
|
@${ECHO} bin/BitchX-1.0c17 >> ${TMPPLIST}
|
2000-01-22 04:56:41 +00:00
|
|
|
@${ECHO} bin/scr-bx >> ${TMPPLIST}
|
|
|
|
@${ECHO} share/bx/wserv >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
@${ECHO} @dirrm share/bx/help >> ${TMPPLIST}
|
|
|
|
@${ECHO} @dirrm share/bx/script >> ${TMPPLIST}
|
|
|
|
@${ECHO} @dirrm share/bx/translation >> ${TMPPLIST}
|
|
|
|
@${ECHO} @dirrm share/bx >> ${TMPPLIST}
|
1998-04-18 02:04:44 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|