2011-10-03 10:41:45 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.41 2011/10/03 14:41:45 okan Exp $
|
2003-10-08 18:16:49 -04:00
|
|
|
|
2011-10-03 10:33:14 -04:00
|
|
|
COMMENT= IRC proxy to connect to AIM, ICQ, Jabber, MSN and Yahoo
|
2003-04-16 14:51:08 -04:00
|
|
|
|
2011-10-03 10:33:14 -04:00
|
|
|
DISTNAME= bitlbee-3.0.3
|
2011-10-03 10:41:45 -04:00
|
|
|
REVISION= 0
|
2003-04-16 14:51:08 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
|
2010-05-16 04:31:28 -04:00
|
|
|
HOMEPAGE= http://bitlbee.org/
|
2003-04-16 14:51:08 -04:00
|
|
|
|
2011-10-03 10:33:14 -04:00
|
|
|
MAINTAINER= Okan Demirmen <okan@openbsd.org>
|
2003-04-16 14:51:08 -04:00
|
|
|
|
2009-03-13 13:02:54 -04:00
|
|
|
# GPLv2
|
2003-04-16 14:51:08 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-03-13 13:02:54 -04:00
|
|
|
|
2011-10-03 10:33:14 -04:00
|
|
|
WANTLIB += c pthread glib-2.0 gmodule-2.0 gnutls>=13
|
|
|
|
WANTLIB += gcrypt gpg-error
|
2003-10-08 18:16:49 -04:00
|
|
|
|
|
|
|
MASTER_SITES= http://get.bitlbee.org/src/
|
2003-04-16 14:51:08 -04:00
|
|
|
|
2009-03-13 13:02:54 -04:00
|
|
|
MODULES= devel/gettext
|
|
|
|
|
2003-04-16 14:51:08 -04:00
|
|
|
DB_DIR?= /var/bitlbee
|
2003-12-31 11:03:30 -05:00
|
|
|
ETCDIR= ${SYSCONFDIR}/bitlbee
|
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/bitlbee
|
2006-04-11 11:11:32 -04:00
|
|
|
DOCS= ${WRKSRC}/doc/user-guide/user-guide.html
|
2003-04-16 14:51:08 -04:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/bitlbee/
|
2003-10-11 10:48:02 -04:00
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS= devel/glib2 \
|
2011-10-03 10:33:14 -04:00
|
|
|
security/gnutls \
|
|
|
|
security/libgcrypt
|
2004-06-20 12:27:49 -04:00
|
|
|
|
2003-04-16 14:51:08 -04:00
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
CONFIGURE_ARGS+= --bindir=${PREFIX}/libexec \
|
|
|
|
--mandir=${PREFIX}/man \
|
2003-06-28 03:38:29 -04:00
|
|
|
--config=${DB_DIR} \
|
2003-12-31 11:03:30 -05:00
|
|
|
--etcdir=${ETCDIR} \
|
2008-04-09 18:13:11 -04:00
|
|
|
--ssl=gnutls
|
2003-04-16 14:51:08 -04:00
|
|
|
|
2003-11-18 16:19:22 -05:00
|
|
|
USE_GMAKE= Yes
|
2006-04-11 11:11:32 -04:00
|
|
|
MAKE_ENV= "CC=${CC}" "CFLAGS=${CFLAGS}"
|
2008-01-04 12:48:33 -05:00
|
|
|
FAKE_FLAGS= ETCDIR=${EXAMPLEDIR}
|
2003-12-31 11:03:30 -05:00
|
|
|
FAKE_TARGET= install install-etc
|
2006-04-11 11:11:32 -04:00
|
|
|
SUBST_VARS= DB_DIR
|
2003-04-16 14:51:08 -04:00
|
|
|
|
2011-10-03 10:33:14 -04:00
|
|
|
FLAVORS = libpurple otr
|
|
|
|
FLAVOR ?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mlibpurple}
|
|
|
|
CONFIGURE_ARGS += --purple=1
|
|
|
|
LIB_DEPENDS += net/pidgin,-libpurple \
|
|
|
|
devel/silc-toolkit \
|
|
|
|
net/meanwhile \
|
|
|
|
net/libgadu
|
|
|
|
WANTLIB += purple
|
|
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Motr}
|
|
|
|
CONFIGURE_ARGS += --otr=1
|
|
|
|
LIB_DEPENDS += security/libotr
|
|
|
|
WANTLIB += otr
|
|
|
|
.endif
|
|
|
|
|
2003-04-16 14:51:08 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2010-05-16 04:31:28 -04:00
|
|
|
# don't hide compile command lines
|
|
|
|
pre-configure:
|
|
|
|
find ${WRKSRC} -name Makefile | \
|
|
|
|
xargs perl -pi -e 's,@\$$\(CC\),\$$(CC),g'
|
|
|
|
|
2003-04-16 14:51:08 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${DOCS} ${DOCDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|