1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/net/dgd/Makefile

83 lines
2.0 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: dgd
# Date created: 23 August 1994
# Whom: adam@veda.is
#
1999-08-30 14:24:37 +00:00
# $FreeBSD$
#
PORTNAME= dgd
2012-04-25 15:02:09 +00:00
PORTVERSION= 1.4.14
CATEGORIES= net lang games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S|%SUBDIR%|${PORTNAME}-osr|} \
${MASTER_SITE_SOURCEFORGE:S|%SUBDIR%|${PORTNAME}-osr/old|}
MAINTAINER= glewis@FreeBSD.org
COMMENT= Dworkin\'s Game Driver
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 \
CLOSURES "With function pointer support" off \
2010-10-03 18:08:26 +00:00
LPC_EXTENSION "With LPC extension interface" off
DIST_SUBDIR= dgd
WRKSRC= ${WRKDIR}/dgd/src
PATCH_WRKSRC= ${WRKDIR}/dgd
ALL_TARGET= install
MAKE_JOBS_UNSAFE= yes
2010-03-07 00:35:58 +00:00
MAKE_ENV+= EXTRA_DEFINES="$(EXTRA_DEFINES)"
2009-07-04 05:39:52 +00:00
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
USERS= mud
GROUPS= mud
.include <bsd.port.pre.mk>
2010-03-07 00:35:58 +00:00
EXTRA_DEFINES=
.if defined(WITH_NETWORKING)
2010-03-07 00:35:58 +00:00
EXTRA_DEFINES+= -DNETWORK_EXTENSIONS
.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
.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
@cd ${WRKDIR}/dgd/ && ${FIND} . -name '*.orig' -delete
do-install:
${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 \
${PREFIX}/etc/${PORTNAME}/mud.dgd.sample
@# Install an RC script for DGD
${CAT} ${FILESDIR}/dgd.sh | ${SED} -e "s:%%PREFIX%%:${PREFIX}:" \
-e "s:%%DATADIR%%:${DATADIR}:" > \
${PREFIX}/etc/rc.d/dgd.sh.sample
${CHMOD} a+x ${PREFIX}/etc/rc.d/dgd.sh.sample
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/dgd/COPYING ${DOCSDIR}
2010-03-07 00:35:58 +00:00
${INSTALL_DATA} ${WRKDIR}/dgd/Changelog ${DOCSDIR}
${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}
.endif
.include <bsd.port.post.mk>