mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
100 lines
2.1 KiB
Bash
100 lines
2.1 KiB
Bash
SUMMARY="A cartographic projection software"
|
|
DESCRIPTION="Proj.5 is a library for performing conversions between \
|
|
cartographic projections."
|
|
HOMEPAGE="https://proj4.org/index.html"
|
|
COPYRIGHT="2000-2018 Frank Warmerdam"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="http://download.osgeo.org/proj/proj-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ef919499ffbc62a4aae2659a55e2b25ff09cccbbe230656ba71c6224056c7e60"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
else
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="13.1.1"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
proj$secondaryArchSuffix = $portVersion compat >= 5
|
|
lib:libproj$secondaryArchSuffix = $libVersionCompat
|
|
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:nad2bin$commandSuffix = $portVersion
|
|
cmd:proj$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
proj${secondaryArchSuffix}_devel = $portVersion compat >= 5
|
|
devel:libproj$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
proj$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage proj$secondaryArchSuffix \
|
|
"$commandBinDir"/cct \
|
|
"$commandBinDir"/cs2cs \
|
|
"$commandBinDir"/geod \
|
|
"$commandBinDir"/gie \
|
|
"$commandBinDir"/nad2bin \
|
|
"$commandBinDir"/proj \
|
|
"$libDir"/libproj.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir="$commandBinDir"
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm -f "$libDir"/*.la
|
|
|
|
prepareInstalledDevelLibs libproj
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
"$developDir" \
|
|
"$manDir"/man3
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|