0
0
Fork 0
haikuports/sci-libs/geos/geos372-3.7.2.recipe

72 lines
1.7 KiB
Bash

SUMMARY="Geometry Engine Open Source"
DESCRIPTION="GEOS is a C++ port of the Java Topology Suite (JTS). As such, \
it aims to contain the complete functionality of JTS in C++. This includes \
all the OpenGIS Simple Features for SQL spatial predicate functions and \
spatial operators, as well as specific JTS enhanced topology functions."
HOMEPAGE="https://trac.osgeo.org/geos"
COPYRIGHT="2005-2006 Refractions Research Inc.
2012 Excensus LLC.
2001-2002 Vivid Solutions Inc.
2009-2012 Sandro Santilli
2008-2010 Safe Software Inc.
2008 Sean Gillies"
LICENSE="GNU LGPL v2.1"
REVISION="3"
SOURCE_URI="https://download.osgeo.org/geos/geos-$portVersion.tar.bz2"
CHECKSUM_SHA256="2166e65be6d612317115bfec07827c11b403c3f303e0a7420a2106bc999d7707"
PATCHES="geos-$portVersion.patchset"
SOURCE_DIR="geos-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.11.2"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVersionCompat="$portVersion compat >= ${portVersion%.*}"
PROVIDES="
geos372$secondaryArchSuffix = $portVersionCompat
lib:libgeos_${portVersion}$secondaryArchSuffix = $libVersionCompat
lib:libgeos_c$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:which
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libgeos_c libgeos libgeos-$portVersion
fixPkgconfig
rm -rf $binDir $developDir
}
TEST()
{
make test
}