summaryrefslogtreecommitdiff
path: root/devel/hptools
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-29 17:59:06 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-29 17:59:06 +0000
commit2a6536c2b2f600639621c6820f1f7695955f7656 (patch)
treea94a5d5f0d886d6e7db73ee9a947f00027640430 /devel/hptools
parent0f4090d7436c5930e848275389d74ace3ad507a0 (diff)
downloadpkgsrc-2a6536c2b2f600639621c6820f1f7695955f7656.tar.gz
DESTDIR support
Diffstat (limited to 'devel/hptools')
-rw-r--r--devel/hptools/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/devel/hptools/Makefile b/devel/hptools/Makefile
index a85747f6276..9a2a36dda2d 100644
--- a/devel/hptools/Makefile
+++ b/devel/hptools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2009/05/19 08:59:09 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2010/01/29 18:08:25 joerg Exp $
#
DISTNAME= hptools-src-3.0.8
@@ -11,6 +11,8 @@ HOMEPAGE= http://www.hpcalc.org/hp48/pc/programming/
COMMENT= SDK for Hewlett-Packard HP-48G/49G/39G/40G calculators
LICENSE= hptools-license
+PKG_DESTDIR_SUPPORT= user-destdir
+
RESTRICTED= Redistribution of unmodified source only; resale prohibited.
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
@@ -22,11 +24,14 @@ CONFIGURE_DIRS= support
BUILD_DIRS= support
USE_TOOLS+= pax
+INSTALLATION_DIRS+= bin
+INSTALL_MAKE_FLAGS+= bindir=${DESTDIR}${PREFIX}/bin
+
post-build:
${CHMOD} ${SHAREMODE} ${WRKSRC}/doc/*
post-install:
cd ${WRKSRC} \
- && pax -rw -pam -s ',^doc,hptools,g' doc ${PREFIX}/share/doc
+ && pax -rw -pam -s ',^doc,hptools,g' doc ${DESTDIR}${PREFIX}/share/doc
.include "../../mk/bsd.pkg.mk"