1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/irc/conspire/Makefile
Felippe de Meirelles Motta bea5a5e1a5 - Update to 1.0.0.
- Connect to IPv6 category.
- Mark as MAKE_JOBS_SAFE.

PR:		ports/139461
Submitted by:	Jacob Myers <jacob@whotookspaz.org> (maintainer)
2009-10-11 22:39:05 +00:00

81 lines
2.0 KiB
Makefile

# New ports collection makefile for: conspire
# Date created: Thu Jul 17 2008
# Whom: Jacob Myers (jacob@whotookspaz.org)
#
# $FreeBSD$
PORTNAME= conspire
PORTVERSION= 1.0.0
CATEGORIES= irc gnome ipv6
MASTER_SITES= http://distfiles.atheme.org/
EXTRACT_SUFX= .tgz
MAINTAINER= jacob@whotookspaz.org
COMMENT= A high quality IRC client which uses a multitude of interfaces
LIB_DEPENDS= sexy.2:${PORTSDIR}/x11-toolkits/libsexy \
mowgli.2:${PORTSDIR}/devel/libmowgli \
dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
notify.1:${PORTSDIR}/devel/libnotify
USE_GMAKE= yes
USE_GETTEXT= yes
USE_GNOME= gnomehack gtk20
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_GETTEXT= yes
MAKE_JOBS_SAFE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
MAN1= conspire-bot.1 \
conspire.1
OPTIONS= IPV6 "Enable IPv6 support" off \
PLUGIN "Enable plugin support" on \
REGEX "Enable regex substitution support" on \
GNUTLS "Enale gnutls support" on \
SOCKS "Build with socks5 support (broken)" off
.include <bsd.port.pre.mk>
# Unconditionally disable python, since it doesn't work anyway.
CONFIGURE_ARGS+=--disable-python
.if defined(WITH_IPV6)
CONFIGURE_ARGS+=--enable-ipv6
.endif
.if !defined(WITH_PLUGIN)
CONFIGURE_ARGS+=--disable-plugin
.endif
.if !defined(WITH_REGEX)
CONFIGURE_ARGS+=--disable-regex
.endif
.if defined(WITH_GNUTLS)
LIB_DEPENDS+= gnutls.40:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+=--enable-gnutls
.endif
# XXX - causes linker errors... not sure how to fix or if it's even possible
# to do so...
.if defined(WITH_SOCKS)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
CONFIGURE_ARGS+=--enable-socks
.endif
# Create plugins directory even when no plugins are installed
post-install:
@${MKDIR} ${PREFIX}/lib/conspire/plugins
post-patch:
@${REINPLACE_CMD} 's|$${libdir}/pkgconfig|$${prefix}/libdata/pkgconfig|g' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} 's|GtkType|GType|g' \
${WRKSRC}/src/fe-gtk/xtext.h
.include <bsd.port.post.mk>