mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
libspatialindex: add recipe
This commit is contained in:
77
sci-libs/libspatialindex/libspatialindex-1.9.3.recipe
Normal file
77
sci-libs/libspatialindex/libspatialindex-1.9.3.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="C++ implementation of R*-tree, an MVR-tree and a TPR-tree with C API"
|
||||
DESCRIPTION="Extensible framework that supports robust spatial indexing methods and sophisticated spatial queries."
|
||||
HOMEPAGE="https://libspatialindex.org/"
|
||||
COPYRIGHT="Marios Hadjieleftheriou"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/libspatialindex/libspatialindex/releases/download/$portVersion/spatialindex-src-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="4a529431cfa80443ab4dcd45a4b25aebbabe1c0ce2fa1665039c80e999dcc50a"
|
||||
SOURCE_DIR="spatialindex-src-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
else
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="6.1.1"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libspatialindex$secondaryArchSuffix = $portVersion
|
||||
lib:libspatialindex$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libspatialindex_c$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libspatialindex${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libspatialindex$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libspatialindex_c$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libspatialindex$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. $cmakeDirArgs -DCMAKE_BUILD_TYPE=Release -DSIDX_BUILD_TESTS=ON
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mkdir -p $includeDir
|
||||
mv $prefix/include/spatialindex $includeDir
|
||||
rm -rf $prefix/include
|
||||
|
||||
prepareInstalledDevelLibs libspatialindex libspatialindex_c
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
Reference in New Issue
Block a user