summaryrefslogtreecommitdiff
path: root/devel/its4
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 17:45:33 +0000
committerjlam <jlam>2008-03-03 17:45:33 +0000
commit7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/its4
parente629efdae96bb93a089e74409a36149a86e10f81 (diff)
downloadpkgsrc-7a1142123798f48c48fc2d1fe38690a6b94d1df7.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/its4')
-rw-r--r--devel/its4/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/devel/its4/Makefile b/devel/its4/Makefile
index 5b209ed56f0..6230f248fe3 100644
--- a/devel/its4/Makefile
+++ b/devel/its4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2007/02/22 19:26:21 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2008/03/03 17:45:35 jlam Exp $
#
DISTNAME= its4-1.1.1
@@ -12,6 +12,8 @@ COMMENT= Static C/C++ code scanner for potential security problems
LICENSE= no-commercial-use
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/its4
HAS_CONFIGURE= YES
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
@@ -21,10 +23,11 @@ INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
USE_LANGUAGES= c++
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/its4 ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/docs/its4.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_DATA_DIR} ${PREFIX}/share/its4
+ ${INSTALL_PROGRAM} ${WRKSRC}/its4 ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/docs/its4.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/its4
cd ${WRKSRC} && ${INSTALL_DATA} LICENSE TODO vulns.i4d \
- ${PREFIX}/share/its4
+ ${DESTDIR}${PREFIX}/share/its4
.include "../../mk/bsd.pkg.mk"