diff options
author | dholland <dholland> | 2012-05-10 20:59:41 +0000 |
---|---|---|
committer | dholland <dholland> | 2012-05-10 20:59:41 +0000 |
commit | d32c16c5969502ceaab8a3e37359a54924df0e28 (patch) | |
tree | 0da841437199616be654e0d30500c33f92b2169f /editors/uemacs | |
parent | 941c3ffdb94ec01a803883963b2a8d2cc44fac11 (diff) | |
download | pkgsrc-d32c16c5969502ceaab8a3e37359a54924df0e28.tar.gz |
Use SUBST to insert PREFIX instead of a handrolled sed, and be (much) less
indiscriminate about it.
Diffstat (limited to 'editors/uemacs')
-rw-r--r-- | editors/uemacs/Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/editors/uemacs/Makefile b/editors/uemacs/Makefile index a1670200fe8..5d421da175a 100644 --- a/editors/uemacs/Makefile +++ b/editors/uemacs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2012/05/10 20:53:30 dholland Exp $ +# $NetBSD: Makefile,v 1.14 2012/05/10 20:59:41 dholland Exp $ DISTNAME= ue400dev PKGNAME= uemacs-4.0 @@ -17,13 +17,12 @@ INSTALLATION_DIRS= bin share/uemacs WRKSRC= ${WRKDIR} EXTRACT_OPTS_ZIP= -Laqo +SUBST_CLASSES+= paths +SUBST_STAGE.paths= pre-configure +SUBST_FILES.paths= src/bind.c h/epath.h +SUBST_SED.paths= -e s,%%PREFIX%%,${PREFIX},g + post-extract: ${CP} -r ${WRKSRC}/freebsd ${WRKSRC}/netbsd -post-patch: - for FILE in ${WRKSRC}/src/*.c ${WRKSRC}/h/*.h; do \ - ${MV} $${FILE} $${FILE}.old; \ - ${SED} -e "s|%%PREFIX%%|${PREFIX}|g" <$${FILE}.old >$${FILE}; \ - done - .include "../../mk/bsd.pkg.mk" |