# $NetBSD: Makefile,v 1.5 2001/03/31 18:18:58 jtb Exp $ # # XXX The tests run during configuration should not be compiled # with optimization as they determine machine parameters and # may give incorrect results if optimized. DISTNAME= mesch12b PKGNAME= meschach-1.2b CATEGORIES= math MASTER_SITES= http://www.math.uiowa.edu/~dstewart/meschach/ MAINTAINER= jtb@netbsd.org HOMEPAGE= http://www.math.uiowa.edu/~dstewart/meschach/ COMMENT= Library of C Routines for Matrix Computations WRKSRC= ${WRKDIR} GNU_CONFIGURE= #defined CONFIGURE_ARGS+= --with-all MAKEFILE= makefile pre-patch: ${CP} ${FILESDIR}/makefile.in ${WRKSRC} post-patch: ${SED} -e 's:@PREFIX@:'${PREFIX}':g' ${FILESDIR}/makefile.test \ > ${WRKSRC}/Makefile post-install: ${INSTALL_DATA_DIR} ${PREFIX}/include/meschach @for f in err.h machine.h matlab.h matrix.h meminfo.h sparse.h \ zmatrix.h iter.h matrix2.h oldnames.h sparse2.h zmatrix2.h; do \ i="${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/include/meschach/"; \ ${ECHO} $$i; $$i; \ done ${INSTALL_DATA_DIR} ${PREFIX}/share/meschach ${INSTALL_DATA_DIR} ${PREFIX}/share/meschach/tests @for f in torture.c sptort.c ztorture.c memtort.c itertort.c \ mfuntort.c iotort.c; do \ i="${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/meschach/tests/"; \ ${ECHO} $$i; $$i; \ done ${INSTALL_DATA} ${WRKSRC}/Makefile ${PREFIX}/share/meschach/tests @for f in ${WRKSRC}/README ${WRKSRC}/DOC/*; do \ i="${INSTALL_DATA} $$f ${PREFIX}/share/meschach/"; \ ${ECHO} $$i; $$i; \ done ${INSTALL_DATA} ${WRKSRC}/copyright ${PREFIX}/share/meschach @for f in tutadv.c tutorial.c; do \ i="${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/meschach/"; \ ${ECHO} $$i; $$i; \ done .include "../../mk/bsd.pkg.mk"