From ac0e888e7e78737f84120d4dde48afedfb117d33 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 5 Jan 2006 20:26:48 +0000 Subject: Use the SUBST framework on the right files. FAQ now has the correct entries. Bump revision due to this. --- x11/xfstt/Makefile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'x11') diff --git a/x11/xfstt/Makefile b/x11/xfstt/Makefile index f6911b8641d..def928028e7 100644 --- a/x11/xfstt/Makefile +++ b/x11/xfstt/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.24 2005/12/29 06:22:26 jlam Exp $ +# $NetBSD: Makefile,v 1.25 2006/01/05 20:26:48 joerg Exp $ # DISTNAME= xfstt-1.6 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= x11 net fonts MASTER_SITES= http://download.berlios.de/xfstt/ @@ -24,15 +24,11 @@ INSTALLATION_DIRS= bin man/man1 .include "../../mk/x11.buildlink3.mk" -post-patch: - @( \ - cd ${WRKSRC} ; \ - for f in src/perftest.cc src/xfstt.cc doc/xfstt.1x; \ - do \ - ${MV} $$f $$f.orig ; \ - ${SED} ${FILES_SUBST_SED} $$f.orig > $$f ; \ - done ; \ - ) +SUBST_CLASSES+= paths +SUBST_FILES.paths= doc/FAQ doc/xfstt.1x +SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},g' +SUBST_SED.paths+= -e 's,@LOCALBASE@,${LOCALBASE},g' +SUBST_STAGE.paths= post-patch do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/xfstt ${PREFIX}/bin -- cgit v1.2.3