mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
130 lines
3.0 KiB
Bash
130 lines
3.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="1"
|
|
SOURCE_URI="https://download.osgeo.org/geotiff/libgeotiff/libgeotiff-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="05ab1347aaa471fc97347d8d4269ff0c00f30fa666d956baba37948ec87e55d6"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
portVersionCompat="$portVersion compat >= ${portVersion%%.*}"
|
|
libVersion="5.2.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
else
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
libgeotiff$secondaryArchSuffix = $portVersionCompat
|
|
lib:libgeotiff$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libproj$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libgeotiff${secondaryArchSuffix}_devel = $portVersionCompat
|
|
devel:libgeotiff$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libgeotiff$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
PROVIDES_tools="
|
|
libgeotiff${secondaryArchSuffix}_tools
|
|
cmd:applygeo$commandSuffix = $portVersionCompat
|
|
cmd:geotifcp$commandSuffix = $portVersionCompat
|
|
cmd:listgeo$commandSuffix = $portVersionCompat
|
|
"
|
|
REQUIRES_tools="
|
|
libgeotiff$secondaryArchSuffix == $portVersion base
|
|
haiku$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libproj$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libproj$secondaryArchSuffix
|
|
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
|
|
"
|
|
|
|
defineDebugInfoPackage libgeotiff$secondaryArchSuffix \
|
|
$libDir/libgeotiff.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir \
|
|
--with-jpeg \
|
|
--with-zlib
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm -f "$libDir"/*.la "$libDir"/libgeotiff.a
|
|
|
|
# install pkgconfig file
|
|
mkdir -p $developLibDir/pkgconfig/
|
|
cat > $developLibDir/pkgconfig/libgeotiff.pc <<EOF
|
|
prefix=$prefix
|
|
bindir=$commandBinDir
|
|
exec_prefix=$prefix
|
|
libdir=$libDir
|
|
includedir=$includeDir
|
|
|
|
Name: libgeotiff
|
|
Description: GeoTIFF file format library
|
|
Version: $portVersion
|
|
Libs: -L$developLibDir -lgeotiff
|
|
Cflags: -I$includeDir
|
|
EOF
|
|
|
|
prepareInstalledDevelLibs libgeotiff
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
# tools package
|
|
packageEntries tools \
|
|
$commandBinDir \
|
|
$manDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# needs export to find proj.db
|
|
export PROJ_LIB="`finddir B_SYSTEM_DATA_DIRECTORY`/proj"
|
|
make check
|
|
}
|