summaryrefslogtreecommitdiffstats
path: root/net/dgd/Makefile
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2003-09-05 22:15:51 +0000
committerglewis <glewis@FreeBSD.org>2003-09-05 22:15:51 +0000
commit871980daf0b9e0936d50b05c2dd6e6ac08e71f11 (patch)
tree67d2724c338e2ddb299f1988f091a01142baea30 /net/dgd/Makefile
parent65c40ecc26c93a8943909cecdf51a837ce58e7c6 (diff)
downloadFreeBSD-ports-871980daf0b9e0936d50b05c2dd6e6ac08e71f11.zip
FreeBSD-ports-871980daf0b9e0936d50b05c2dd6e6ac08e71f11.tar.gz
. Add (optional) support for the DGD networking package.
Diffstat (limited to 'net/dgd/Makefile')
-rw-r--r--net/dgd/Makefile22
1 files changed, 21 insertions, 1 deletions
diff --git a/net/dgd/Makefile b/net/dgd/Makefile
index 760e703..caa9fb1 100644
--- a/net/dgd/Makefile
+++ b/net/dgd/Makefile
@@ -7,11 +7,17 @@
PORTNAME= dgd
PORTVERSION= 1.2p3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net lang games
MASTER_SITES= ${MASTER_SITE_LOCAL:S|%SUBDIR%|glewis/dgd|} \
ftp://ftp.dworkin.nl/pub/dgd/ \
ftp://ftp.imaginary.com/pub/LPC/servers/DGD/
+.ifdef (WITH_NETWORKING)
+PATCH_SITES= ftp://noname.franken.de/pub/dgd/
+PATCHFILES= Network-1-DGD-1.2p3-patch.gz
+PATCH_DIST_STRIP= -p1
+PATCH_STRIP= -p0 -F 3
+.endif
MAINTAINER= glewis@FreeBSD.org
COMMENT= Dworkin's Generic Driver (network server)
@@ -21,14 +27,25 @@ RESTRICTED= "license required for commercial use"
DIST_SUBDIR= dgd
WRKSRC= ${WRKDIR}/dgd/src
+PATCH_WRKSRC= ${WRKDIR}/dgd
ALL_TARGET= install
USE_REINPLACE= yes
CPIO?= /usr/bin/cpio
+.ifdef (WITH_NETWORKING)
+PLIST_SUB+= NETWORKING=""
+.else
+PLIST_SUB+= NETWORKING="@comment "
+.endif
do-configure:
${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:" ${WRKDIR}/dgd/mud.dgd
+.ifdef (WITH_NETWORKING)
+post-configure:
+ cd ${WRKDIR}/dgd/ && ${FIND} . -name '*.orig' -delete
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/dgd/bin/driver ${PREFIX}/sbin/dgd
${INSTALL_PROGRAM} ${WRKDIR}/dgd/bin/precomp ${PREFIX}/bin/precomp
@@ -46,6 +63,9 @@ do-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/dgd/Copyright ${DOCSDIR}
+.ifdef (WITH_NETWORKING)
+ ${INSTALL_DATA} ${WRKDIR}/dgd/Copyright.NETWORK-PACKAGE ${DOCSDIR}
+.endif
${INSTALL_DATA} ${WRKDIR}/dgd/Credits ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/dgd/README ${DOCSDIR}
cd ${WRKDIR}/dgd/doc && ${FIND} . \
OpenPOWER on IntegriCloud