Merge from vendor branch TNF:
[pkgsrcv2.git] / math / superlu / Makefile
1 # $NetBSD: Makefile,v 1.16 2006/10/04 21:47:58 wiz Exp $
2
3 DISTNAME=               superlu_3.0
4 PKGNAME=                superlu-3.0.1
5 CATEGORIES=             math
6 MASTER_SITES=           http://crd.lbl.gov/~xiaoye/SuperLU/
7
8 MAINTAINER=             pkgsrc-users@NetBSD.org
9 HOMEPAGE=               http://crd.lbl.gov/~xiaoye/SuperLU/
10 COMMENT=                ANSI C routine library for the solution of sparse linear systems
11
12 DEPENDS+=               blas-[0-9]*:../../math/blas
13
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 BLAS_PREFIX_DEFAULT=    ${LOCALBASE}
17 EVAL_PREFIX+=           BLAS_PREFIX=blas
18
19 DIST_SUBDIR=            ${PKGNAME_NOREV}
20 WRKSRC=                 ${WRKDIR}/SuperLU_3.0
21 BUILD_TARGET=           superlulib
22 TEST_DIRS=              ${WRKSRC}/TESTING/MATGEN ${WRKSRC}/TESTING
23 TEST_TARGET=            all
24 INSTALLATION_DIRS=      lib
25
26 do-install:
27         ${INSTALL_DATA} ${WRKSRC}/libsuperlu.a ${DESTDIR}${PREFIX}/lib
28         ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/superlu
29         ${INSTALL_DATA} ${WRKSRC}/SRC/*.h ${DESTDIR}${PREFIX}/include/superlu
30         ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/superlu
31         ${INSTALL_DATA} ${WRKSRC}/INSTALL/ug.ps ${DESTDIR}${PREFIX}/share/doc/superlu
32
33 .include "../../mk/bsd.pkg.mk"