lis-2.0.17.recipe revision e550e7fb
1SUMMARY="Library of Iterative Solvers for Linear Systems"
2DESCRIPTION="Lis is a parallel software library for solving linear equations \
3and eigenvalue problems that arise in the numerical solution of partial \
4differential equations using iterative methods."
5HOMEPAGE="https://www.ssisc.org/lis/"
6COPYRIGHT="2005 The Scalable Software Infrastructure Project"
7LICENSE="BSD (3-clause)"
8REVISION="1"
9SOURCE_URI="https://github.com/anishida/lis/archive/$portVersion.tar.gz"
10CHECKSUM_SHA256="fa1b2878548e00509973681fd18cb45d48fdcb4b92347ba08b654eb79daab9c4"
11SOURCE_FILENAME="lis-$portVersion.tar.gz"
12
13ARCHITECTURES="!x86_gcc2 x86 x86_64"
14SECONDARY_ARCHITECTURES="x86"
15
16commandSuffix=$secondaryArchSuffix
17commandBinDir=$binDir
18if [ "$targetArchitecture" = x86_gcc2 ]; then
19	commandSuffix=
20	commandBinDir=$prefix/bin
21fi
22
23libVersion="0.0.0"
24libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
25
26PROVIDES="
27	lis$secondaryArchSuffix = $portVersion
28	cmd:esolve$commandSuffix = $portVersion
29	cmd:esolver$commandSuffix = $portVersion
30	cmd:gesolve$commandSuffix = $portVersion
31	cmd:gesolver$commandSuffix = $portVersion
32	cmd:hpcg_kernel$commandSuffix = $portVersion
33	cmd:hpcg_spmvtest$commandSuffix = $portVersion
34	cmd:lsolve$commandSuffix = $portVersion
35	cmd:spmvtest1$commandSuffix = $portVersion
36	cmd:spmvtest2$commandSuffix = $portVersion
37	cmd:spmvtest2b$commandSuffix = $portVersion
38	cmd:spmvtest3$commandSuffix = $portVersion
39	cmd:spmvtest3b$commandSuffix = $portVersion
40	cmd:spmvtest4$commandSuffix = $portVersion
41	cmd:spmvtest5$commandSuffix = $portVersion
42	lib:liblis$secondaryArchSuffix = $libVersionCompat
43	"
44REQUIRES="
45	haiku$secondaryArchSuffix
46	lib:libgomp$secondaryArchSuffix
47	"
48
49PROVIDES_devel="
50	lis${secondaryArchSuffix}_devel = $portVersion
51	devel:liblis$secondaryArchSuffix = $libVersionCompat
52	"
53REQUIRES_devel="
54	lis$secondaryArchSuffix == $portVersion base
55	"
56
57BUILD_REQUIRES="
58	haiku${secondaryArchSuffix}_devel
59	"
60BUILD_PREREQUIRES="
61	cmd:autoreconf
62	cmd:awk
63	cmd:find
64	cmd:gcc$secondaryArchSuffix
65	cmd:gfortran$secondaryArchSuffix
66	cmd:libtoolize$secondaryArchSuffix
67	cmd:make
68	cmd:pkg_config$secondaryArchSuffix
69	"
70
71defineDebugInfoPackage lis$secondaryArchSuffix \
72	$commandBinDir/esolve \
73	$commandBinDir/esolver \
74	$commandBinDir/gesolve \
75	$commandBinDir/gesolver \
76	$commandBinDir/hpcg_kernel \
77	$commandBinDir/hpcg_spmvtest \
78	$commandBinDir/lsolve \
79	$commandBinDir/spmvtest1 \
80	$commandBinDir/spmvtest2 \
81	$commandBinDir/spmvtest2b \
82	$commandBinDir/spmvtest3 \
83	$commandBinDir/spmvtest3b \
84	$commandBinDir/spmvtest4 \
85	$commandBinDir/spmvtest5 \
86	$libDir/liblis.so.$libVersion
87
88BUILD()
89{
90	autoreconf -vfi
91
92	runConfigure --omit-dirs binDir ./configure \
93		--bindir=$commandBinDir \
94		--enable-f90 \
95		--enable-shared
96	make $jobArgs
97}
98
99INSTALL()
100{
101	make install
102
103	rm $libDir/liblis.la
104	mkdir -p $developDocDir
105	mv $prefix/share/examples $developDocDir
106	rm -rf $prefix/share
107
108	prepareInstalledDevelLib liblis
109	fixPkgconfig
110
111	packageEntries devel \
112		$developDir
113}
114
115TEST()
116{
117	make check
118}
119