pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/odepack Support staged installation.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6da2dda201dd
branches:  trunk
changeset: 568410:6da2dda201dd
user:      asau <asau%pkgsrc.org@localhost>
date:      Sat Dec 12 20:11:24 2009 +0000

description:
Support staged installation.

diffstat:

 math/odepack/Makefile       |  8 +++++---
 math/odepack/files/Makefile |  4 ++--
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r ac1ad2ddc31f -r 6da2dda201dd math/odepack/Makefile
--- a/math/odepack/Makefile     Sat Dec 12 19:43:41 2009 +0000
+++ b/math/odepack/Makefile     Sat Dec 12 20:11:24 2009 +0000
@@ -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 @@
 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 -r ac1ad2ddc31f -r 6da2dda201dd math/odepack/files/Makefile
--- a/math/odepack/files/Makefile       Sat Dec 12 19:43:41 2009 +0000
+++ b/math/odepack/files/Makefile       Sat Dec 12 20:11:24 2009 +0000
@@ -1,6 +1,6 @@
 LIB    = odepack
 
-LIBDIR = ${PREFIX}/lib
+LIBDIR = $(PREFIX)/lib
 
 all:   lib$(LIB).a
 
@@ -18,7 +18,7 @@
        $(RANLIB) $@
 
 install:       lib$(LIB).a
-       $(BSD_INSTALL_DATA) $? $(LIBDIR)
+       $(BSD_INSTALL_DATA) $? $(DESTDIR)$(LIBDIR)
 
 clean:
        rm -f *.o lib$(LIB).a



Home | Main Index | Thread Index | Old Index