- Add DEBUG, OPENSSL and IPV6 options.

PR:		ports/108689
Submitted by:	Spil Oss <spil.oss@gmail.com>
Approved by:	Peter van Dijk <peter@dataloss.nl> (maintainer, timeout)
This commit is contained in:
Alejandro Pulver 2007-02-16 20:59:22 +00:00
parent 09e9642c35
commit e0154387d6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185332
2 changed files with 36 additions and 4 deletions

View file

@ -28,7 +28,10 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
OPTIONS= MSN "Enable MSN protocol support" On \
LDAP "Enable LDAP authentication support" Off \
RECODE "Enable oscar_recode_charset" Off
RECODE "Enable oscar_recode_charset" Off \
DEBUG "Create debuggable binary" Off \
OPENSSL "Use openssl rather than gnutls" Off \
IPV6 "Compile IPV6 support" On
CONFIGURE_ARGS= --mandir=${PREFIX}/man --config=${PREFIX}/etc/bitlbee
@ -39,12 +42,17 @@ PATCHFILES+= ${PORTNAME}-1.0-ldap.diff
.endif
.if !defined(WITHOUT_MSN)
LIB_DEPENDS+= gnutls.15:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+=--msn=1
.else
CONFIGURE_ARGS+=--msn=0 --ssl=bogus
.endif
.if defined(WITH_OPENSSL)
CONFIGURE_ARGS+=--ssl=openssl
.else
LIB_DEPENDS+= gnutls.15:${PORTSDIR}/security/gnutls
.endif
.if defined(WITH_LDAP)
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--ldap=${LOCALBASE}
@ -56,6 +64,14 @@ post-patch::
${PATCH} ${PATCH_ARGS} < ${FILESDIR}/oscar-recode-patch
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--debug=1
.endif
.if defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--ipv6=0
.endif
pre-install:
@${MKDIR} -m 700 ${PREFIX}/etc/bitlbee

View file

@ -28,7 +28,10 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
OPTIONS= MSN "Enable MSN protocol support" On \
LDAP "Enable LDAP authentication support" Off \
RECODE "Enable oscar_recode_charset" Off
RECODE "Enable oscar_recode_charset" Off \
DEBUG "Create debuggable binary" Off \
OPENSSL "Use openssl rather than gnutls" Off \
IPV6 "Compile IPV6 support" On
CONFIGURE_ARGS= --mandir=${PREFIX}/man --config=${PREFIX}/etc/bitlbee
@ -39,12 +42,17 @@ PATCHFILES+= ${PORTNAME}-1.0-ldap.diff
.endif
.if !defined(WITHOUT_MSN)
LIB_DEPENDS+= gnutls.15:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+=--msn=1
.else
CONFIGURE_ARGS+=--msn=0 --ssl=bogus
.endif
.if defined(WITH_OPENSSL)
CONFIGURE_ARGS+=--ssl=openssl
.else
LIB_DEPENDS+= gnutls.15:${PORTSDIR}/security/gnutls
.endif
.if defined(WITH_LDAP)
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--ldap=${LOCALBASE}
@ -56,6 +64,14 @@ post-patch::
${PATCH} ${PATCH_ARGS} < ${FILESDIR}/oscar-recode-patch
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--debug=1
.endif
.if defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--ipv6=0
.endif
pre-install:
@${MKDIR} -m 700 ${PREFIX}/etc/bitlbee