2003-08-30 08:11:49 +02:00
|
|
|
# New ports collection makefile for: bitlbee
|
|
|
|
# Date created: 10 June 2003
|
|
|
|
# Whom: Peter van Dijk <peter@dataloss.nl>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bitlbee
|
2006-08-12 11:52:53 +02:00
|
|
|
PORTVERSION= 1.0.3
|
2007-07-01 10:56:16 +02:00
|
|
|
PORTREVISION= 4
|
2003-08-30 08:11:49 +02:00
|
|
|
CATEGORIES= irc
|
2006-01-23 16:34:44 +01:00
|
|
|
MASTER_SITES= http://get.bitlbee.org/src/
|
2003-08-30 08:11:49 +02:00
|
|
|
|
2005-11-11 11:37:35 +01:00
|
|
|
PATCH_SITES= http://get.bitlbee.org/patches/
|
|
|
|
|
2007-04-17 02:39:19 +02:00
|
|
|
MAINTAINER= lasg@lasg.dk
|
2003-08-30 08:11:49 +02:00
|
|
|
COMMENT= An IRC to other chat networks gateway
|
|
|
|
|
2006-05-11 11:56:55 +02:00
|
|
|
SUB_FILES= pkg-message
|
2004-04-02 09:37:11 +02:00
|
|
|
MAN5= bitlbee.conf.5
|
2003-08-30 08:11:49 +02:00
|
|
|
MAN8= bitlbee.8
|
|
|
|
|
2003-12-12 15:48:05 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-08-30 08:11:49 +02:00
|
|
|
USE_GMAKE= yes
|
2003-12-12 15:48:05 +01:00
|
|
|
USE_GNOME= glib20
|
2005-11-11 11:37:35 +01:00
|
|
|
USE_GETOPT_LONG=yes
|
2003-12-14 16:15:23 +01:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2003-12-12 15:48:05 +01:00
|
|
|
|
2006-01-23 16:34:44 +01:00
|
|
|
OPTIONS= MSN "Enable MSN protocol support" On \
|
2006-12-20 17:26:55 +01:00
|
|
|
LDAP "Enable LDAP authentication support" Off \
|
2007-02-16 21:59:22 +01:00
|
|
|
RECODE "Enable oscar_recode_charset" Off \
|
|
|
|
DEBUG "Create debuggable binary" Off \
|
|
|
|
OPENSSL "Use openssl rather than gnutls" Off \
|
|
|
|
IPV6 "Compile IPV6 support" On
|
2006-01-23 16:34:44 +01:00
|
|
|
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --config=${PREFIX}/etc/bitlbee
|
2005-10-10 23:16:47 +02:00
|
|
|
|
2006-01-23 16:34:44 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
PATCHFILES+= ${PORTNAME}-1.0-ldap.diff
|
|
|
|
.endif
|
|
|
|
|
2006-08-12 11:52:53 +02:00
|
|
|
.if !defined(WITHOUT_MSN)
|
2005-11-11 11:37:35 +01:00
|
|
|
CONFIGURE_ARGS+=--msn=1
|
2003-12-12 15:48:05 +01:00
|
|
|
.else
|
2005-11-11 11:37:35 +01:00
|
|
|
CONFIGURE_ARGS+=--msn=0 --ssl=bogus
|
|
|
|
.endif
|
|
|
|
|
2007-02-16 21:59:22 +01:00
|
|
|
.if defined(WITH_OPENSSL)
|
|
|
|
CONFIGURE_ARGS+=--ssl=openssl
|
|
|
|
.else
|
2007-07-01 10:56:16 +02:00
|
|
|
LIB_DEPENDS+= gnutls.13:${PORTSDIR}/security/gnutls
|
2007-02-16 21:59:22 +01:00
|
|
|
.endif
|
|
|
|
|
2005-11-11 11:37:35 +01:00
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
CONFIGURE_ARGS+=--ldap=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2006-12-20 17:26:55 +01:00
|
|
|
.if defined(WITH_RECODE)
|
|
|
|
post-patch::
|
|
|
|
@cd ${WRKDIR} && \
|
|
|
|
${PATCH} ${PATCH_ARGS} < ${FILESDIR}/oscar-recode-patch
|
|
|
|
.endif
|
|
|
|
|
2007-02-16 21:59:22 +01:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+=--debug=1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_IPV6)
|
|
|
|
CONFIGURE_ARGS+=--ipv6=0
|
|
|
|
.endif
|
|
|
|
|
2003-08-30 08:11:49 +02:00
|
|
|
pre-install:
|
2004-02-22 16:52:11 +01:00
|
|
|
@${MKDIR} -m 700 ${PREFIX}/etc/bitlbee
|
2003-08-30 08:11:49 +02:00
|
|
|
|
2003-12-12 15:48:05 +01:00
|
|
|
post-install:
|
2004-02-22 16:52:11 +01:00
|
|
|
@${CP} ${WRKSRC}/bitlbee.conf ${PREFIX}/etc/bitlbee/bitlbee.conf.orig
|
|
|
|
@${CP} ${WRKSRC}/motd.txt ${PREFIX}/etc/bitlbee/motd.txt.orig
|
2003-12-12 15:48:05 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2006-01-23 16:34:44 +01:00
|
|
|
.include <bsd.port.post.mk>
|