From 47e2c2a025d201e8bde9c3947041e15077c46919 Mon Sep 17 00:00:00 2001 From: rillig Date: Mon, 23 May 2005 06:56:53 +0000 Subject: Replaced explicit sed(1) replacement with the subst.mk framework. --- archivers/freeze/Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'archivers/freeze') diff --git a/archivers/freeze/Makefile b/archivers/freeze/Makefile index 46ee6a8c952..0e809f6f3d9 100644 --- a/archivers/freeze/Makefile +++ b/archivers/freeze/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2005/04/11 21:44:48 tv Exp $ +# $NetBSD: Makefile,v 1.18 2005/05/23 06:56:53 rillig Exp $ DISTNAME= freeze-2.5 PKGREVISION= 2 @@ -18,11 +18,9 @@ CFLAGS+= -DCOMPAT=1 INSTALLATION_DIRS= bin man/man1 -post-patch: - cd ${WRKSRC}; for file in *.1; do \ - ${SED} -e "s|@PREFIX@|${PREFIX}|g" \ - $${file} > $${file}.fixed; \ - ${MV} -f $${file}.fixed $${file}; \ - done +SUBST_CLASSES+= freeze +SUBST_STAGE.freeze= post-patch +SUBST_FILES.freeze= *.1 +SUBST_SED.freeze= -e 's|@PREFIX@|${PREFIX}|g' .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3