2004-04-30 15:50:30 +00:00
|
|
|
# New ports collection makefile for: anope
|
|
|
|
# Date created: 13/04/2004
|
|
|
|
# Whom: mat
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= anope
|
2011-12-24 10:49:07 +00:00
|
|
|
PORTVERSION= 1.8.7
|
2004-04-30 15:50:30 +00:00
|
|
|
CATEGORIES= irc
|
2009-08-22 00:24:37 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/Anope%20${PORTVERSION}
|
2004-04-30 15:50:30 +00:00
|
|
|
|
2009-03-06 18:14:36 +00:00
|
|
|
MAINTAINER= dhn@FreeBSD.org
|
2004-04-30 15:50:30 +00:00
|
|
|
COMMENT= A set of IRC services for IRC networks
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2008-11-12 16:49:09 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2009-07-19 16:13:51 +00:00
|
|
|
CONFIGURE_ARGS= --libdir="${LOCALBASE}/lib" \
|
|
|
|
--includedir="${LOCALBASE}/include" \
|
|
|
|
--with-bindir=${PREFIX}/libexec/anope \
|
2008-11-12 16:49:09 +00:00
|
|
|
--with-datadir=${DATADIR} \
|
|
|
|
--with-rungroup=ircdru
|
2004-05-18 05:21:08 +00:00
|
|
|
USE_PERL5_BUILD= yes
|
2004-04-30 15:50:30 +00:00
|
|
|
|
2009-01-14 16:00:10 +00:00
|
|
|
PORTDOCS= BUGS COPYING DEFCON EVENTS \
|
|
|
|
FAQ INSTALL IRCD MODULES MYSQL \
|
|
|
|
NEWS PROXY README
|
|
|
|
|
2008-11-12 16:49:09 +00:00
|
|
|
USE_RC_SUBR= anope
|
2004-04-30 15:50:30 +00:00
|
|
|
|
2008-11-12 16:49:09 +00:00
|
|
|
OPTIONS= MYSQL "Use mysql" ON
|
2004-04-30 15:50:30 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-11-12 16:49:09 +00:00
|
|
|
# XXX Add here other arch which needs -fPIC :-)
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
CFLAGS+= -fPIC
|
2004-04-30 15:50:30 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
2008-11-12 16:49:09 +00:00
|
|
|
USE_MYSQL= yes
|
2004-11-26 11:55:41 +00:00
|
|
|
.else
|
2008-11-12 16:49:09 +00:00
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
2004-04-30 15:50:30 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
2008-11-12 16:49:09 +00:00
|
|
|
@${MKDIR} ${PREFIX}/libexec/anope
|
|
|
|
@${MKDIR} ${DATADIR}
|
2004-04-30 15:50:30 +00:00
|
|
|
|
2009-01-14 16:00:10 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${DOCSDIR}/
|
|
|
|
.endif
|
|
|
|
|
2004-04-30 15:50:30 +00:00
|
|
|
.include <bsd.port.post.mk>
|