1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/irc/bitlbee/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

117 lines
3.3 KiB
Makefile

PORTNAME= bitlbee
PORTVERSION= 3.6
PORTREVISION= 1
CATEGORIES= irc
MASTER_SITES= http://get.bitlbee.org/src/ \
LOCAL/brix
MAINTAINER= garga@FreeBSD.org
COMMENT= IRC to other chat networks gateway
WWW= https://www.bitlbee.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= xmlto:textproc/xmlto \
xsltproc:textproc/libxslt
USES= cpe gettext-runtime gmake gnome pkgconfig
SUB_FILES= pkg-message
PORTDOCS= AUTHORS CHANGES CREDITS FAQ README
PORTEXAMPLES= bitlbee.conf motd.txt
HAS_CONFIGURE= yes
USE_RC_SUBR= bitlbee
USE_GNOME= glib20
OPTIONS_SUB= yes
OPTIONS_DEFINE= DEBUG DOCS EXAMPLES LDAP OTR PAM
OPTIONS_SINGLE= EVENTS SSL
OPTIONS_SINGLE_EVENTS= GLIB LIBEVENT
OPTIONS_SINGLE_SSL= OPENSSL GNUTLS NSS
OPTIONS_MULTI= PROTO
OPTIONS_MULTI_PROTO= LIBPURPLE JABBER MSN OSCAR TWITTER
LIBPURPLE_PREVENTS= JABBER MSN OSCAR TWITTER
LIBPURPLE_PREVENTS_MSG= If libpurple is enabled, all native protocols must be disabled
GLIB_DESC= Use glib as event handler
LIBEVENT_BROKEN= bitlbee w/ libevent fails to start as daemon or fork
LIBEVENT_DESC= Use libevent as event handler
LIBPURPLE_DESC= Use libpurple for protocol support
MSN_DESC= Microsoft Messenger support
OSCAR_DESC= OSCAR (ICQ) support
OTR_DESC= Off-the-Record Messaging support
TWITTER_DESC= Twitter support
OPTIONS_DEFAULT= GLIB GNUTLS JABBER OSCAR OTR TWITTER
CONFIGURE_ARGS= --config=/var/db/bitlbee \
--pcdir=${PREFIX}/libdata/pkgconfig \
--prefix=${PREFIX} \
--mandir=${MANPREFIX}/man \
--strip=1 \
--yahoo=0
DEBUG_CONFIGURE_ON= --debug=1
DOCS_USES= python:build
DOCS_CONFIGURE_ENV= PYTHON=${PYTHON_CMD}
GLIB_CONFIGURE_ON= --events=glib
GNUTLS_CONFIGURE_ON= --ssl=gnutls
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls \
libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error
JABBER_CONFIGURE_OFF= --jabber=0
LDAP_CONFIGURE_ON= --ldap=1
LDAP_USE= OPENLDAP=yes
LIBEVENT_CONFIGURE_ON= --events=libevent --libevent=${LOCALBASE}
LIBEVENT_LIB_DEPENDS= libevent.so:devel/libevent
LIBPURPLE_CONFIGURE_ON= --purple=1
LIBPURPLE_LIB_DEPENDS= libpurple.so:net-im/libpurple
MSN_CONFIGURE_OFF= --msn=0
NSS_CONFIGURE_ON= --ssl=nss
NSS_LIB_DEPENDS= libnss3.so:security/nss \
libnspr4.so:devel/nspr \
libplc4.so:devel/nspr \
libplds4.so:devel/nspr
OPENSSL_CONFIGURE_ON= --ssl=openssl
OPENSSL_USES= ssl
OSCAR_CONFIGURE_OFF= --oscar=0
OTR_CONFIGURE_ON= --otr=1
OTR_LIB_DEPENDS= libotr.so.5:security/libotr \
libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error
PAM_CONFIGURE_ON= --pam=1
TWITTER_CONFIGURE_OFF= --twitter=0
USERS= bitlbee
GROUPS= bitlbee
post-patch:
@${REINPLACE_CMD} -e '/^install:/ s/$$/ install-dev/' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|^\(EFLAGS=.*\)|\1 ${LDFLAGS}|" \
-e "/include.*ldap.h/ s,-E,-I${LOCALBASE}/include -E," \
${WRKSRC}/configure
@${REINPLACE_CMD} -e "s:/etc/bitlbee/motd.txt:${ETCDIR}/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
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/doc/@} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S@^@${WRKSRC}/@} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>