summaryrefslogtreecommitdiff
path: root/cad/eagle/Makefile
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/eagle/Makefile
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/eagle/Makefile')
-rw-r--r--cad/eagle/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/cad/eagle/Makefile b/cad/eagle/Makefile
index d9d74c50a36..a7fea14648c 100644
--- a/cad/eagle/Makefile
+++ b/cad/eagle/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2007/07/29 05:18:36 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2008/03/03 01:50:27 jlam Exp $
#
DISTNAME= eagle-lin-eng-4.14
@@ -12,6 +12,8 @@ MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.cadsoft.de/
COMMENT= Easy to use printed circuit board editor
+PKG_DESTDIR_SUPPORT= user-destdir
+
RESTRICTED= Redistribution not permitted
LICENSE= fee-based-commercial-use
NO_SRC_ON_FTP= ${RESTRICTED}
@@ -29,8 +31,8 @@ do-configure:
${SED} -e "s:@@PREFIX@@:${PREFIX}:g" <${FILESDIR}/eagle >${WRKDIR}/eagle
do-install:
- ${INSTALL_PROGRAM_DIR} ${PREFIX}/eagle
- cd ${WRKSRC} && ${CP} -R ${WRKSRC}/* ${PREFIX}/eagle
- ${INSTALL_SCRIPT} ${WRKDIR}/eagle ${PREFIX}/bin
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/eagle
+ cd ${WRKSRC} && ${CP} -R ${WRKSRC}/* ${DESTDIR}${PREFIX}/eagle
+ ${INSTALL_SCRIPT} ${WRKDIR}/eagle ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"