Add DESTDIR support. Bump PKGREVISION.

This commit is contained in:
rh 2009-04-19 07:11:26 +00:00
parent 2949b5730d
commit 5c27cd9ec5

View file

@ -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"