1994-08-30 12:55:07 +00:00
|
|
|
# New ports collection makefile for: dgd
|
1996-02-08 02:13:38 +00:00
|
|
|
# Version required: 1.0.37
|
1994-08-30 12:55:07 +00:00
|
|
|
# Date created: 23 August 1994
|
|
|
|
# Whom: adam
|
|
|
|
#
|
1996-02-27 19:05:36 +00:00
|
|
|
# $Id: Makefile,v 1.36 1996/02/08 02:13:38 asami Exp $
|
1996-02-08 00:30:51 +00:00
|
|
|
#
|
1994-08-30 12:55:07 +00:00
|
|
|
|
1996-02-27 19:05:36 +00:00
|
|
|
DISTNAME= dgd-1.0.41
|
|
|
|
DISTFILES= dgd-1.0.37.tar.gz
|
1996-02-08 02:13:38 +00:00
|
|
|
CATEGORIES= net lang
|
1995-10-25 15:11:48 +00:00
|
|
|
MASTER_SITES= ftp.lysator.liu.se:/pub/lpmud/drivers/dgd/
|
1996-02-08 02:13:38 +00:00
|
|
|
|
1996-02-27 19:05:36 +00:00
|
|
|
PATCH_SITES= ftp.veda.is:/pub/mud/dgd/patches/
|
|
|
|
PATCHFILES= 1.0.37-1.0.41.gz
|
1994-10-19 15:30:07 +00:00
|
|
|
|
1995-05-03 19:23:39 +00:00
|
|
|
MAINTAINER= adam@veda.is
|
|
|
|
|
1996-02-08 00:30:51 +00:00
|
|
|
.ifdef PATCHFILES
|
1995-05-04 03:11:21 +00:00
|
|
|
.if ${PATCHFILES} != ""
|
1996-02-27 19:05:36 +00:00
|
|
|
PATCH_PRFX!= echo ${DISTFILES} | sed 's/^\(.*\)\.tar\.gz$$/\1\//'
|
1995-05-03 19:23:39 +00:00
|
|
|
.endif
|
1996-02-08 00:30:51 +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:
|
1996-02-27 19:05:36 +00:00
|
|
|
@-mv ${PREFIX}/dgd/bin/driver ${PREFIX}/dgd/bin/driver.old
|
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>
|