librsb-1.2.0.8.recipe revision 1c67b91f
1SUMMARY="Recursive Sparse Blocks Matrix computations library"
2DESCRIPTION="A library for sparse matrix computations featuring the Recursive \
3Sparse Blocks (RSB) matrix format. This format allows cache efficient and multi\
4-threaded (that is, shared memory parallel) operations on large sparse \
5matrices. It provides the most common operations necessary to iterative \
6solvers, like matrix-vector multiplication, triangular solution, rows/columns \
7scaling,  diagonal extraction / setting, blocks extraction, norm computation, \
8formats conversion.  The RSB format is especially well suited for symmetric \
9and transposed multiplication variants."
10HOMEPAGE="https://sourceforge.net/projects/librsb/"
11COPYRIGHT="2008-2019 Michele Martone"
12LICENSE="GNU LGPL v3"
13REVISION="1"
14SOURCE_URI="https://downloads.sourceforge.net/librsb/librsb-${portVersion/\~/-}.tar.gz"
15CHECKSUM_SHA256="8bebd19a1866d80ade13eabfdd0f07ae7e8a485c0b975b5d15f531ac204d80cb"
16SOURCE_DIR="librsb-${portVersion/\~/-}"
17PATCHES="librsb-$portVersion.patchset"
18
19ARCHITECTURES="!x86_gcc2 x86 x86_64"
20SECONDARY_ARCHITECTURES="x86"
21
22libVersion="0.0.0"
23libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
24
25PROVIDES="
26	librsb$secondaryArchSuffix = $portVersion
27	cmd:rsbench
28	lib:librsb$secondaryArchSuffix = $libVersionCompat
29	"
30REQUIRES="
31	haiku$secondaryArchSuffix
32	lib:libgfortran$secondaryArchSuffix
33	lib:libgomp$secondaryArchSuffix
34	lib:libz$secondaryArchSuffix
35	"
36
37PROVIDES_devel="
38	librsb${secondaryArchSuffix}_devel = $portVersion
39	cmd:librsb_config
40	devel:librsb$secondaryArchSuffix = $libVersionCompat
41	"
42REQUIRES_devel="
43	librsb$secondaryArchSuffix == $portVersion base
44	"
45
46BUILD_REQUIRES="
47	haiku${secondaryArchSuffix}_devel
48	devel:libgomp$secondaryArchSuffix
49	devel:libz$secondaryArchSuffix
50	"
51BUILD_PREREQUIRES="
52	cmd:awk
53	cmd:gcc$secondaryArchSuffix
54	cmd:gfortran$secondaryArchSuffix
55	cmd:grep
56	cmd:libtoolize$secondaryArchSuffix
57	cmd:make
58	cmd:pkg_config$secondaryArchSuffix
59	cmd:sed
60	"
61
62defineDebugInfoPackage librsb$secondaryArchSuffix \
63	$libDir/librsb.so.$libVersion
64
65BUILD()
66{
67	runConfigure ./configure \
68		--with-zlib \
69		--enable-pkg-config-install
70
71	make $jobArgs
72}
73
74INSTALL()
75{
76	make install
77
78	rm $libDir/librsb.la
79
80	prepareInstalledDevelLib librsb
81	fixPkgconfig
82
83	packageEntries devel \
84		$developDir \
85		$docDir \
86		$prefix/bin/librsb-config
87}
88
89TEST()
90{
91	make tests
92}
93