summaryrefslogtreecommitdiff
path: root/math/dfftpack
diff options
context:
space:
mode:
authorasau <asau>2009-12-12 21:58:18 +0000
committerasau <asau>2009-12-12 21:58:18 +0000
commit826ac6490597d4371d214a0d72b78b4489069054 (patch)
tree29e39572745a02c964a834a2812cc321b29ae90f /math/dfftpack
parent617f53cde40b2aaab17467ed5a152be87d73efca (diff)
downloadpkgsrc-826ac6490597d4371d214a0d72b78b4489069054.tar.gz
Support staged installation.
Diffstat (limited to 'math/dfftpack')
-rw-r--r--math/dfftpack/Makefile7
-rw-r--r--math/dfftpack/files/Makefile2
2 files changed, 5 insertions, 4 deletions
diff --git a/math/dfftpack/Makefile b/math/dfftpack/Makefile
index 3e1d3bc91e5..05ebae387ea 100644
--- a/math/dfftpack/Makefile
+++ b/math/dfftpack/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2009/12/03 13:06:54 asau Exp $
+# $NetBSD: Makefile,v 1.15 2009/12/12 22:14:34 asau Exp $
DISTNAME= dfftpack-20001209
PKGREVISION= 2
@@ -12,6 +12,7 @@ NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
USE_LANGUAGES= fortran
WRKSRC= ${WRKDIR}/dfftpack
+PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= lib share/doc/dfftpack share/examples/dfftpack
post-extract:
@@ -19,7 +20,7 @@ post-extract:
post-install:
@for f in README doc doc.double ; do \
- ${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/dfftpack ; done
- ${INSTALL_DATA} ${WRKSRC}/test.f ${PREFIX}/share/examples/dfftpack
+ ${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/share/doc/dfftpack ; done
+ ${INSTALL_DATA} ${WRKSRC}/test.f ${DESTDIR}${PREFIX}/share/examples/dfftpack
.include "../../mk/bsd.pkg.mk"
diff --git a/math/dfftpack/files/Makefile b/math/dfftpack/files/Makefile
index 849b4f5a253..19e2c873d2b 100644
--- a/math/dfftpack/files/Makefile
+++ b/math/dfftpack/files/Makefile
@@ -17,7 +17,7 @@ lib$(LIB).a: $(OBJS)
$(RANLIB) $@
install: lib$(LIB).a
- $(BSD_INSTALL_DATA) $? $(LIBDIR)
+ $(BSD_INSTALL_DATA) $? $(DESTDIR)$(LIBDIR)
clean:
rm -f *.o lib$(LIB).a