# New ports collection makefile for: BitchX # Date created: 26 Jan 1998 # Whom: Jimbo Bahooli # # $FreeBSD$ # PORTNAME= BitchX PORTVERSION= 1.1.0.1 PORTREVISION= 4 CATEGORIES+= irc MASTER_SITES= SF/bitchx/ircii-pana/ircii-pana-1.1 DISTNAME= ircii-pana-1.1-final MAINTAINER?= danfe@FreeBSD.org COMMENT?= Feature-rich scriptable IRC client WRKSRC= ${WRKDIR}/BitchX USE_PERL5= yes GNU_CONFIGURE= yes WANT_GNOME= yes USE_GMAKE= yes CONFIGURE_ARGS+=--exec-prefix="${PREFIX}/share" \ --bindir="${PREFIX}/bin" \ --datadir="${PREFIX}/share" \ --libdir="${PREFIX}/share" CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" CPPFLAGS+= -I${LOCALBASE}/include MAN1= BitchX.1 OPTIONS= ESOUND "Enable EsounD support" off \ GNOME "Build with legacy GTK/GNOME frontend" off \ IPV6 "Enable IPv6 support" off \ LATIN "Recommended for an ISO-8859-1 display" off \ PLUGINS "Build handful of BitchX plugins" off \ SSL "Enable SSL support" off \ XMMS "Build XMMS plugin" off .include .if ${ARCH} == "amd64" || ${ARCH} == "ia64" CFLAGS+= -fPIC .endif .if defined(WITH_SSL) CONFIGURE_ARGS+=--with-ssl .endif .if defined(WITH_GNOME) USE_GNOME= gnomelibs CONFIGURE_ARGS+=--with-gtk CFLAGS+= -I${LOCALBASE}/include/gnome-1.0/ PLIST_SUB+= NOGNOME="@comment " GNOME="" .else CONFIGURE_ARGS+=--without-gtk PLIST_SUB+= GNOME="@comment " NOGNOME="" .endif .if (defined(WITH_ESOUND) && defined(WITH_GNOME)) USE_GNOME+= esound CONFIGURE_ARGS+=--enable-sound .endif .if defined(WITH_XMMS) LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms .endif .if defined(WITH_IPV6) CONFIGURE_ARGS+=--enable-ipv6 .endif .if defined(WITH_PLUGINS) PLUGINS=\ abot,acro,arcfour,autocycle,blowfish,encrypt,fserv,hint,pkga,possum,qbx,qmail,scan,wavplay CONFIGURE_ARGS+= --with-plugins=${PLUGINS} PLIST_SUB+= PLUGINS="" .else CONFIGURE_ARGS+=--without-plugins PLIST_SUB+= PLUGINS="@comment " .endif .if defined(WITH_XMMS) PLUGINS= xmms PLIST_SUB+= XMMS="" .else PLIST_SUB+= XMMS="@comment " .endif .if (defined(WITH_XMMS) && defined(WITH_PLUGINS)) PLUGINS=\ abot,acro,arcfour,autocycle,blowfish,encrypt,fserv,hint,pkga,possum,qbx,qmail,scan,wavplay,xmms .endif .if (defined(WITH_PLUGINS) || defined(WITH_XMMS)) CONFIGURE_ARGS+= --with-plugins=${PLUGINS} .endif 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 post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/bx/help ${TAR} --directory ${WRKSRC}/bitchx-docs -cf - . | \ ${TAR} --directory ${PREFIX}/share/bx/help -xf - .else @${RMDIR} ${PREFIX}/share/bx/help .endif .if defined(WITH_GNOME) ${STRIP_CMD} ${PREFIX}/bin/gtkBitchX-1.1-final .else ${STRIP_CMD} ${PREFIX}/bin/BitchX-1.1-final ${STRIP_CMD} ${PREFIX}/bin/scr-bx .endif @${TOUCH} ${PREFIX}/share/bx/plugins/.placeholder .include