1994-08-30 12:55:07 +00:00
|
|
|
# New ports collection makefile for: dgd
|
1995-04-15 05:42:12 +00:00
|
|
|
# Version required: 1.0.9
|
1994-08-30 12:55:07 +00:00
|
|
|
# Date created: 23 August 1994
|
|
|
|
# Whom: adam
|
|
|
|
#
|
|
|
|
|
1995-03-10 18:52:49 +00:00
|
|
|
DISTNAME= dgd-1.0.9
|
1994-10-19 15:30:07 +00:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz
|
1995-05-04 03:11:21 +00:00
|
|
|
PATCHFILES= 1.0.9-1.0.9.1.gz
|
1995-10-25 15:11:48 +00:00
|
|
|
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
|
1994-10-19 15:30:07 +00:00
|
|
|
|
1995-05-03 19:23:39 +00:00
|
|
|
MAINTAINER= adam@veda.is
|
|
|
|
|
1995-05-04 03:11:21 +00:00
|
|
|
.if ${PATCHFILES} != ""
|
1995-05-04 18:48:06 +00:00
|
|
|
PATCH_PRFX= ${DISTNAME}/
|
1995-05-04 03:11:21 +00:00
|
|
|
PATCHLEVEL!= echo ${PATCHFILES} | sed 's/^.*\.\(.*\)\.gz$$/\1/'
|
|
|
|
PKGNAME= ${DISTNAME}.${PATCHLEVEL}
|
1995-05-03 19:23:39 +00:00
|
|
|
.endif
|
1994-08-30 12:55:07 +00:00
|
|
|
WRKSRC= ${WRKDIR}/dgd/src
|
|
|
|
|
1995-05-04 03:11:21 +00:00
|
|
|
pre-patch:
|
|
|
|
@ln -fs .. ${WRKSRC}/dgd
|
1994-08-30 12:55:07 +00:00
|
|
|
|
1995-05-04 03:11:21 +00:00
|
|
|
post-patch:
|
1994-08-30 12:55:07 +00:00
|
|
|
@find -X ${WRKDIR}/dgd -name '*.orig' -print | xargs rm -f
|
|
|
|
|
1995-05-04 03:11:21 +00:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}; ${MAKE} install
|
1995-05-14 13:57:57 +00:00
|
|
|
@sed '/^@srcdir/s|\.|${WRKDIR}/\.|' <${PKGDIR}/PLIST >${WRKDIR}/PLIST
|
1994-08-30 12:55:07 +00:00
|
|
|
|
1995-04-22 12:30:11 +00:00
|
|
|
do-install:
|
1994-08-30 17:25:25 +00:00
|
|
|
@tar -C ${WRKDIR} -cf - `grep '^dgd/' pkg/PLIST` \
|
1995-04-24 16:52:12 +00:00
|
|
|
| tar -C ${PREFIX} -xpf -
|
|
|
|
|
|
|
|
.if !defined(DO_PACKAGE)
|
1995-05-03 19:23:39 +00:00
|
|
|
package:
|
1995-05-14 12:46:06 +00:00
|
|
|
# @${MAKE} ${.MAKEFLAGS} 'PKG_CMD= cd ${WRKDIR}; ${PKG_CMD}' \
|
|
|
|
@${MAKE} ${.MAKEFLAGS} 'PKG_ARGS= ${PKG_ARGS} -f ${WRKDIR}/PLIST' \
|
1995-05-04 03:11:21 +00:00
|
|
|
NO_INSTALL= DO_PACKAGE= package
|
1995-11-02 10:17:15 +00:00
|
|
|
.else
|
|
|
|
post-package:
|
|
|
|
@rm ${INSTALL_COOKIE}
|
1995-04-24 16:52:12 +00:00
|
|
|
.endif
|
1994-08-30 17:25:25 +00:00
|
|
|
|
1994-08-30 12:55:07 +00:00
|
|
|
.include <bsd.port.mk>
|