1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/irc/bitlbee/Makefile
Henrik Brix Andersen 5f5dfa8670 Fix sed(1) statement for cases where $LDFLAGS contains one or more
colons.

PR:		ports/122921
Approved by:	pav (co-mentor)
2008-04-20 22:01:56 +00:00

88 lines
2.0 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.2
CATEGORIES= irc
MASTER_SITES= http://get.bitlbee.org/src/
MAINTAINER= brix@FreeBSD.org
COMMENT= An IRC to other chat networks gateway
SUB_FILES= pkg-message
MAN5= bitlbee.conf.5
MAN8= bitlbee.8
PORTDOCS= AUTHORS CHANGES CREDITS FAQ README
PORTEXAMPLES= bitlbee.conf motd.txt
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GNOME= glib20
USE_RC_SUBR= bitlbee
PKGMESSAGE= ${WRKDIR}/pkg-message
OPTIONS= MSN "Enable MSN protocol support" On \
DEBUG "Create debuggable binary" Off \
OPENSSL "Use openssl rather than gnutls" Off \
IPV6 "Compile IPV6 support" On
CONFIGURE_ARGS= --config=/var/db/bitlbee --strip=0
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_MSN)
CONFIGURE_ARGS+=--msn=1
.else
CONFIGURE_ARGS+=--msn=0 --ssl=bogus
.endif
.if defined(WITH_OPENSSL)
CONFIGURE_ARGS+=--ssl=openssl
.else
CONFIGURE_ARGS+=--ssl=gnutls
LIB_DEPENDS+= gnutls.26:${PORTSDIR}/security/gnutls
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--debug=1
.endif
.if defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--ipv6=0
.endif
post-patch:
@${REINPLACE_CMD} \
-e "s|^EFLAGS=|EFLAGS=${LDFLAGS}|" \
${WRKSRC}/configure
@${REINPLACE_CMD} \
-e "s:/etc/bitlbee/motd.txt:${PREFIX}/etc/bitlbee/motd.txt:" \
-e "s:/var/lib/bitlbee:/var/db/bitlbee:" \
${WRKSRC}/bitlbee.conf
@${REINPLACE_CMD} \
-e "s:/var/lib/bitlbee:/var/db/bitlbee:" \
${WRKSRC}/doc/bitlbee.8
pre-install:
${MKDIR} ${PREFIX}/etc/bitlbee
${MKDIR} -m 0700 /var/db/bitlbee
${CHOWN} nobody:nobody /var/db/bitlbee
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/doc/@} ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S@^@${WRKSRC}/@} ${EXAMPLESDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>