mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
* cmake/debuginfo: Mass fix packages with broken debuginfo * rtl_sdr: Fix trailing whitespace * meson/debuginfo: Mass fix packages with broken debuginfo * clean up conflicts --------- Co-authored-by: Luc Schrijvers <begasus@gmail.com>
126 lines
2.9 KiB
Bash
126 lines
2.9 KiB
Bash
SUMMARY="A generic coordinate transformation software"
|
|
DESCRIPTION="PROJ - Cartographic Projections and
|
|
Coordinate Transformations Library."
|
|
HOMEPAGE="https://proj.org/"
|
|
COPYRIGHT="1983-2023 PROJ contributors"
|
|
LICENSE="MIT"
|
|
REVISION="3"
|
|
SOURCE_URI="http://download.osgeo.org/proj/proj-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="91a3695a004ea28db0448a34460bed4cc3b130e5c7d74339ec999efdab0e547d"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="25.9.3.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
proj$secondaryArchSuffix = $portVersion
|
|
lib:libproj$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libsqlite3$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
proj${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libproj$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
proj$secondaryArchSuffix == $portVersion base
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libsqlite3$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_tools="
|
|
proj${secondaryArchSuffix}_tools
|
|
cmd:cct$commandSuffix = $portVersion
|
|
cmd:cs2cs$commandSuffix = $portVersion
|
|
cmd:geod$commandSuffix = $portVersion
|
|
cmd:gie$commandSuffix = $portVersion
|
|
cmd:invgeod$commandSuffix = $portVersion
|
|
cmd:invproj$commandSuffix = $portVersion
|
|
cmd:proj$commandSuffix = $portVersion
|
|
cmd:projinfo$commandSuffix = $portVersion
|
|
cmd:projsync$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES_tools="
|
|
proj$secondaryArchSuffix == $portVersion base
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libsqlite3$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libsqlite3$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sqlite3
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
cmd:diff
|
|
"
|
|
|
|
defineDebugInfoPackage proj$secondaryArchSuffix \
|
|
"$(getPackagePrefix tools)"/bin/cct \
|
|
"$(getPackagePrefix tools)"/bin/cs2cs \
|
|
"$(getPackagePrefix tools)"/bin/geod \
|
|
"$(getPackagePrefix tools)"/bin/gie \
|
|
"$(getPackagePrefix tools)"/bin/proj \
|
|
"$(getPackagePrefix tools)"/bin/projinfo \
|
|
"$(getPackagePrefix tools)"/bin/projsync \
|
|
"$libDir"/libproj.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_INSTALL_BINDIR=$commandBinDir
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
rm -f "$libDir"/*.la "$libDir"/libproj.a
|
|
|
|
prepareInstalledDevelLibs libproj
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
"$developDir"
|
|
|
|
# tools package
|
|
packageEntries tools \
|
|
$commandBinDir \
|
|
$manDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
ctest --test-dir build --output-on-failure
|
|
}
|