summaryrefslogtreecommitdiff
path: root/devel/newt/Makefile
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/newt/Makefile
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/newt/Makefile')
-rw-r--r--devel/newt/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/devel/newt/Makefile b/devel/newt/Makefile
index 4e402fe645a..c40ebec6356 100644
--- a/devel/newt/Makefile
+++ b/devel/newt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2006/02/05 23:08:49 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2008/03/03 17:45:36 jlam Exp $
DISTNAME= ${PKGNAME_NOREV}-5.src.rpm
PKGNAME= newt-0.51.6
@@ -13,6 +13,8 @@ COMMENT= Windowing toolkit based on libslang
BUILD_DEPENDS+= rpm2pkg>=2.0:../../pkgtools/rpm2pkg
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake gzcat tar
USE_LIBTOOL= yes
@@ -28,9 +30,9 @@ do-extract:
do-install:
cd ${WRKSRC}; \
- ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} libnewt.la ${PREFIX}/lib;\
- ${INSTALL_DATA} newt.h ${PREFIX}/include; \
- ${LIBTOOL} --mode=install ${INSTALL} whiptail ${PREFIX}/bin
+ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} libnewt.la ${DESTDIR}${PREFIX}/lib;\
+ ${INSTALL_DATA} newt.h ${DESTDIR}${PREFIX}/include; \
+ ${LIBTOOL} --mode=install ${INSTALL} whiptail ${DESTDIR}${PREFIX}/bin
.include "../../devel/libslang/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"