openbsd-ports/net/ircd-ratbox/Makefile
ajacoutot 4ec44530ca Simplify after recent rc.subr change.
The framework is now stable and we will start documenting it (at last).
2010-12-27 14:50:22 +00:00

79 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2010/12/27 14:50:23 ajacoutot Exp $
SHARED_ONLY = Yes
COMMENT = advanced, stable and fast irc server
DISTNAME = ircd-ratbox-3.0.6
CATEGORIES = net
REVISION = 4
EXTRACT_SUFX = .tar.bz2
HOMEPAGE = http://www.ircd-ratbox.org/
MASTER_SITES = ${HOMEPAGE}download/testing/
MAINTAINER = Simon Bertrang <simon@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c crypto ltdl sqlite3 ssl z
LIB_DEPENDS = databases/sqlite3 \
devel/libtool,-ltdl
USE_LIBTOOL = Yes
NO_REGRESS = Yes
CONFDIR = ${SYSCONFDIR}/ircd-ratbox
LOGDIR = /var/log/ircd-ratbox
SUBST_VARS += CONFDIR LOGDIR
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
AUTOCONF_VERSION = 2.62
CONFIGURE_STYLE = autoconf
CONFIGURE_ARGS = --enable-ipv6 \
--enable-openssl=/usr \
--enable-kqueue \
--with-confdir=${CONFDIR} \
--with-logdir=${LOGDIR} \
--with-rundir=/var/run/ircd-ratbox \
--with-helpdir=${PREFIX}/share/ircd-ratbox/help \
--with-moduledir=${PREFIX}/lib/ircd-ratbox/modules \
--enable-services \
--with-sqlite3=${LOCALBASE} \
--with-zlib-path=/usr
# Hack to make the nick length configurable at build time
NICKLEN ?=
.if ${NICKLEN}
FLAVORS = nicklen_${NICKLEN}
FLAVOR = nicklen_${NICKLEN}
CONFIGURE_ARGS += --with-nicklen=${NICKLEN}
.endif
DOCS = README.cidr_bans challenge.txt modeg.txt \
modes.txt monitor.txt server-version-info services.txt \
tgchange.txt
pre-configure:
${SUBST_CMD} ${WRKSRC}/doc/example.conf \
${WRKSRC}/doc/example.efnet.conf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ircd-ratbox
${INSTALL_DATA} ${WRKINST}${CONFDIR}/* \
${PREFIX}/share/examples/ircd-ratbox
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ircd-ratbox
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${DOCS} \
${PREFIX}/share/doc/ircd-ratbox
.include <bsd.port.mk>