summaryrefslogtreecommitdiff
path: root/cad/atlc
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-20 01:09:05 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-20 01:09:05 +0000
commit3b0d97b0de8516db29699676c860489da3f7f0e1 (patch)
treebb388f6b2532587595653e67cce25229ed050cb8 /cad/atlc
parent10abca39942a8f34d088f39ccc073fee44271274 (diff)
downloadpkgsrc-3b0d97b0de8516db29699676c860489da3f7f0e1.tar.gz
Add DESTDIR support.
Diffstat (limited to 'cad/atlc')
-rw-r--r--cad/atlc/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/cad/atlc/Makefile b/cad/atlc/Makefile
index c6052f57bef..d1201d3ac58 100644
--- a/cad/atlc/Makefile
+++ b/cad/atlc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2005/06/15 02:21:03 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.12 2008/06/20 01:09:08 joerg Exp $
#
DISTNAME= atlc-4.6.0
@@ -10,6 +10,8 @@ MAINTAINER= dmcmahill@NetBSD.org
HOMEPAGE= http://atlc.sourceforge.net/
COMMENT= Calculates the impedance of arbitrary cross section transmission lines
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= YES
# note: the check target builds some of the
# example files which get installed.
@@ -17,9 +19,10 @@ BUILD_TARGET= all check
TEST_DIRS= ${WRKSRC}
TEST_TARGET= check
+INSTALLATION_DIRS= share/examples/atlc
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/atlc
- ${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/atlc
- ${RM} -f ${PREFIX}/share/examples/atlc/Makefile
+ ${INSTALL_DATA} ${WRKSRC}/examples/* ${DESTDIR}${PREFIX}/share/examples/atlc
+ ${RM} -f ${DESTDIR}${PREFIX}/share/examples/atlc/Makefile
.include "../../mk/bsd.pkg.mk"