Files
haikuports/sci-libs/geos/geos-3.11.0.recipe
2022-08-18 13:00:36 +02:00

101 lines
2.3 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://libgeos.org/"
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="2"
SOURCE_URI="https://download.osgeo.org/geos/geos-$portVersion.tar.bz2"
CHECKSUM_SHA256="79ab8cabf4aa8604d161557b52e3e4d84575acdc0d08cb09ab3f7aaefa4d858a"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
else
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="1.17.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVersionCompat="$portVersion compat >= ${portVersion%.*}"
PROVIDES="
geos$secondaryArchSuffix = $portVersionCompat
lib:libgeos$secondaryArchSuffix = $portVersion
lib:libgeos_c$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
geos${secondaryArchSuffix}_devel = $portVersionCompat
cmd:geos_config$commandSuffix = $portVersionCompat
devel:libgeos$secondaryArchSuffix = $portVersion
devel:libgeos_c$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
geos$secondaryArchSuffix == $portVersion base
"
PROVIDES_tools="
geos${secondaryArchSuffix}_tools = $portVersionCompat
cmd:geosop$commandSuffix
"
REQUIRES_tools="
geos$secondaryArchSuffix == $portVersion base
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DCMAKE_INSTALL_BINDIR=$commandBinDir
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLibs libgeos_c libgeos
fixPkgconfig
# devel package
packageEntries devel \
$commandBinDir/geos-config \
$developDir \
$libDir/cmake
# tools package
packageEntries tools \
$commandBinDir
}
TEST()
{
make -C build check
}