2005-03-15 20:56:49 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2005/03/16 01:56:49 pvalchev Exp $
|
2003-10-08 18:16:49 -04:00
|
|
|
|
2004-06-20 12:27:49 -04:00
|
|
|
COMMENT= "IRC proxy to connect to AIM, ICQ, Jabber, MSN and Yahoo"
|
2003-04-16 14:51:08 -04:00
|
|
|
|
2004-10-21 10:48:51 -04:00
|
|
|
DISTNAME= bitlbee-0.91
|
2005-03-15 20:56:49 -05:00
|
|
|
PKGNAME= ${DISTNAME}p2
|
2003-04-16 14:51:08 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
|
2003-10-08 18:16:49 -04:00
|
|
|
HOMEPAGE= http://bitlbee.org
|
2003-04-16 14:51:08 -04:00
|
|
|
|
2004-02-01 02:09:47 -05:00
|
|
|
MAINTAINER= Andrew Dalgleish <openbsd@ajd.net.au>
|
2003-04-16 14:51:08 -04:00
|
|
|
|
2003-10-16 11:00:17 -04:00
|
|
|
# GPL
|
2003-04-16 14:51:08 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-03-15 20:56:49 -05:00
|
|
|
WANTLIB= c iconv intl z
|
2003-10-08 18:16:49 -04:00
|
|
|
|
|
|
|
MASTER_SITES= http://get.bitlbee.org/src/
|
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
|
2004-06-20 12:27:49 -04:00
|
|
|
DOCS= ${WRKSRC}/doc/user-guide.html
|
2003-04-16 14:51:08 -04:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/bitlbee/
|
2003-10-11 10:48:02 -04:00
|
|
|
|
2004-07-01 12:11:59 -04:00
|
|
|
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
|
2004-06-20 12:27:49 -04:00
|
|
|
LIB_DEPENDS= glib-2.0.0.0::devel/glib2
|
|
|
|
|
2004-12-17 10:41:15 -05:00
|
|
|
# I am told gnutls does not build on all arches, so I've added a no_ssl FLAVOR
|
|
|
|
# SSL is required for MSN support, and is optional for Jabber
|
|
|
|
FLAVORS= no_ssl
|
2004-06-20 12:27:49 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2004-12-17 10:41:15 -05:00
|
|
|
.if ${FLAVOR:L:Mno_ssl}
|
|
|
|
CONFIGURE_ARGS+= --msn=0 \
|
|
|
|
--ssl=bogus
|
2004-06-20 12:27:49 -04:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= gnutls.8::security/gnutls
|
2005-03-15 20:56:49 -05:00
|
|
|
WANTLIB+= gcrypt gpg-error
|
2004-06-20 12:27:49 -04:00
|
|
|
.endif
|
|
|
|
|
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} \
|
2004-12-17 10:41:15 -05:00
|
|
|
--flood=1
|
2003-04-16 14:51:08 -04:00
|
|
|
|
2003-11-18 16:19:22 -05:00
|
|
|
USE_GMAKE= Yes
|
2003-04-16 14:51:08 -04:00
|
|
|
MAKE_ENV= CC="${CC}"
|
2003-12-31 11:03:30 -05:00
|
|
|
FAKE_FLAGS= ${DESTDIRNAME}=${WRKINST} ETCDIR=${EXAMPLEDIR}
|
|
|
|
FAKE_TARGET= install install-etc
|
2003-04-16 14:51:08 -04:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2004-06-20 12:27:49 -04:00
|
|
|
# Make sure we use the system snprintf
|
|
|
|
post-extract:
|
|
|
|
@rm -f ${WRKSRC}/protocols/snprintf.c
|
|
|
|
|
2003-04-16 14:51:08 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${DOCS} ${DOCDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|