1994-08-30 12:55:07 +00:00
|
|
|
# New ports collection makefile for: dgd
|
|
|
|
# Date created: 23 August 1994
|
2001-05-06 05:18:27 +00:00
|
|
|
# Whom: adam@veda.is
|
1994-08-30 12:55:07 +00:00
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1996-02-08 00:30:51 +00:00
|
|
|
#
|
1994-08-30 12:55:07 +00:00
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= dgd
|
2012-04-25 15:02:09 +00:00
|
|
|
PORTVERSION= 1.4.14
|
2003-08-29 18:30:08 +00:00
|
|
|
CATEGORIES= net lang games
|
2010-04-04 04:43:04 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S|%SUBDIR%|${PORTNAME}-osr|} \
|
|
|
|
${MASTER_SITE_SOURCEFORGE:S|%SUBDIR%|${PORTNAME}-osr/old|}
|
2002-07-23 17:20:19 +00:00
|
|
|
|
2002-05-20 19:01:51 +00:00
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
2010-04-04 04:43:04 +00:00
|
|
|
COMMENT= Dworkin\'s Game Driver
|
1996-06-17 17:46:35 +00:00
|
|
|
|
2010-10-03 18:08:26 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2010-03-07 00:35:58 +00:00
|
|
|
OPTIONS= NETWORKING "With networking kfuns" off \
|
2010-10-03 18:08:26 +00:00
|
|
|
DUMP "With dump kfuns" off \
|
2011-08-03 06:31:02 +00:00
|
|
|
CLOSURES "With function pointer support" off \
|
2010-10-03 18:08:26 +00:00
|
|
|
LPC_EXTENSION "With LPC extension interface" off
|
2004-03-08 22:06:11 +00:00
|
|
|
|
1996-03-10 09:01:56 +00:00
|
|
|
DIST_SUBDIR= dgd
|
1994-08-30 12:55:07 +00:00
|
|
|
WRKSRC= ${WRKDIR}/dgd/src
|
2003-09-05 22:15:51 +00:00
|
|
|
PATCH_WRKSRC= ${WRKDIR}/dgd
|
2003-08-14 17:28:36 +00:00
|
|
|
ALL_TARGET= install
|
2009-11-19 22:07:43 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2010-03-07 00:35:58 +00:00
|
|
|
MAKE_ENV+= EXTRA_DEFINES="$(EXTRA_DEFINES)"
|
2003-08-29 18:30:08 +00:00
|
|
|
|
2009-07-04 05:39:52 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
2011-08-14 18:04:55 +00:00
|
|
|
USERS= mud
|
|
|
|
GROUPS= mud
|
|
|
|
|
2004-03-08 22:06:11 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-03-07 00:35:58 +00:00
|
|
|
EXTRA_DEFINES=
|
|
|
|
|
2004-03-19 17:06:58 +00:00
|
|
|
.if defined(WITH_NETWORKING)
|
2010-03-07 00:35:58 +00:00
|
|
|
EXTRA_DEFINES+= -DNETWORK_EXTENSIONS
|
2004-03-19 17:06:58 +00:00
|
|
|
.endif
|
|
|
|
|
2010-03-07 00:35:58 +00:00
|
|
|
.if defined(WITH_DUMP)
|
|
|
|
EXTRA_DEFINES+= -DDUMP_FUNCS
|
|
|
|
.endif
|
|
|
|
|
2010-10-03 18:08:26 +00:00
|
|
|
.if defined(WITH_LPC_EXTENSION)
|
|
|
|
EXTRA_DEFINES+= -DLPC_EXTENSION
|
|
|
|
.endif
|
|
|
|
|
2011-08-03 06:31:02 +00:00
|
|
|
.if defined(WITH_CLOSURES)
|
|
|
|
EXTRA_DEFINES+= -DCLOSURES
|
|
|
|
.endif
|
|
|
|
|
2009-07-04 05:39:52 +00:00
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/host/Makefile.bsd ${WRKSRC}/host/Makefile
|
2010-02-14 20:49:55 +00:00
|
|
|
@cd ${WRKDIR}/dgd/ && ${FIND} . -name '*.orig' -delete
|
2003-09-05 22:15:51 +00:00
|
|
|
|
1995-04-22 12:30:11 +00:00
|
|
|
do-install:
|
2003-08-29 18:30:08 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/dgd/bin/driver ${PREFIX}/sbin/dgd
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/dgd/bin/precomp ${PREFIX}/bin/precomp
|
|
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/dgd/mud.dgd \
|
2010-04-04 04:43:04 +00:00
|
|
|
${PREFIX}/etc/${PORTNAME}/mud.dgd.sample
|
2010-02-14 20:49:55 +00:00
|
|
|
@# Install an RC script for DGD
|
2003-08-29 18:30:08 +00:00
|
|
|
${CAT} ${FILESDIR}/dgd.sh | ${SED} -e "s:%%PREFIX%%:${PREFIX}:" \
|
|
|
|
-e "s:%%DATADIR%%:${DATADIR}:" > \
|
2010-04-04 04:43:04 +00:00
|
|
|
${PREFIX}/etc/rc.d/dgd.sh.sample
|
2003-08-29 18:30:08 +00:00
|
|
|
${CHMOD} a+x ${PREFIX}/etc/rc.d/dgd.sh.sample
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2010-02-14 20:49:55 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/dgd/COPYING ${DOCSDIR}
|
2010-03-07 00:35:58 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/dgd/Changelog ${DOCSDIR}
|
2003-08-29 18:30:08 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/dgd/Credits ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/dgd/README ${DOCSDIR}
|
2010-03-07 00:35:58 +00:00
|
|
|
cd ${WRKDIR}/dgd/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
|
2003-08-29 18:30:08 +00:00
|
|
|
.endif
|
|
|
|
|
2004-03-08 22:06:11 +00:00
|
|
|
.include <bsd.port.post.mk>
|