freebsd-ports/irc/bitchx/Makefile
Mario Sergio Fujikawa Ferreira a59a8768d6 USE_X_PREFIX if WITH_GNOME
Submitted by:	maintainer
2002-08-08 17:13:44 +00:00

152 lines
4.3 KiB
Makefile

# New ports collection makefile for: BitchX ircII client
# Date created: 26 Jan 1998
# Whom: griffin
#
# $FreeBSD$
#
PORTNAME= BitchX
PORTVERSION= 1.0c19
PORTREVISION?= 1
CATEGORIES+= irc gnome
MASTER_SITES= ftp://ftp.bitchx.com/pub/BitchX/source/ \
ftp://ftp.bitchx.org/pub/BitchX/source/ \
ftp://ftp.cyberpunkz.org/pub/BitchX/source/ \
ftp://ftp.cyberpunkz.org/pub/BitchX/tcl-o/:tcl
.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}
.endif
MAINTAINER?= freebsdports@arved.de
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
.if defined(WITH_XMMS)
LIB_DEPENDS+= xmms.3:${PORTSDIR}/audio/xmms
.endif
WRKSRC= ${WRKDIR}/BitchX
USE_REINPLACE= yes
AUTOCONF= ${LOCALBASE}/bin/autoconf
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_TARGET=
CONFIGURE_ARGS+=--exec-prefix="${PREFIX}/share" \
--bindir="${PREFIX}/bin" \
--datadir="${PREFIX}/share" \
--libdir="${PREFIX}/share" \
--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
MAN1= BitchX.1
.if defined(WITH_GNOME)
USE_X_PREFIX= yes
USE_GNOMENG= yes
USE_GNOME= gnomelibs
CONFIGURE_ARGS+=--with-gtk
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${X11BASE}/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_GNOMENG= yes
USE_GNOME+= esound
CONFIGURE_ARGS+=--enable-sound
.endif
.if defined(WITH_IPV6)
USE_IPV6= yes
CONFIGURE_ARGS+=--enable-ipv6
.endif
.if defined(WITH_TCL)
BUILD_DEPENDS+= ${LOCALBASE}/include/tcl8.3/tcl.h:${PORTSDIR}/lang/tcl83
CONFIGURE_ARGS+=--with-tcl \
--with-tcl-libs=${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3" \
CFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3"
.endif
.if defined(WITH_SOCKS5)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
CONFIGURE_ARGS+= --with-socks5=${LOCALBASE}
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
.endif
.if defined(WITH_PLUGINS)
PLUGINS= abot,acro,aim,arcfour,autocycle,blowfish,cavlink,encrypt,fserv,hint,identd,nap,pkga,possum,qbx,qmail,scan,wavplay
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,aim,arcfour,autocycle,blowfish,cavlink,encrypt,fserv,hint,identd,nap,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
pre-extract:
@${ECHO_CMD} "Available switches:"
@${ECHO_CMD} "-------------------"
.if !defined (WITH_XMMS)
@${ECHO_CMD} "WITH_XMMS - Building BitchX with XMMS-Plugin"
.endif
.if !defined(WITH_PLUGINS)
@${ECHO_CMD} "WITH_PLUGINS - Building BitchX with some other plugins"
.endif
.if !defined(WITH_LATIN)
@${ECHO_CMD} "WITH_LATIN - Recommended if you are using an ISO-8859-1 display"
.endif
.if !defined(WITH_TCL)
@${ECHO_CMD} "WITH_TCL - Build BitchX with TCL scripting"
.endif
.if !defined(WITH_SOCKS5)
@${ECHO_CMD} "WITH_SOCKS5 - Build BitchX with SOCKS5 support"
.endif
.if !defined(WITH_IPV6)
@${ECHO_CMD} "WITH_IPV6 - Build BitchX with IPV6 support"
@${ECHO_CMD} " (Please Note: /detach is not working with IPv6)"
.endif
.if !defined(WITH_GNOME)
@${ECHO_CMD} "WITH_GNOME - Build BitchX with Gtk-Frontend"
.endif
.if defined(WITH_TCL)
post-extract:
@${CP} ${DISTDIR}/freebsd4-tcl83-bx1.0c19-tcl.o ${WRKSRC}/source/tcl.o
.endif
pre-configure:
cd ${WRKSRC}/${dir}; ${LOCALBASE}/bin/autoconf
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/bx/help
${MKDIR} ${PREFIX}/share/doc/bitchx
${TAR} --directory ${WRKSRC}/bitchx-docs -cf - . --exclude CVS | \
${TAR} --directory ${PREFIX}/share/bx/help -xf -
${INSTALL_DATA} ${WRKSRC}/doc/bxfaq.html ${PREFIX}/share/doc/bitchx
.else
${RMDIR} ${PREFIX}/share/bx/help
.endif
.include <bsd.port.mk>