summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2009-04-19 07:11:26 +0000
committerrh <rh@pkgsrc.org>2009-04-19 07:11:26 +0000
commitf83096f08ff1ab64f3f8a6b88c1276fef0e1dec9 (patch)
tree1fcba1dcf07ffaee6ea3e0475410c618c606a011 /textproc
parent1c1fc979e997abb27199fb4c065fa73d3367a1e4 (diff)
downloadpkgsrc-f83096f08ff1ab64f3f8a6b88c1276fef0e1dec9.tar.gz
Add DESTDIR support. Bump PKGREVISION.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/expatobjc/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/textproc/expatobjc/Makefile b/textproc/expatobjc/Makefile
index 33f71688261..f6188f292b7 100644
--- a/textproc/expatobjc/Makefile
+++ b/textproc/expatobjc/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2006/07/29 07:52:21 minskim Exp $
+# $NetBSD: Makefile,v 1.13 2009/04/19 07:11:26 rh Exp $
#
DISTNAME= expatobjc-1.0
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=expatobjc/}
@@ -10,12 +10,25 @@ MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://expatobjc.sourceforge.net/
COMMENT= Objective-C Wrapper for Expat
+LICENSE= expatobjc-license
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LANGUAGES= objc
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
+AUTO_MKDIRS= yes
CONFIGURE_ENV+= objc_works=yes
+MAKE_ENV+= INSTALL_DATA=${INSTALL_DATA:Q}
+
+SUBST_CLASSES+= expatobjc
+SUBST_STAGE.expatobjc= pre-configure
+SUBST_FILES.expatobjc= Makefile.in
+SUBST_SED.expatobjc+= -e 's|\$$(INSTALL) -c -m 644|\$${INSTALL_DATA}|'
+SUBST_SED.expatobjc+= -e 's|\$$(libdir)|\$${DESTDIR}\$${PREFIX}/lib|'
+SUBST_SED.expatobjc+= -e 's|\$$(incdir)|\$${DESTDIR}\$${PREFIX}/include|'
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"