summaryrefslogtreecommitdiff
path: root/math/meschach/Makefile
blob: eccc6b584077382d967977ac3c2e3a02ebd8754c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $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"