1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/net/dgd/Makefile

73 lines
2.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: dgd
1995-04-15 05:42:12 +00:00
# Version required: 1.0.9
# Date created: 23 August 1994
# Whom: adam
#
1995-03-10 18:52:49 +00:00
DISTNAME= dgd-1.0.9
DISTFILES= ${DISTNAME}.tar.gz
# changed from PATCHFILES so it won't confuse bsd.port.mk
PATCH_FILES= 1.0.9-1.0.9.1.gz
.if defined(MASTER_SITE_OVERRIDE)
PATCHSITE:= ${MASTER_SITE_OVERRIDE}
.else
PATCHSITE= epsilon.me.chalmers.se:
1995-04-18 09:37:36 +00:00
NCFTPFLAGS=
.endif
_PATCH_COOKIE= ${.CURDIR}/work/._patch_done
PATCHLIST= ${.CURDIR}/work/.patchlist
PATCHLEVEL= `tail -1 ${PATCHLIST} | sed 's/^.*\.\(.*\)\.gz$$/\1/'`
WRKSRC= ${WRKDIR}/dgd/src
pre-fetch:
@if [ ! -d ${DISTDIR}/${DISTNAME} ]; then mkdir -p ${DISTDIR}/${DISTNAME}; fi
@if [ ! -f ${DISTDIR}/${DISTNAME}.tar.gz ]; then \
echo ">> Fetching distribution file from remote site..."; \
${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}${DISTNAME}.tar.gz \
&& mv ${DISTNAME}.tar.gz ${DISTDIR}; \
fi
.if defined(MASTER_SITE_OVERRIDE)
@for file in ${PATCH_FILES}; do \
if [ ! -f ${DISTDIR}/${DISTNAME}/$$file ]; then \
echo ">> Fetching patch $$file from remote site..."; \
${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}${DISTNAME}/$$file \
&& mv $$file ${DISTDIR}/${DISTNAME}; \
fi \
done
.else
@for file in ${PATCH_FILES}; do \
if [ ! -f ${DISTDIR}/${DISTNAME}/$$file ]; then \
echo ">> Fetching patch $$file from remote site..."; \
${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}patches/$$file \
&& mv patches/$$file ${DISTDIR}/${DISTNAME}; \
fi \
done
.endif
# Need to determine whether all author-supplied patches are correctly applied
### not yet implemented
pre-patch: extract ${_PATCH_COOKIE}
@find -X ${WRKDIR}/dgd -name '*.orig' -print | xargs rm -f
${PATCHLIST}:
@cd ${DISTDIR}/${DISTNAME}; \
ls *.[0-9].gz *.[0-9][0-9].gz \
2>/dev/null >${PATCHLIST}
${_PATCH_COOKIE}: ${PATCHLIST}
@if [ -s ${PATCHLIST} ]; then \
echo "===> Updating to ${DISTNAME}.${PATCHLEVEL}"; \
cd ${DISTDIR}/${DISTNAME}; \
gzcat `cat ${PATCHLIST}` | patch -d ${WRKDIR} --quiet -E -p0; \
fi
1994-11-24 03:07:55 +00:00
@touch -f ${_PATCH_COOKIE};
1995-04-17 07:59:05 +00:00
install: build
@chown -R mud.mud ${WRKDIR}/dgd
@tar -C ${WRKDIR} -cf - `grep '^dgd/' pkg/PLIST` \
| tar -C /usr/local -xpf -
.include <bsd.port.mk>