1 # $NetBSD: Makefile,v 1.17 2011/09/29 20:14:46 wiz Exp $
6 MASTER_SITES= http://www.math.uiowa.edu/~dstewart/meschach/
8 MAINTAINER= pkgsrc-users@NetBSD.org
9 HOMEPAGE= http://www.math.uiowa.edu/~dstewart/meschach/
10 COMMENT= Library of C Routines for Matrix Computations
12 PKG_DESTDIR_SUPPORT= user-destdir
16 CONFIGURE_ARGS+= --with-all
19 MAKE_FLAGS+= MKPROFILE=yes
21 INSTALLATION_DIRS= include/meschach lib share/meschach/tests
23 BUILDLINK_TRANSFORM+= rm:-Werror
26 ${CP} ${FILESDIR}/makefile.in ${WRKSRC}
29 ${SED} -e 's:@PREFIX@:'${PREFIX}':g' ${FILESDIR}/makefile.test \
33 cd ${WRKSRC} && ${INSTALL_DATA} err.h machine.h matlab.h \
34 matrix.h meminfo.h sparse.h zmatrix.h iter.h matrix2.h \
35 oldnames.h sparse2.h zmatrix2.h ${DESTDIR}${PREFIX}/include/meschach/
36 cd ${WRKSRC} && ${INSTALL_DATA} torture.c sptort.c ztorture.c \
37 memtort.c itertort.c mfuntort.c iotort.c \
38 ${DESTDIR}${PREFIX}/share/meschach/tests/
39 ${INSTALL_DATA} ${WRKSRC}/Makefile ${DESTDIR}${PREFIX}/share/meschach/tests
40 cd ${WRKSRC} && ${INSTALL_DATA} README ./DOC/* \
41 ${DESTDIR}${PREFIX}/share/meschach/
42 ${INSTALL_DATA} ${WRKSRC}/copyright ${DESTDIR}${PREFIX}/share/meschach
43 cd ${WRKSRC} && ${INSTALL_DATA} tutadv.c tutorial.c \
44 ${DESTDIR}${PREFIX}/share/meschach/
46 .include "../../mk/bsd.pkg.mk"