diff options
author | asami <asami@FreeBSD.org> | 1998-10-06 13:18:00 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1998-10-06 13:18:00 +0800 |
commit | 5a25a2c136254a6291a763456af144e81769a95e (patch) | |
tree | 1809351c80df5b7ca30a2fcf7c23d57fd51ddc2b /emulators | |
parent | f7a2f9c29115544149306389a87e522409246370 (diff) | |
download | freebsd-ports-gnome-5a25a2c136254a6291a763456af144e81769a95e.tar.gz freebsd-ports-gnome-5a25a2c136254a6291a763456af144e81769a95e.tar.zst freebsd-ports-gnome-5a25a2c136254a6291a763456af144e81769a95e.zip |
Do not write anything to ${PATCHDIR} by doing the awk trick to
the patched file (Makefile.common) in post-patch, instead of
the patch itself (${FILESDIR}/patch-aa.in) in pre-patch.
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/bsvc/Makefile | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/emulators/bsvc/Makefile b/emulators/bsvc/Makefile index 9055a71b9472..7f7ba0917ef7 100644 --- a/emulators/bsvc/Makefile +++ b/emulators/bsvc/Makefile @@ -3,7 +3,7 @@ # Date created: 03-Mar-1997 # Whom: tenser # -# $Id: Makefile,v 1.6 1998/04/05 07:30:56 asami Exp $ +# $Id: Makefile,v 1.7 1998/08/07 23:56:18 asami Exp $ # DISTNAME= bsvc-2.0 @@ -23,28 +23,28 @@ WISH= wish4.1 pre-patch: @awk ' \ { \ - if (/PROJECT_BASE/ && /AWK_CHANGE_ME/) { \ - print "! PROJECT_BASE='"${WRKDIR}/${DISTNAME}"'" \ - } else if (/INSTALL_DIR/ && /AWK_CHANGE_ME/) { \ - print "! INSTALL_DIR='"${PREFIX}/bin"'" \ - } else if (/LIB_DIR/ && /AWK_CHANGE_ME/) { \ - print "! LIB_DIR ='"${PREFIX}/lib/bsvc"'" \ - } else if (/WISH/ && /AWK_CHANGE_ME/) { \ - print "! WISH='"${WISH}"'" \ + if (/^## Makefile/) { \ + print "## Makefile.FreeBSD - System Dependent Makefile for FreeBSD" \ } else { \ print \ } \ - }' < ${FILESDIR}/patch-aa.in > ${PATCHDIR}/patch-aa + }' < ${WRKSRC}/Makefile.ULTRIX > ${WRKSRC}/Makefile + +post-patch: @awk ' \ { \ - if (/^## Makefile/) { \ - print "## Makefile.FreeBSD - System Dependent Makefile for FreeBSD" \ + if (/PROJECT_BASE/ && /AWK_CHANGE_ME/) { \ + print "PROJECT_BASE='"${WRKDIR}/${DISTNAME}"'" \ + } else if (/INSTALL_DIR/ && /AWK_CHANGE_ME/) { \ + print "INSTALL_DIR='"${PREFIX}/bin"'" \ + } else if (/LIB_DIR/ && /AWK_CHANGE_ME/) { \ + print "LIB_DIR ='"${PREFIX}/lib/bsvc"'" \ + } else if (/WISH/ && /AWK_CHANGE_ME/) { \ + print "WISH='"${WISH}"'" \ } else { \ print \ } \ - }' < ${WRKSRC}/Makefile.ULTRIX > ${WRKSRC}/Makefile - -pre-clean: - ${RM} -f ${PATCHDIR}/patch-aa + }' < ${WRKSRC}/Makefile.common > ${WRKSRC}/Makefile.common.tmp + @${MV} -f ${WRKSRC}/Makefile.common.tmp ${WRKSRC}/Makefile.common .include <bsd.port.mk> |