From 960171aa995ba9a28a5c49a383750d43281cbc4f Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 3 Mar 2008 01:50:26 +0000 Subject: Mechanical changes to add full DESTDIR support to packages that install their files via a custom do-install target. --- cad/qcad/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cad/qcad') 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 -- cgit v1.2.3