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-03 19:23:39 +00:00
|
|
|
CATEGORIES= networking languages
|
1994-10-19 15:30:07 +00:00
|
|
|
|
1995-05-03 19:23:39 +00:00
|
|
|
MAINTAINER= adam@veda.is
|
|
|
|
|
|
|
|
_PATCHFILES= 1.0.9-1.0.9.1.gz
|
1995-02-12 17:41:28 +00:00
|
|
|
.if defined(MASTER_SITE_OVERRIDE)
|
|
|
|
PATCHSITE:= ${MASTER_SITE_OVERRIDE}
|
|
|
|
.else
|
|
|
|
PATCHSITE= epsilon.me.chalmers.se:
|
1995-04-18 09:37:36 +00:00
|
|
|
NCFTPFLAGS=
|
1995-02-12 17:41:28 +00:00
|
|
|
.endif
|
1995-05-03 19:23:39 +00:00
|
|
|
.if ${_PATCHFILES} != ""
|
1994-11-23 12:27:39 +00:00
|
|
|
_PATCH_COOKIE= ${.CURDIR}/work/._patch_done
|
1994-08-30 12:55:07 +00:00
|
|
|
PATCHLIST= ${.CURDIR}/work/.patchlist
|
1995-05-03 19:23:39 +00:00
|
|
|
PATCHLEVEL= .`echo ${_PATCHFILES} | sed 's/^.*\.\(.*\)\.gz$$/\1/'`
|
|
|
|
.endif
|
1994-08-30 12:55:07 +00:00
|
|
|
WRKSRC= ${WRKDIR}/dgd/src
|
|
|
|
|
1994-09-14 01:42:47 +00:00
|
|
|
pre-fetch:
|
|
|
|
@if [ ! -d ${DISTDIR}/${DISTNAME} ]; then mkdir -p ${DISTDIR}/${DISTNAME}; fi
|
1994-09-14 02:27:28 +00:00
|
|
|
@if [ ! -f ${DISTDIR}/${DISTNAME}.tar.gz ]; then \
|
|
|
|
echo ">> Fetching distribution file from remote site..."; \
|
1995-02-12 17:41:28 +00:00
|
|
|
${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}${DISTNAME}.tar.gz \
|
1994-09-14 02:27:28 +00:00
|
|
|
&& mv ${DISTNAME}.tar.gz ${DISTDIR}; \
|
1994-09-14 01:42:47 +00:00
|
|
|
fi
|
1995-02-12 17:41:28 +00:00
|
|
|
.if defined(MASTER_SITE_OVERRIDE)
|
1995-05-03 19:23:39 +00:00
|
|
|
@for file in ${_PATCHFILES}; do \
|
1994-09-14 01:42:47 +00:00
|
|
|
if [ ! -f ${DISTDIR}/${DISTNAME}/$$file ]; then \
|
1994-09-14 02:27:28 +00:00
|
|
|
echo ">> Fetching patch $$file from remote site..."; \
|
1995-02-12 17:41:28 +00:00
|
|
|
${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}${DISTNAME}/$$file \
|
|
|
|
&& mv $$file ${DISTDIR}/${DISTNAME}; \
|
|
|
|
fi \
|
|
|
|
done
|
|
|
|
.else
|
1995-05-03 19:23:39 +00:00
|
|
|
@for file in ${_PATCHFILES}; do \
|
1995-02-12 17:41:28 +00:00
|
|
|
if [ ! -f ${DISTDIR}/${DISTNAME}/$$file ]; then \
|
|
|
|
echo ">> Fetching patch $$file from remote site..."; \
|
|
|
|
${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}patches/$$file \
|
1994-09-14 02:27:28 +00:00
|
|
|
&& mv patches/$$file ${DISTDIR}/${DISTNAME}; \
|
1994-09-14 01:42:47 +00:00
|
|
|
fi \
|
|
|
|
done
|
1995-02-12 17:41:28 +00:00
|
|
|
.endif
|
1994-09-14 01:42:47 +00:00
|
|
|
|
1994-09-14 02:27:28 +00:00
|
|
|
# Need to determine whether all author-supplied patches are correctly applied
|
1994-08-30 12:55:07 +00:00
|
|
|
### not yet implemented
|
|
|
|
|
1995-05-03 19:23:39 +00:00
|
|
|
.if ${_PATCHFILES} != ""
|
1995-04-22 12:30:11 +00:00
|
|
|
pre-patch: ${_PATCH_COOKIE}
|
1994-08-30 12:55:07 +00:00
|
|
|
@find -X ${WRKDIR}/dgd -name '*.orig' -print | xargs rm -f
|
|
|
|
|
1995-05-03 19:23:39 +00:00
|
|
|
${_PATCH_COOKIE}:
|
|
|
|
@echo "===> Updating to ${DISTNAME}${PATCHLEVEL}"
|
1994-09-14 01:42:47 +00:00
|
|
|
@cd ${DISTDIR}/${DISTNAME}; \
|
1995-05-03 19:23:39 +00:00
|
|
|
gzcat ${_PATCHFILES} | patch -d ${WRKDIR} --quiet -E -p0
|
|
|
|
@touch -f ${_PATCH_COOKIE}
|
|
|
|
.endif
|
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
|
|
|
@chown -R mud.mud ${WRKDIR}/dgd
|
|
|
|
@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:
|
|
|
|
@${MAKE} ${.MAKEFLAGS} 'PKG_CMD= WRKDIR=${WRKDIR} ${PKG_CMD}' \
|
|
|
|
PKGNAME=${DISTNAME}${PATCHLEVEL} NO_INSTALL= DO_PACKAGE= package
|
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>
|