summaryrefslogtreecommitdiff
path: root/math/odepack
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2009-12-12 20:11:24 +0000
committerasau <asau@pkgsrc.org>2009-12-12 20:11:24 +0000
commit0cee6884cc6ead8ce37bf938f3f3ce69e183b31e (patch)
tree26b8d7ea7188f92612b358bd65de594620c70c1d /math/odepack
parent72aed07362580b9a4bc28df18a4504eab9a3f48f (diff)
downloadpkgsrc-0cee6884cc6ead8ce37bf938f3f3ce69e183b31e.tar.gz
Support staged installation.
Diffstat (limited to 'math/odepack')
-rw-r--r--math/odepack/Makefile8
-rw-r--r--math/odepack/files/Makefile4
2 files changed, 7 insertions, 5 deletions
diff --git a/math/odepack/Makefile b/math/odepack/Makefile
index aced4d16eaf..943b5b2f49f 100644
--- a/math/odepack/Makefile
+++ b/math/odepack/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2009/12/03 13:06:55 asau Exp $
+# $NetBSD: Makefile,v 1.18 2009/12/12 20:11:24 asau Exp $
DISTNAME= odepack-20001130
PKGREVISION= 2
@@ -13,12 +13,14 @@ DEPENDS+= linpack>=20010427:../../math/linpack
NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
USE_LANGUAGES= fortran
WRKSRC= ${WRKDIR}/odepack
+INSTALLATION_DIRS= lib
+PKG_DESTDIR_SUPPORT= user-destdir
pre-build:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/odepack
- cd ${WRKSRC} && ${INSTALL_DATA} doc readme ${PREFIX}/share/doc/odepack
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/odepack
+ cd ${WRKSRC} && ${INSTALL_DATA} doc readme ${DESTDIR}${PREFIX}/share/doc/odepack
.include "../../mk/bsd.pkg.mk"
diff --git a/math/odepack/files/Makefile b/math/odepack/files/Makefile
index af473e0ed50..05e641ffd74 100644
--- a/math/odepack/files/Makefile
+++ b/math/odepack/files/Makefile
@@ -1,6 +1,6 @@
LIB = odepack
-LIBDIR = ${PREFIX}/lib
+LIBDIR = $(PREFIX)/lib
all: lib$(LIB).a
@@ -18,7 +18,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