summaryrefslogtreecommitdiff
path: root/cad/qcad
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 01:50:26 +0000
committerjlam <jlam>2008-03-03 01:50:26 +0000
commit02dbeceea629a34bb7b2c5f0842539bed5e4e882 (patch)
tree594c159848c0679d80316a52bfc121f8d7c1bf18 /cad/qcad
parentd41792ee5188c43750d96a79f59b13facf21daab (diff)
downloadpkgsrc-02dbeceea629a34bb7b2c5f0842539bed5e4e882.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