Files
haikuports/sci-libs/libgeotiff/libgeotiff-1.5.1.recipe
2020-06-02 17:07:52 +02:00

86 lines
2.0 KiB
Bash

SUMMARY="Proj.4 cartographic projection software"
DESCRIPTION="Proj.4 is a library for performing conversions between \
cartographic projections."
HOMEPAGE="https://trac.osgeo.org/geotiff/"
COPYRIGHT="1999-2012 Frank Warmerdam"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://download.osgeo.org/geotiff/libgeotiff/libgeotiff-$portVersion.tar.gz"
CHECKSUM_SHA256="f9e99733c170d11052f562bcd2c7cb4de53ed405f7acdde4f16195cd3ead612c"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
else
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
libgeotiff$secondaryArchSuffix = $portVersion compat >= 1
lib:libgeotiff$secondaryArchSuffix = 5.0.0 compat >= 5
cmd:applygeo$commandSuffix
cmd:geotifcp$commandSuffix
cmd:listgeo$commandSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libproj$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libgeotiff${secondaryArchSuffix}_devel = $portVersion compat >= 1
devel:libgeotiff$secondaryArchSuffix = 5.0.0 compat >= 5
"
REQUIRES_devel="
libgeotiff$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libjpeg$secondaryArchSuffix
devel:libproj$secondaryArchSuffix >= 15
devel:libtiff$secondaryArchSuffix >= 5
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:diff
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
jpegDir=$portPackageLinksDir/lib~libjpeg
zlibDir=$portPackageLinksDir/lib~libz
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir \
--with-zlib=$zlibDir \
--with-jpeg=$jpegDir
make $jobArgs
}
INSTALL()
{
make install
rm -f "$libDir"/*.la "$libDir"/libgeotiff.a
prepareInstalledDevelLibs libgeotiff
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}