2003-09-06 00:26:41 +02:00
|
|
|
# New ports collection makefile for: ldmud
|
|
|
|
# Date created: 13 August 2003
|
|
|
|
# Whom: glewis@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ldmud
|
2011-06-11 12:29:42 +02:00
|
|
|
PORTVERSION= 3.3.720
|
|
|
|
PORTEPOCH= 1
|
2003-09-06 00:26:41 +02:00
|
|
|
CATEGORIES= games net
|
2011-06-11 12:29:42 +02:00
|
|
|
MASTER_SITES= http://www.bearnip.com/ftp/mud/ \
|
|
|
|
ftp://mud.stack.nl/pub/ldmud/
|
2003-09-06 00:26:41 +02:00
|
|
|
|
2011-06-11 12:29:42 +02:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-09-06 00:26:41 +02:00
|
|
|
COMMENT= A modern version of the LPMud game driver
|
|
|
|
|
2011-06-11 12:29:42 +02:00
|
|
|
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
|
|
|
|
|
2003-09-06 00:26:41 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-06-11 12:29:42 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
CONFIGURE_ARGS+=--libdir=${DATADIR} \
|
|
|
|
--bindir=${PREFIX}/sbin \
|
|
|
|
--enable-use-pcre \
|
|
|
|
--enable-use-tls=ssl
|
2003-09-06 00:26:41 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
|
|
|
ALL_TARGET= ldmud
|
2007-07-15 00:39:13 +02:00
|
|
|
MAN1= ldmud.1
|
2011-06-11 12:29:42 +02:00
|
|
|
USE_RC_SUBR= ldmud.sh
|
|
|
|
SUB_LIST+= LDUSER=${USERS}
|
2009-11-20 23:53:09 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2003-09-06 00:26:41 +02:00
|
|
|
|
2011-06-11 12:29:42 +02:00
|
|
|
USERS= mud
|
|
|
|
GROUPS= mud
|
|
|
|
|
|
|
|
OPTIONS= MYSQL "Enable MySQL database support" On \
|
|
|
|
PGSQL "Enable PostgreSQL database support" On \
|
|
|
|
SQLITE "Enable SQLite database support" On \
|
|
|
|
IPV6 "Enable IPv6 support" On \
|
|
|
|
LPMUD "Install default mudlib (LP-245)" On
|
|
|
|
|
|
|
|
PORTSCOUT= skipv:3.4
|
2011-06-08 18:52:51 +02:00
|
|
|
|
2011-06-11 12:29:42 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.ifdef WITH_IPV6
|
|
|
|
CONFIGURE_ARGS+=--enable-use-ipv6
|
2003-09-06 00:26:41 +02:00
|
|
|
.else
|
2011-06-11 12:29:42 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-use-ipv6
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef WITH_MYSQL
|
|
|
|
USE_MYSQL= yes
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib/mysql
|
|
|
|
CONFIGURE_ARGS+=--enable-use-mysql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-use-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef WITH_PGSQL
|
|
|
|
USE_PGSQL= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-use-pgsql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-use-pgsql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef WITH_SQLITE
|
|
|
|
USE_SQLITE= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-use-sqlite
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-use-sqlite
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef WITH_LPMUD
|
|
|
|
PLIST_SUB+= LPMUD="" DEMOLIB="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= LPMUD="@comment " DEMOLIB=""
|
2003-09-06 00:26:41 +02:00
|
|
|
.endif
|
|
|
|
|
2007-05-27 05:03:31 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-09-06 00:26:41 +02:00
|
|
|
post-install:
|
2011-06-11 12:29:42 +02:00
|
|
|
# # Install mudlib and other directories
|
|
|
|
@${MKDIR} ${DATADIR} /var/log/${PORTNAME} /var/run/${PORTNAME}
|
|
|
|
@${CHOWN} ${USERS}:${GROUPS} /var/log/${PORTNAME} /var/run/${PORTNAME}
|
|
|
|
.ifdef WITH_LPMUD
|
|
|
|
@cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/mud/lp-245 && ${FIND} . \
|
|
|
|
| ${CPIO} -pdmu -R ${USERS}:${GROUPS} ${DATADIR}
|
|
|
|
.else
|
|
|
|
@cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/mudlib && ${FIND} . \
|
|
|
|
| ${CPIO} -pdmu -R ${USERS}:${GROUPS} ${DATADIR}
|
2003-09-06 00:26:41 +02:00
|
|
|
.endif
|
2011-06-11 12:29:42 +02:00
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc && ${FIND} . \
|
2003-09-06 00:26:41 +02:00
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
2011-06-11 12:29:42 +02:00
|
|
|
@${RM} -f ${DOCSDIR}/Makefile
|
2003-09-06 00:26:41 +02:00
|
|
|
.endif
|
|
|
|
|
2007-05-27 05:03:31 +02:00
|
|
|
.include <bsd.port.post.mk>
|