geos-3.7.2.recipe revision 4052c2fa
1SUMMARY="Geometry Engine Open Source"
2DESCRIPTION="GEOS is a C++ port of the Java Topology Suite (JTS). As such, \
3it aims to contain the complete functionality of JTS in C++. This includes \
4all the OpenGIS Simple Features for SQL spatial predicate functions and \
5spatial operators, as well as specific JTS enhanced topology functions."
6HOMEPAGE="http://trac.osgeo.org/geos"
7COPYRIGHT="2005-2006 Refractions Research Inc.
8	2012 Excensus LLC.
9	2001-2002 Vivid Solutions Inc.
10	2009-2012 Sandro Santilli
11	2008-2010 Safe Software Inc.
12	2008 Sean Gillies"
13LICENSE="GNU LGPL v2.1"
14REVISION="1"
15SOURCE_URI="http://download.osgeo.org/geos/geos-$portVersion.tar.bz2"
16CHECKSUM_SHA256="2166e65be6d612317115bfec07827c11b403c3f303e0a7420a2106bc999d7707"
17PATCHES="geos-$portVersion.patchset"
18
19ARCHITECTURES="x86_gcc2 x86 x86_64"
20SECONDARY_ARCHITECTURES="x86_gcc2 x86"
21
22PROVIDES="
23	geos$secondaryArchSuffix = $portVersion compat >= 3.7
24	lib:libgeos_${portVersion}$secondaryArchSuffix = $portVersion compat >= 3.7
25	lib:libgeos_c$secondaryArchSuffix = 1.11.2 compat >= 1
26	"
27REQUIRES="
28	haiku$secondaryArchSuffix
29	"
30
31PROVIDES_devel="
32	geos${secondaryArchSuffix}_devel = $portVersion compat >= 3.7
33	cmd:geos_config$secondaryArchSuffix
34	devel:libgeos$secondaryArchSuffix = $portVersion compat >= 3.7
35	devel:libgeos_${portVersion}$secondaryArchSuffix = $portVersion compat >= 3.7
36	devel:libgeos_c$secondaryArchSuffix = 1.11.2 compat >= 1
37	"
38REQUIRES_devel="
39	geos$secondaryArchSuffix == $portVersion base
40	"
41
42BUILD_REQUIRES="
43	haiku${secondaryArchSuffix}_devel
44	"
45BUILD_PREREQUIRES="
46	cmd:aclocal
47	cmd:autoconf
48	cmd:automake
49	cmd:find
50	cmd:gcc$secondaryArchSuffix
51	cmd:ld$secondaryArchSuffix
52	cmd:libtoolize
53	cmd:make
54	cmd:which
55	"
56
57BUILD()
58{
59	autoreconf -fi
60	runConfigure ./configure
61	make $jobArgs
62}
63
64INSTALL()
65{
66	make install
67
68	prepareInstalledDevelLibs libgeos_c libgeos libgeos-$portVersion
69	fixPkgconfig
70
71	# devel package
72	packageEntries devel \
73		$binDir \
74		$developDir
75}
76