diff options
author | mat <mat@FreeBSD.org> | 2004-04-30 23:50:30 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2004-04-30 23:50:30 +0800 |
commit | b5ea93f73d1280c5086e0ff978e60bf1f4c0dffc (patch) | |
tree | d7b4658cd810c125d30964d72af882ec2b25e7b3 /irc/anope/Makefile | |
parent | 6479a95137b23cae56d465101544783587f1108f (diff) | |
download | freebsd-ports-gnome-b5ea93f73d1280c5086e0ff978e60bf1f4c0dffc.tar.gz freebsd-ports-gnome-b5ea93f73d1280c5086e0ff978e60bf1f4c0dffc.tar.zst freebsd-ports-gnome-b5ea93f73d1280c5086e0ff978e60bf1f4c0dffc.zip |
Add anope 1.6.2, a set of IRC services for IRC networks.
Diffstat (limited to 'irc/anope/Makefile')
-rw-r--r-- | irc/anope/Makefile | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/irc/anope/Makefile b/irc/anope/Makefile new file mode 100644 index 000000000000..aee79c321c28 --- /dev/null +++ b/irc/anope/Makefile @@ -0,0 +1,107 @@ +# New ports collection makefile for: anope +# Date created: 13/04/2004 +# Whom: mat +# +# $FreeBSD$ +# + +PORTNAME= anope +PORTVERSION= 1.6.2 +CATEGORIES= irc +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= mat@FreeBSD.org +COMMENT= A set of IRC services for IRC networks + +USE_GMAKE= yes +HAS_CONFIGURE= yes +USE_REINPLACE= yes + +# OPTIONS --{{{ +OPTIONS= MYSQL "Use mysql" ON \ + MODULES "Use modules" ON \ + MD5 "Encrypt passwords" ON \ + THREAD "Build with threads (needed for proxy detector)" ON \ + DREAM "DreamForge 4.6.7 " OFF \ + BAHAMUT "Bahamut 1.4.27 [or later]" OFF \ + UNREAL "UnrealIRCd 3.1.1 [or later]" OFF \ + ULT2 "UltimateIRCd 2.8.2 [or later]" OFF \ + ULT3 "UltimateIRCd 3.0.0 [alpha26 or later]" OFF \ + HYB "Hybrid IRCd 7.0 [experimental]" OFF \ + VIA "ViagraIRCd 1.3.x [or later]" OFF \ + PTL "PTlink 6.15.0 [experimental]" OFF +#}}} + +ANOPEBIN?= ${PREFIX}/libexec/anope +ANOPEDAT?= ${DATADIR} +ANOPEMOD?= ${PREFIX}/lib/anope/ +ANOPEUMASK?= 077 + +.include <bsd.port.pre.mk> + +.if defined(WITH_MYSQL) +USE_MYSQL= yes +.endif + +post-patch: + @${REINPLACE_CMD} -e "s/-D_REENTRANT/${PTHREAD_CFLAGS}/" \ + -e "s/-pthread/${PTHREAD_LIBS}/" \ + ${WRKSRC}/configure + +pre-configure: #--{{{ + @${ECHO_CMD} PROGRAM="anope" > ${WRKSRC}/config.cache + @${ECHO_CMD} BINDEST="${ANOPEBIN}" >> ${WRKSRC}/config.cache + @${ECHO_CMD} DATDEST="${ANOPEDAT}" >> ${WRKSRC}/config.cache + @${ECHO_CMD} UMASK="${ANOPEUMASK}" >> ${WRKSRC}/config.cache +.if defined(WITH_MYSQL) + @${ECHO_CMD} MYSQL="USE_MYSQL" >> ${WRKSRC}/config.cache + @${ECHO_CMD} RDB="USE_RDB" >> ${WRKSRC}/config.cache +.endif +.if defined(WITH_MODULES) + @${ECHO_CMD} USE_MODULES="USE_MODULES" >> ${WRKSRC}/config.cache + @${ECHO_CMD} MODULE_PATH="${ANOPEMOD}" >> ${WRKSRC}/config.cache +.endif +.if defined(WITH_MD5) + @${ECHO_CMD} ENCRYPTION="ENCRYPT_MD5" >> ${WRKSRC}/config.cache +.endif +.if defined(WITH_THREAD) + @${ECHO_CMD} THREAD="USE_THREADS" >> ${WRKSRC}/config.cache +.endif +.if defined(WITH_DREAM) + @${ECHO_CMD} IRCTYPE=1 >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF="IRC_DREAMFORGE" >> ${WRKSRC}/config.cache +.elif defined(WITH_BAHAMUT) + @${ECHO_CMD} IRCTYPE=2 >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF="IRC_BAHAMUT" >> ${WRKSRC}/config.cache +.elif defined(WITH_UNREAL) + @${ECHO_CMD} IRCTYPE=3 >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF="IRC_DREAMFORGE" >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF2="IRC_UNREAL" >> ${WRKSRC}/config.cache +.elif defined(WITH_ULT2) + @${ECHO_CMD} IRCTYPE=4 >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF="IRC_DREAMFORGE" >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF2="IRC_ULTIMATE" >> ${WRKSRC}/config.cache +.elif defined(WITH_ULT3) + @${ECHO_CMD} IRCTYPE=5 >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF="IRC_BAHAMUT" >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF2="IRC_ULTIMATE3" >> ${WRKSRC}/config.cache +.elif defined(WITH_HYB) + @${ECHO_CMD} IRCTYPE=6 >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF="IRC_HYBRID" >> ${WRKSRC}/config.cache +.elif defined(WITH_VIA) + @${ECHO_CMD} IRCTYPE=7 >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF="IRC_BAHAMUT" >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF2="IRC_VIAGRA" >> ${WRKSRC}/config.cache +.elif defined(WITH_PTL) + @${ECHO_CMD} IRCTYPE=8 >> ${WRKSRC}/config.cache + @${ECHO_CMD} IRCTYPE_DEF="IRC_PTLINK" >> ${WRKSRC}/config.cache +.endif +#}}} + +pre-install: + @${MKDIR} ${ANOPEBIN} + @${MKDIR} ${ANOPEDAT} + @${MKDIR} ${ANOPEMOD} + +.include <bsd.port.post.mk> |