pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/aview Replace use of FILES_SUBST_SED with SUBST.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9b557041f1be
branches:  trunk
changeset: 506564:9b557041f1be
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 19 01:40:55 2006 +0000

description:
Replace use of FILES_SUBST_SED with SUBST.

diffstat:

 graphics/aview/Makefile |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (32 lines):

diff -r bb76afa8de23 -r 9b557041f1be graphics/aview/Makefile
--- a/graphics/aview/Makefile   Thu Jan 19 01:36:25 2006 +0000
+++ b/graphics/aview/Makefile   Thu Jan 19 01:40:55 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2005/12/29 06:21:42 jlam Exp $
+# $NetBSD: Makefile,v 1.15 2006/01/19 01:40:55 joerg Exp $
 #
 
 DISTNAME=      aview-1.3.0rc1
@@ -21,16 +21,16 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+SUBST_CLASSES+=                programs
+SUBST_FILES.programs=  Makefile.in
+SUBST_STAGE.programs=  post-patch
+
 .if (${MACHINE_ARCH} == "i386")
-FILES_SUBST+= BIN_PROGRAMS="aview aaflip"
+SUBST_SED.programs+=   -e 's,@BIN_PROGRAMS@,aview aaflip,g'
 .else
-FILES_SUBST+= BIN_PROGRAMS="aview"
+SUBST_SED.programs+=   -e 's,@BIN_PROGRAMS@,aview,g'
 .endif
 
-pre-configure:
-       @${SED} ${FILES_SUBST_SED} ${WRKSRC}/Makefile.in > ${WRKDIR}/Makefile.in
-       @${MV} ${WRKDIR}/Makefile.in ${WRKSRC}/
-
 post-install:
        @${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/aview/



Home | Main Index | Thread Index | Old Index