freebsd-ports/net/dgd/Makefile
Adam David 20ebb11604 use main sequence of patchfiles instead of a megapatch.
make the contents of doc/kfun world readable.
1996-03-10 09:30:57 +00:00

52 lines
1.2 KiB
Makefile

# New ports collection makefile for: dgd
# Version required: 1.0.37
# Date created: 23 August 1994
# Whom: adam
#
# $Id: Makefile,v 1.38 1996/03/10 09:01:49 asami Exp $
#
DISTNAME= dgd-1.0.41
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
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>