From d32c16c5969502ceaab8a3e37359a54924df0e28 Mon Sep 17 00:00:00 2001 From: dholland Date: Thu, 10 May 2012 20:59:41 +0000 Subject: Use SUBST to insert PREFIX instead of a handrolled sed, and be (much) less indiscriminate about it. --- editors/uemacs/Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'editors/uemacs') 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" -- cgit v1.2.3