summaryrefslogtreecommitdiff
path: root/games/ldmud/Makefile
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-09-05 22:26:41 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-09-05 22:26:41 +0000
commit87a76f2e41be39694c50a8789e0ead03be059c38 (patch)
tree975f085efb66bd88192a4d05239ad70a750c3f8a /games/ldmud/Makefile
parent. Add (optional) support for the DGD networking package. (diff)
. Add a port of the LDMud driver (with optional 2.4.5 mudlib).
"LDMud started as a project to clean up and modernize Amylaar's LPMud gamedriver. Primary goals are full documentation, a commented source body and out-of-the-box support for the major mudlibs, of which the commented source body has been pretty much completed. During the course of work a lot of bug fixes and improvements found their way into the driver - much more than originally expected, and definitely enough to make LDMud a driver in its own right."
Notes
Notes: svn path=/head/; revision=88608
Diffstat (limited to 'games/ldmud/Makefile')
-rw-r--r--games/ldmud/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/games/ldmud/Makefile b/games/ldmud/Makefile
new file mode 100644
index 000000000000..86f9299f293b
--- /dev/null
+++ b/games/ldmud/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: ldmud
+# Date created: 13 August 2003
+# Whom: glewis@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= ldmud
+PORTVERSION= 3.2.9
+CATEGORIES= games net
+MASTER_SITES= http://www.bearnip.com/ftp/mud/ \
+ ftp://ftp.mud.de/pub/software/gamedriver/ldmud/
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
+
+MAINTAINER= glewis@FreeBSD.org
+COMMENT= A modern version of the LPMud game driver
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--libdir=${DATADIR} --bindir=${PREFIX}/sbin
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
+ALL_TARGET= ldmud
+
+CPIO?= /usr/bin/cpio
+LOGDIR= ${DATADIR}
+.if defined(MUDLIB) && ${MUDLIB} == lpmud
+PLIST_SUB+= LPMUD="" MUDLIB="@comment "
+LOGDIR= ${DATADIR}/log
+.elif !defined(MUDLIB) || ${MUDLIB} != none
+PLIST_SUB+= LPMUD="@comment " MUDLIB=""
+.else
+PLIST_SUB+= LPMUD="@comment " MUDLIB="@comment "
+.endif
+
+post-install:
+ # Install an RC script for ldmud
+ ${CAT} ${FILESDIR}/ldmud.sh | ${SED} -e "s:%%PREFIX%%:${PREFIX}:" \
+ -e "s:%%LOGDIR%%:${LOGDIR}:" > \
+ ${PREFIX}/etc/rc.d/ldmud.sh.sample
+ ${CHMOD} a+x ${PREFIX}/etc/rc.d/ldmud.sh.sample
+ # Create mudlib directory
+ ${MKDIR} ${DATADIR}
+.if defined(MUDLIB) && ${MUDLIB} == lpmud
+ cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/mud/lp-245 && ${FIND} . \
+ | ${CPIO} -pdmu ${DATADIR}
+.elif !defined(MUDLIB) || ${MUDLIB} != none
+ cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/mudlib && ${FIND} . \
+ | ${CPIO} -pdmu ${DATADIR}
+.endif
+ # Set mudlib ownership
+ -@${CHOWN} -h -R mud:mud ${DATADIR}
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc && ${FIND} . \
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+ ${RM} -f ${DOCSDIR}/Makefile
+.endif
+ # Run package install script
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} \
+ POST-INSTALL
+
+.include <bsd.port.mk>