summaryrefslogtreecommitdiff
path: root/devel/cdk
diff options
context:
space:
mode:
authorjoerg <joerg>2008-06-20 01:09:05 +0000
committerjoerg <joerg>2008-06-20 01:09:05 +0000
commitd8368bbc25c90072a19b5e48f0fba26251b6877f (patch)
treebb388f6b2532587595653e67cce25229ed050cb8 /devel/cdk
parentf1b924fda77b6920565e56f54c9391b4dc68f8ca (diff)
downloadpkgsrc-d8368bbc25c90072a19b5e48f0fba26251b6877f.tar.gz
Add DESTDIR support.
Diffstat (limited to 'devel/cdk')
-rw-r--r--devel/cdk/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/devel/cdk/Makefile b/devel/cdk/Makefile
index b6522352260..3ee257ea3a4 100644
--- a/devel/cdk/Makefile
+++ b/devel/cdk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2008/01/19 09:16:19 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2008/06/20 01:09:12 joerg Exp $
#
DISTNAME= latestCDK
@@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.vexus.ca/products/CDK/
COMMENT= Curses Development Kit
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_NCURSES= # uses ncurses internals
USE_LIBTOOL= yes
@@ -20,13 +22,15 @@ USE_TOOLS+= autoconf213
BUILD_TARGET= default
+INSTALL_MAKE_FLAGS+= INSTALL_DIR=${DESTDIR}${PREFIX}
+INSTALLATION_DIRS= share/examples/cdk
+
pre-configure:
cd ${WRKSRC}; autoconf
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cdk
for file in ${WRKSRC}/examples/*.c ${WRKSRC}/examples/Makefile; do \
- ${INSTALL_DATA} $${file} ${PREFIX}/share/examples/cdk/; \
+ ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/share/examples/cdk/; \
done
.include "../../devel/ncurses/buildlink3.mk"