freebsd-ports/irc/bitlbee/Makefile
Sam Lawrance e7023f9093 Since SUB_FILES accidentally snuck in on my previous commit, to
bitlbee, use it for pkg-message.

Approved by:	 Peter van Dijk <peter@dataloss.nl> (maintainer)
2006-05-12 13:40:28 +00:00

67 lines
1.5 KiB
Makefile

# New ports collection makefile for: bitlbee
# Date created: 10 June 2003
# Whom: Peter van Dijk <peter@dataloss.nl>
#
# $FreeBSD$
#
PORTNAME= bitlbee
PORTVERSION= 1.0.2
CATEGORIES= irc
MASTER_SITES= http://get.bitlbee.org/src/
PATCH_SITES= http://get.bitlbee.org/patches/
MAINTAINER= peter@dataloss.nl
COMMENT= An IRC to other chat networks gateway
SUB_FILES= pkg-message
MAN5= bitlbee.conf.5
MAN8= bitlbee.8
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GNOME= glib20
USE_GETOPT_LONG=yes
PKGMESSAGE= ${WRKDIR}/pkg-message
OPTIONS= MSN "Enable MSN protocol support" On \
MSN6_FEATURES "Enable MSN6 features (icons, etc)" Off \
LDAP "Enable LDAP authentication support" Off
CONFIGURE_ARGS= --mandir=${PREFIX}/man --config=${PREFIX}/etc/bitlbee
.include <bsd.port.pre.mk>
PATCH_DIST_STRIP= -p1
.if defined(WITH_MSN6_FEATURES)
PATCHFILES+= ${DISTNAME}-msn6-akke.diff
.endif
.if defined(WITH_LDAP)
PATCHFILES+= ${PORTNAME}-1.0-ldap.diff
.endif
.if !defined(WITHOUT_MSN) || defined(WITH_MSN6_FEATURES)
LIB_DEPENDS+= gnutls.15:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+=--msn=1
.else
CONFIGURE_ARGS+=--msn=0 --ssl=bogus
.endif
.if defined(WITH_LDAP)
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--ldap=${LOCALBASE}
.endif
pre-install:
@${MKDIR} -m 700 ${PREFIX}/etc/bitlbee
post-install:
@${CP} ${WRKSRC}/bitlbee.conf ${PREFIX}/etc/bitlbee/bitlbee.conf.orig
@${CP} ${WRKSRC}/motd.txt ${PREFIX}/etc/bitlbee/motd.txt.orig
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>