Changeset View
Changeset View
Standalone View
Standalone View
head/irc/ircd-ratbox/Makefile
# Created by: Shaun Amott <shaun@inerd.com> | # Created by: Shaun Amott <shaun@inerd.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= ircd-ratbox | PORTNAME= ircd-ratbox | ||||
PORTVERSION= 3.0.8 | PORTVERSION= 3.0.8 | ||||
PORTREVISION= 6 | PORTREVISION= 7 | ||||
CATEGORIES= irc ipv6 | CATEGORIES= irc ipv6 | ||||
MASTER_SITES= http://www.ratbox.org/download/ \ | MASTER_SITES= http://www.ratbox.org/download/ \ | ||||
http://www.ratbox.org/download/old/ | http://www.ratbox.org/download/old/ | ||||
MAINTAINER= moggie@elasticmind.net | MAINTAINER= moggie@elasticmind.net | ||||
COMMENT= Advanced, stable IRC daemon, used widely on EFnet | COMMENT= Advanced, stable IRC daemon, used widely on EFnet | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
ASSERT_DESC= Enable debugging code | ASSERT_DESC= Enable debugging code | ||||
SMALL_NET_DESC= Tune server internals for small networks | SMALL_NET_DESC= Tune server internals for small networks | ||||
SERVICES_DESC= Enable ratbox-services compatibility code | SERVICES_DESC= Enable ratbox-services compatibility code | ||||
SHORTCUTS_DESC= Build with ircd-shortcut commands | SHORTCUTS_DESC= Build with ircd-shortcut commands | ||||
OPTIONS_DEFAULT= OPENSSL IPV6 ZIPLINKS SHARED_MODS | OPTIONS_DEFAULT= OPENSSL IPV6 ZIPLINKS SHARED_MODS | ||||
OPTIONS_EXCLUDE= NLS EXAMPLES | OPTIONS_EXCLUDE= NLS EXAMPLES | ||||
#---------------------------------------------------------------------- | OPTIONS_SUB= yes | ||||
.include <bsd.port.options.mk> | ASSERT_CONFIGURE_ENABLE= assert | ||||
IPV6_CONFIGURE_ENABLE= ipv6 | |||||
OPENSSL_USE= openssl=yes | |||||
OPENSSL_CONFIGURE_ON= --enable-openssl=${OPENSSLBASE} | |||||
OPENSSL_CONFIGURE_OFF= --disable-openssl | |||||
SERVICES_CONFIGURE_ENABLE= services | |||||
SHARED_MODS_CONFIGURE_ON= --disable-static | |||||
SHARED_MODS_CONFIGURE_OFF= --enable-static | |||||
SHORTCUTS_USES= perl5 | |||||
SHORTCUTS_USE= perl5=build | |||||
SMALL_NET_CONFIGURE_ENABLE= small-net | |||||
ZIPLINKS_CONFIGURE_ENABLE= zlib | |||||
.if ${PORT_OPTIONS:MOPENSSL} | |||||
USE_OPENSSL= yes | |||||
CONFIGURE_ARGS+= --enable-openssl | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-openssl | |||||
.endif | |||||
.if ${PORT_OPTIONS:MIPV6} | |||||
CONFIGURE_ARGS+= --enable-ipv6 | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-ipv6 | |||||
.endif | |||||
.if ${PORT_OPTIONS:MZIPLINKS} | |||||
CONFIGURE_ARGS+= --enable-zlib | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-zlib | |||||
.endif | |||||
.if ${PORT_OPTIONS:MSHARED_MODS} | |||||
CONFIGURE_ARGS+= --disable-static | |||||
.else | |||||
CONFIGURE_ARGS+= --enable-static | |||||
.endif | |||||
.if ${PORT_OPTIONS:MASSERT} | |||||
CONFIGURE_ARGS+= --enable-assert | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-assert | |||||
.endif | |||||
.if ${PORT_OPTIONS:MSMALL_NET} | |||||
CONFIGURE_ARGS+= --enable-small-net | |||||
.endif | |||||
.if ${PORT_OPTIONS:MSERVICES} | |||||
CONFIGURE_ARGS+= --enable-services | |||||
PLIST_SUB+= SERVICES="" | |||||
.else | |||||
PLIST_SUB+= SERVICES="@comment " | |||||
.endif | |||||
.if ${PORT_OPTIONS:MSHORTCUTS} | |||||
USES+= perl5 | |||||
USE_PERL5= build | |||||
PLIST_SUB+= SHORTCUTS="" | |||||
.else | |||||
PLIST_SUB+= SHORTCUTS="@comment " | |||||
.endif | |||||
#-- User Configuration ------------------------------------------------- | #-- User Configuration ------------------------------------------------- | ||||
.if !empty(NICKLEN) | .if !empty(NICKLEN) | ||||
CONFIGURE_ARGS+= --with-nicklen=${NICKLEN} | CONFIGURE_ARGS+= --with-nicklen=${NICKLEN} | ||||
.endif | .endif | ||||
#----------------------------------------------------------------------- | #----------------------------------------------------------------------- | ||||
Show All 28 Lines | pre-build: | ||||
@${REINPLACE_CMD} -e "s#%%LOGDIR%%#${LOGDIR}#g" \ | @${REINPLACE_CMD} -e "s#%%LOGDIR%%#${LOGDIR}#g" \ | ||||
${WRKSRC}/doc/example.conf \ | ${WRKSRC}/doc/example.conf \ | ||||
${WRKSRC}/doc/example.efnet.conf | ${WRKSRC}/doc/example.efnet.conf | ||||
@${REINPLACE_CMD} -e "s#%%DBDIR%%#${DBDIR}#g" \ | @${REINPLACE_CMD} -e "s#%%DBDIR%%#${DBDIR}#g" \ | ||||
${WRKSRC}/doc/example.conf \ | ${WRKSRC}/doc/example.conf \ | ||||
${WRKSRC}/doc/example.efnet.conf | ${WRKSRC}/doc/example.efnet.conf | ||||
@${REINPLACE_CMD} -e "s#%%RUNDIR%%#${RUNDIR}#g" ${WRKSRC}/include/config.h | @${REINPLACE_CMD} -e "s#%%RUNDIR%%#${RUNDIR}#g" ${WRKSRC}/include/config.h | ||||
@${REINPLACE_CMD} -e "s#%%DBDIR%%#${DBDIR}#g" ${WRKSRC}/include/config.h | @${REINPLACE_CMD} -e "s#%%DBDIR%%#${DBDIR}#g" ${WRKSRC}/include/config.h | ||||
@${REINPLACE_CMD} -e "s#%%WRKSRC%%#${WRKSRC}#g" ${WRKSRC}/contrib/ircd-shortcut.pl | |||||
#-- ircd-shortcut.pl ratbox-services commands -------------------------------------- | #-- ircd-shortcut.pl ratbox-services commands -------------------------------------- | ||||
@${REINPLACE_CMD} -e "s#ALIS#${ALIS_SERV:UALIS}#" \ | |||||
-e "s#CHANSERV#${CHAN_SERV:UCHANSERV}#" -e "s#GLOBAL#${GLOBAL_SERV:UGLOBAL}#" \ | |||||
-e "s#JUPESERV#${JUPE_SERV:UJUPESERV}#" -e "s#NICKSERV#${NICK_SERV:UNICKSERV}#" \ | |||||
-e "s#OPERBOT#${OPER_BOT:UOPERBOT}#" -e "s#USERSERV#${USER_SERV:UUSERSERV}#" \ | |||||
-e "s#services.ircd-ratbox.org#${SERVER_NAME:Uservices.ircd-ratbox.org}#" \ | |||||
-e "s#%%WRKSRC%%#${WRKSRC}#g" ${WRKSRC}/contrib/ircd-shortcut.pl | |||||
.if !empty(SERVER_NAME) | |||||
@${REINPLACE_CMD} -e "s#services.ircd-ratbox.org#${SERVER_NAME}#" \ | |||||
${WRKSRC}/contrib/ircd-shortcut.pl | |||||
.endif | |||||
.if !empty(USER_SERV) | |||||
@${REINPLACE_CMD} -e "s#USERSERV#${USER_SERV}#" \ | |||||
${WRKSRC}/contrib/ircd-shortcut.pl | |||||
.endif | |||||
.if !empty(CHAN_SERV) | |||||
@${REINPLACE_CMD} -e "s#CHANSERV#${CHAN_SERV}#" \ | |||||
${WRKSRC}/contrib/ircd-shortcut.pl | |||||
.endif | |||||
.if !empty(NICK_SERV) | |||||
@${REINPLACE_CMD} -e "s#NICKSERV#${NICK_SERV}#" \ | |||||
${WRKSRC}/contrib/ircd-shortcut.pl | |||||
.endif | |||||
.if !empty(ALIS_SERV) | |||||
@${REINPLACE_CMD} -e "s#ALIS#${ALIS_SERV}#" \ | |||||
${WRKSRC}/contrib/ircd-shortcut.pl | |||||
.endif | |||||
.if !empty(OPER_BOT) | |||||
@${REINPLACE_CMD} -e "s#OPERBOT#${OPER_BOT}#" \ | |||||
${WRKSRC}/contrib/ircd-shortcut.pl | |||||
.endif | |||||
.if !empty(OPER_SERV) | |||||
@${REINPLACE_CMD} -e "s#OPERSERV#${OPER_SERV}#" \ | |||||
${WRKSRC}/contrib/ircd-shortcut.pl | |||||
.endif | |||||
.if !empty(JUPE_SERV) | |||||
@${REINPLACE_CMD} -e "s#JUPESERV#${JUPE_SERV}#" \ | |||||
${WRKSRC}/contrib/ircd-shortcut.pl | |||||
.endif | |||||
.if !empty(GLOBAL_SERV) | |||||
@${REINPLACE_CMD} -e "s#GLOBAL#${GLOBAL_SERV}#" \ | |||||
${WRKSRC}/contrib/ircd-shortcut.pl | |||||
.endif | |||||
# ----- Execute ircd-shortcut perl script to generate the .c file. ----- | # ----- Execute ircd-shortcut perl script to generate the .c file. ----- | ||||
.include <bsd.port.options.mk> | |||||
.if ${PORT_OPTIONS:MSHORTCUTS} | .if ${PORT_OPTIONS:MSHORTCUTS} | ||||
@${ECHO_MSG} "Executing ircd-shortcut.pl for ircd-shortcuts generation." | @${ECHO_MSG} "Executing ircd-shortcut.pl for ircd-shortcuts generation." | ||||
${PERL} ${WRKSRC}/contrib/ircd-shortcut.pl | ${PERL} ${WRKSRC}/contrib/ircd-shortcut.pl | ||||
.endif | .endif | ||||
post-build: | post-build: | ||||
@cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \ | @cd ${INSTALL_WRKSRC}/contrib && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \ | ||||
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} | ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} | ||||
Show All 39 Lines |