mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# New ports collection makefile for: dgd
|
|
# Version required: 1.0.37
|
|
# Date created: 23 August 1994
|
|
# Whom: adam
|
|
#
|
|
# $Id: Makefile,v 1.39 1996/03/10 09:30:57 adam Exp $
|
|
#
|
|
|
|
DISTNAME= dgd-1.0.47
|
|
DISTFILES= dgd-1.0.37.tar.gz
|
|
CATEGORIES= net lang
|
|
MASTER_SITES= ftp.lysator.liu.se:/pub/lpmud/drivers/dgd/
|
|
|
|
PATCH_SITES= ftp.veda.is:/pub/mud/dgd/patches/
|
|
PATCHFILES= 1.0.37-1.0.38.gz \
|
|
1.0.38-1.0.39.gz \
|
|
1.0.39-1.0.40.gz \
|
|
1.0.40-1.0.41.gz \
|
|
1.0.41-1.0.42.gz \
|
|
1.0.42-1.0.43.gz \
|
|
1.0.43-1.0.44.gz \
|
|
1.0.44-1.0.45.gz \
|
|
1.0.45-1.0.46.gz \
|
|
1.0.46-1.0.47.gz
|
|
|
|
MAINTAINER= adam@veda.is
|
|
|
|
DIST_SUBDIR= dgd
|
|
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
|
|
@chmod o+r ${WRKDIR}/dgd/doc/kfun/*
|
|
|
|
do-install:
|
|
@-mv ${PREFIX}/dgd/bin/driver ${PREFIX}/dgd/bin/driver.old
|
|
@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>
|