1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/net/dgd/Makefile

48 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: dgd
1995-04-15 05:42:12 +00:00
# Version required: 1.0.9
# Date created: 23 August 1994
# Whom: adam
#
1995-03-10 18:52:49 +00:00
DISTNAME= dgd-1.0.9
DISTFILES= ${DISTNAME}.tar.gz
PATCHFILES= 1.0.9-1.0.9.1.gz
MASTER_SITES= ftp.lysator.liu.se:/pub/lpmud/drivers/dgd/
PATCH_SITES= ftp.veda.is:/pub/mud/dgd/patches/
1995-11-26 12:21:42 +00:00
CATEGORIES= net lang
MAINTAINER= adam@veda.is
.if ${PATCHFILES} != ""
PATCH_PRFX= ${DISTNAME}/
PATCHLEVEL!= echo ${PATCHFILES} | sed 's/^.*\.\(.*\)\.gz$$/\1/'
PKGNAME= ${DISTNAME}.${PATCHLEVEL}
.endif
WRKSRC= ${WRKDIR}/dgd/src
pre-patch:
@ln -fs .. ${WRKSRC}/dgd
post-patch:
@find -X ${WRKDIR}/dgd -name '*.orig' -print | xargs rm -f
post-build:
@cd ${WRKSRC}; ${MAKE} install
@sed '/^@srcdir/s|\.|${WRKDIR}/\.|' <${PKGDIR}/PLIST >${WRKDIR}/PLIST
do-install:
@tar -C ${WRKDIR} -cf - `grep '^dgd/' pkg/PLIST` \
| tar -C ${PREFIX} -xpf -
.if !defined(DO_PACKAGE)
package:
# @${MAKE} ${.MAKEFLAGS} 'PKG_CMD= cd ${WRKDIR}; ${PKG_CMD}' \
@${MAKE} ${.MAKEFLAGS} 'PKG_ARGS= ${PKG_ARGS} -f ${WRKDIR}/PLIST' \
NO_INSTALL= DO_PACKAGE= package
.else
post-package:
@rm ${INSTALL_COOKIE}
.endif
.include <bsd.port.mk>