1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/irc/anope/Makefile
Baptiste Daroussin baedaefc13 Convert dhn's ports to the new options framework
While here trim headers and convert some USE_GNOME=pkgconfig to
USE_PKGCONFIG=build

Approved by:	maintainer (dhn)
2013-01-07 20:50:20 +00:00

54 lines
1.1 KiB
Makefile

# Created by: mat
# $FreeBSD$
PORTNAME= anope
PORTVERSION= 1.8.7
CATEGORIES= irc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/Anope%20${PORTVERSION}
MAINTAINER= dhn@FreeBSD.org
COMMENT= A set of IRC services for IRC networks
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir="${LOCALBASE}/lib" \
--includedir="${LOCALBASE}/include" \
--with-bindir=${PREFIX}/libexec/anope \
--with-datadir=${DATADIR} \
--with-rungroup=ircdru
USE_PERL5_BUILD= yes
PORTDOCS= BUGS COPYING DEFCON EVENTS \
FAQ INSTALL IRCD MODULES MYSQL \
NEWS PROXY README
USE_RC_SUBR= anope
OPTIONS_DEFINE= MYSQL
OPTIONS_DEFAULT= MYSQL
.include <bsd.port.pre.mk>
# XXX Add here other arch which needs -fPIC :-)
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
.endif
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
.else
CONFIGURE_ARGS+= --without-mysql
.endif
pre-install:
@${MKDIR} ${PREFIX}/libexec/anope
@${MKDIR} ${DATADIR}
post-install:
.if ${PORT_OPTIONS:MDCOS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${DOCSDIR}/
.endif
.include <bsd.port.post.mk>