pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/mgl Switch to SUBST framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7327c6a1ea1d
branches:  trunk
changeset: 536191:7327c6a1ea1d
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed Dec 05 13:36:02 2007 +0000

description:
Switch to SUBST framework.

diffstat:

 graphics/mgl/Makefile |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r 19af366fe221 -r 7327c6a1ea1d graphics/mgl/Makefile
--- a/graphics/mgl/Makefile     Wed Dec 05 11:25:57 2007 +0000
+++ b/graphics/mgl/Makefile     Wed Dec 05 13:36:02 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2007/10/07 12:59:13 kano Exp $
+# $NetBSD: Makefile,v 1.28 2007/12/05 13:36:02 obache Exp $
 #
 
 DISTNAME=      mgl2-alpha-020
@@ -34,10 +34,10 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-pre-configure:
-       ${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${WRKSRC}/utils/mglcons.sh \
-               > ${WRKSRC}/utils/mglcons.sh.new
-       ${MV} ${WRKSRC}/utils/mglcons.sh.new ${WRKSRC}/utils/mglcons.sh
+SUBST_CLASSES+=                prefix
+SUBST_STAGE.prefix=    pre-configure
+SUBST_FILES.prefix=    utils/mglcons.sh
+SUBST_VARS.prefix=     PREFIX
 
 post-configure:
 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "sh3el"



Home | Main Index | Thread Index | Old Index