summaryrefslogtreecommitdiff
path: root/cad/qcad
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 01:50:26 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 01:50:26 +0000
commit2e614fcea0b247bbc54200c2ed35e943cca37125 (patch)
tree594c159848c0679d80316a52bfc121f8d7c1bf18 /cad/qcad
parentf61cf6906a47ea29db5a98128c49cd6db98ee0e9 (diff)
downloadpkgsrc-2e614fcea0b247bbc54200c2ed35e943cca37125.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'cad/qcad')
-rw-r--r--cad/qcad/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/cad/qcad/Makefile b/cad/qcad/Makefile
index a8013d22f76..84adca88dec 100644
--- a/cad/qcad/Makefile
+++ b/cad/qcad/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2007/02/15 14:10:52 rillig Exp $
+# $NetBSD: Makefile,v 1.46 2008/03/03 01:50:27 jlam Exp $
#
DISTNAME= qcad-2.0.5.0-1-community.src
@@ -7,6 +7,8 @@ DISTNAME= qcad-2.0.5.0-1-community.src
# thing after the hyphen, which always seems to be 1. Can I use four digits?
PKGNAME= qcad-2.0.5.0
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "./Makefile.common"
COMMENT= 2D CAD system
@@ -54,10 +56,10 @@ pre-build:
done
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/qcad/qcad ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/qcad
+ ${INSTALL_PROGRAM} ${WRKSRC}/qcad/qcad ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/qcad
cd ${WRKSRC}/qcad && umask 022 && \
- pax -rwpm data fonts patterns qm ${PREFIX}/share/qcad
+ pax -rwpm data fonts patterns qm ${DESTDIR}${PREFIX}/share/qcad
.include "../../x11/qt3-libs/buildlink3.mk"
BUILDLINK_API_DEPENDS.qt3-libs+= qt3-libs>=3.3.4