summaryrefslogtreecommitdiff
path: root/editors/uemacs
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2012-05-10 20:59:41 +0000
committerdholland <dholland@pkgsrc.org>2012-05-10 20:59:41 +0000
commit1956029e2305e7178a2feb42742c39aa06f06a1b (patch)
tree0da841437199616be654e0d30500c33f92b2169f /editors/uemacs
parenta95c230c05be8b4a8a551036e155b3702b55a6a0 (diff)
downloadpkgsrc-1956029e2305e7178a2feb42742c39aa06f06a1b.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/Makefile13
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"