summaryrefslogtreecommitdiff
path: root/graphics/xpaint/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-04-24 21:54:11 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-04-24 21:54:11 +0000
commit5d2689f5417b05d2dd41173c176303f61e9501a7 (patch)
treed49e00dc6c8506bc0649a41a8a51cd33b8f6b8a7 /graphics/xpaint/Makefile
parentd403161edaec06dff5df4bc599b1cd5c83769178 (diff)
downloadpkgsrc-5d2689f5417b05d2dd41173c176303f61e9501a7.tar.gz
bl3ify, use subst.mk instead of using sed/mv.
Diffstat (limited to 'graphics/xpaint/Makefile')
-rw-r--r--graphics/xpaint/Makefile27
1 files changed, 13 insertions, 14 deletions
diff --git a/graphics/xpaint/Makefile b/graphics/xpaint/Makefile
index dc1234a8038..ec232ca5a5e 100644
--- a/graphics/xpaint/Makefile
+++ b/graphics/xpaint/Makefile
@@ -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 @@ MAINTAINER= hubertf@NetBSD.org
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"