gsl-2.5.recipe revision 39f98943
1SUMMARY="GNU Scientific Library"
2DESCRIPTION="This is GSL, the GNU Scientific Library, a collection of \
3numerical routines for scientific computing."
4HOMEPAGE="https://www.gnu.org/software/gsl/"
5COPYRIGHT="1996-2007, 2009, 2010 Gerard Jungman
6	1996-2001, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2013 Brian Gough
7	1996-2000, 2007, 2010 Jim Davies
8	2002, 2004, 2009 Ivo Alxneit
9	2002 Gert Van den Eynde
10	1996-2000, 2007, 2013 Patrick Alken
11	2002, 2003, 2009 Lowell Johnson
12	1996, 1997, 1998, 1999, 2000, 2001, 2007 Thomas Walter
13	1996, 1997, 1998, 1999, 2000 Mark Galassi
14	1996, 1997, 1998, 1999, 2000, 2007 Reid Priedhorsky
15	1996, 1997, 1998, 1999, 2000, 2007, 2010 James Theiler
16	2002 Atakan Gurkan
17	2003 Heiko Bauke
18	2001, 2003, 2007 Carlo Perassi
19	2003 Olaf Lenz
20	2002 Gavin E. Crooks
21	2000, 2001, 2004 David Morrison
22	2005 Jochen Voss
23	2006 Charles Karney
24	2004, 2006 Giulio Bottazzi
25	2007 O. Teytaud
26	1996, 1997, 1998, 1999, 2000, 2006-2009, 2013 Patrick Alken
27	2009 Marc JOURDAIN
28	2007 Frank Reininghaus
29	2001 DAN, HO-JIN
30	2001, 2002 Nicolas Darnis
31	2004, 2008, 2009, 2010 Tuomo Keskitalo
32	2008, 2009, 2011 Rhys Ulerich
33	2000 Simone Piccardi
34	2001 Szymon Jaroszewicz
35	1996, 1997, 1998, 1999, 2000 Fabrice Rossi
36	1996, 1997, 1998, 1999, 2000, 2009 Michael Booth
37	2007 James Howse
38	1996, 1997, 1998, 1999, 2000, 2002, 2004, 2007 David Necas
39	2004 Joerg Wensch
40	2007-2008 Pavel Holoborodko
41	2010 Pedro Gonnet
42	1996, 1997, 1998, 1999, 2000 Tim Mooney
43	2001 Jason Beegan
44	2001 Henry Sobotka
45	1996, 1997, 1998, 1999, 2000, 2007 John Fisher
46	2000 Vladimir Kushnir
47	2006 Erik Schnetter
48	2001 Rodney Sparapani
49	2002 Achim Gaedke
50	1996, 1997, 1998, 1999, 2000, 2007 Jorma Olavi Ttinen
51	2002-2004 Jason H. Stover"
52LICENSE="GNU GPL v3"
53REVISION="3"
54SOURCE_URI="https://ftpmirror.gnu.org/gsl/gsl-$portVersion.tar.gz
55	https://ftp.gnu.org/gnu/gsl/gsl-$portVersion.tar.gz"
56CHECKSUM_SHA256="0460ad7c2542caaddc6729762952d345374784100223995eb14d614861f2258d"
57
58ARCHITECTURES="!x86_gcc2 x86 x86_64"
59SECONDARY_ARCHITECTURES="x86"
60
61commandSuffix=$secondaryArchSuffix
62commandBinDir=$binDir
63if [ "$targetArchitecture" = x86_gcc2 ]; then
64	commandSuffix=
65	commandBinDir=$prefix/bin
66fi
67
68libgslVersion="23.1.0"
69libgslcblasVersion="0.0.0"
70libgslVersionCompat="$libgslVersion compat >= ${libgslVersion%%.*}"
71libgslcblasVersionCompat="$libgslcblasVersion compat >= ${libgslcblasVersion%%.*}"
72
73PROVIDES="
74	gsl$secondaryArchSuffix = $portVersion compat >= 1
75	cmd:gsl_histogram$commandSuffix = $portVersion
76	cmd:gsl_randist$commandSuffix = $portVersion
77	lib:libgsl$secondaryArchSuffix = $libgslVersionCompat
78	lib:libgslcblas$secondaryArchSuffix = $libgslcblasVersionCompat
79	"
80REQUIRES="
81	haiku$secondaryArchSuffix
82	"
83
84PROVIDES_devel="
85	gsl${secondaryArchSuffix}_devel = $portVersion compat >= 1
86	cmd:gsl_config$secondaryArchSuffix
87	devel:libgsl$secondaryArchSuffix = $libgslVersionCompat
88	devel:libgslcblas$secondaryArchSuffix = $libgslcblasVersionCompat
89	"
90REQUIRES_devel="
91	gsl$secondaryArchSuffix == $portVersion base
92	"
93
94BUILD_REQUIRES="
95	haiku${secondaryArchSuffix}_devel
96	"
97BUILD_PREREQUIRES="
98	cmd:aclocal
99	cmd:autoconf
100	cmd:automake
101	cmd:find
102	cmd:gcc$secondaryArchSuffix
103	cmd:ld$secondaryArchSuffix
104	cmd:libtoolize$secondaryArchSuffix
105	cmd:make
106	"
107
108TEST_REQUIRES="
109	cmd:pkg_config$secondaryArchSuffix
110	"
111
112defineDebugInfoPackage gsl$secondaryArchSuffix \
113	"$commandBinDir"/gsl-histogram \
114	"$commandBinDir"/gsl-randist \
115	"$libDir"/libgsl.so.$libgslVersion \
116	"$libDir"/libgslcblas.so.$libgslcblasVersion \
117
118BUILD()
119{
120	autoreconf -fi
121	runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir"
122	make $jobArgs
123}
124
125INSTALL()
126{
127	make install
128
129	rm -f "$libDir"/libgsl*.la
130
131	prepareInstalledDevelLibs libgsl libgslcblas
132	fixPkgconfig
133
134	if [ -n "$secondaryArchSuffix" -a -z "$commandSuffix" ]; then
135		mkdir -p "$binDir"
136		mv "$commandBinDir"/gsl-config "$binDir"
137	fi
138
139	# devel package
140	packageEntries devel \
141		$binDir/gsl-config \
142		$developDir \
143		$manDir/man1/gsl-config.1 \
144		$manDir/man3 \
145		$dataDir/aclocal
146
147	if [ -n "$secondaryArchSuffix" -a -z "$commandSuffix" ]; then
148		rmdir "$binDir"
149	fi
150}
151
152TEST()
153{
154	make check
155}
156