# New ports collection makefile for: dgd # Date created: 23 August 1994 # Whom: adam@veda.is # # $FreeBSD$ # PORTNAME= dgd PORTVERSION= 1.4.5 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 LICENSE= GPLv3 OPTIONS= NETWORKING "With networking kfuns" off \ DUMP "With dump kfuns" off \ 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 MAKE_ENV+= EXTRA_DEFINES="$(EXTRA_DEFINES)" .if !defined(NOPORTDOCS) PORTDOCS= * .endif .include EXTRA_DEFINES= .if defined(WITH_NETWORKING) EXTRA_DEFINES+= -DNETWORK_EXTENSIONS .endif .if defined(WITH_DUMP) EXTRA_DEFINES+= -DDUMP_FUNCS .endif .if defined(WITH_LPC_EXTENSION) EXTRA_DEFINES+= -DLPC_EXTENSION .endif 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} ${INSTALL_DATA} ${WRKDIR}/dgd/Changelog ${DOCSDIR} ${INSTALL_DATA} ${WRKDIR}/dgd/Credits ${DOCSDIR} ${INSTALL_DATA} ${WRKDIR}/dgd/README ${DOCSDIR} cd ${WRKDIR}/dgd/doc && ${COPYTREE_SHARE} . ${DOCSDIR} .endif post-install: @# Run package installation script @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} \ POST-INSTALL .include