pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/meschach This one uses BSD Make scripts.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a08bb9eb59b0
branches:  trunk
changeset: 568353:a08bb9eb59b0
user:      asau <asau%pkgsrc.org@localhost>
date:      Fri Dec 11 17:09:51 2009 +0000

description:
This one uses BSD Make scripts.
Support staged installation.

diffstat:

 math/meschach/Makefile |  17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diffs (45 lines):

diff -r 357aa979afba -r a08bb9eb59b0 math/meschach/Makefile
--- a/math/meschach/Makefile    Fri Dec 11 16:57:12 2009 +0000
+++ b/math/meschach/Makefile    Fri Dec 11 17:09:51 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2008/04/07 17:33:36 joerg Exp $
+# $NetBSD: Makefile,v 1.16 2009/12/11 17:09:51 asau Exp $
 
 DISTNAME=              mesch12b
 PKGNAME=               meschach-1.2b
@@ -9,10 +9,13 @@
 HOMEPAGE=              http://www.math.uiowa.edu/~dstewart/meschach/
 COMMENT=               Library of C Routines for Matrix Computations
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                        ${WRKDIR}
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --with-all
 MAKE_FILE=             makefile
+USE_BSD_MAKEFILE=      yes
 
 INSTALLATION_DIRS=     include/meschach lib share/meschach/tests
 
@@ -26,15 +29,15 @@
 post-install:
        cd ${WRKSRC} && ${INSTALL_DATA} err.h machine.h matlab.h        \
                matrix.h meminfo.h sparse.h zmatrix.h iter.h matrix2.h  \
-               oldnames.h sparse2.h zmatrix2.h ${PREFIX}/include/meschach/
+               oldnames.h sparse2.h zmatrix2.h ${DESTDIR}${PREFIX}/include/meschach/
        cd ${WRKSRC} && ${INSTALL_DATA} torture.c sptort.c ztorture.c   \
                memtort.c itertort.c mfuntort.c iotort.c                \
-               ${PREFIX}/share/meschach/tests/
-       ${INSTALL_DATA} ${WRKSRC}/Makefile ${PREFIX}/share/meschach/tests
+               ${DESTDIR}${PREFIX}/share/meschach/tests/
+       ${INSTALL_DATA} ${WRKSRC}/Makefile ${DESTDIR}${PREFIX}/share/meschach/tests
        cd ${WRKSRC} && ${INSTALL_DATA} README ./DOC/*                  \
-               ${PREFIX}/share/meschach/
-       ${INSTALL_DATA} ${WRKSRC}/copyright ${PREFIX}/share/meschach
+               ${DESTDIR}${PREFIX}/share/meschach/
+       ${INSTALL_DATA} ${WRKSRC}/copyright ${DESTDIR}${PREFIX}/share/meschach
        cd ${WRKSRC} && ${INSTALL_DATA} tutadv.c tutorial.c             \
-               ${PREFIX}/share/meschach/
+               ${DESTDIR}${PREFIX}/share/meschach/
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index