pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/xpaint bl3ify, use subst.mk instead of using ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a9defe8518c8
branches:  trunk
changeset: 473813:a9defe8518c8
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Sat Apr 24 21:54:11 2004 +0000

description:
bl3ify, use subst.mk instead of using sed/mv.

diffstat:

 graphics/xpaint/Makefile |  27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)

diffs (45 lines):

diff -r cd9a2e0f9474 -r a9defe8518c8 graphics/xpaint/Makefile
--- a/graphics/xpaint/Makefile  Sat Apr 24 21:34:46 2004 +0000
+++ b/graphics/xpaint/Makefile  Sat Apr 24 21:54:11 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2004/01/03 18:49:45 reed Exp $
+# $NetBSD: Makefile,v 1.39 2004/04/24 21:54:11 xtraeme Exp $
 
 DISTNAME=       xpaint-2.7.0
 PKGREVISION=   1
@@ -10,23 +10,22 @@
 HOMEPAGE=      http://sf-xpaint.sourceforge.net/
 COMMENT=       Simple paint program
 
-USE_BUILDLINK2=        YES
+USE_BUILDLINK3=        YES
+USE_GNU_TOOLS+=        make
 USE_IMAKE=      YES
-USE_RMAN=      YES
-USE_X11BASE=   YES
 
 ALL_TARGET=    xaw95static
 MAKE_ENV+=     XMKMF="${XMKMF}"
 
-pre-configure:
-       ${MV} -f ${WRKSRC}/Local.config ${WRKSRC}/Local.config.save
-       ${SED} -e 's|\$${LOCALBASE}|${LOCALBASE}|g' \
-               -e 's|\$${X11BASE}|${X11BASE}|g' \
-               -e 's|\$${XPMDIR}|${BUILDLINK_PREFIX.xpm}|g' \
-               ${WRKSRC}/Local.config.save > ${WRKSRC}/Local.config
+SUBST_CLASSES=     foo
+SUBST_STAGE.foo=    post-patch
+SUBST_FILES.foo=    Local.config
+SUBST_SED.foo=     -e "s|\$${LOCALBASE}|${LOCALBASE}|g" \
+                   -e "s|\$${X11BASE}|${X11BASE}|g" \
+                   -e "s|\$${XPMDIR}|${BUILDLINK_PREFIX.xpm}|g"
 
-.include "../../graphics/jpeg/buildlink2.mk"
-.include "../../graphics/png/buildlink2.mk"
-.include "../../graphics/tiff/buildlink2.mk"
-.include "../../graphics/xpm/buildlink2.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../graphics/xpm/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index