mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
* Fix test for setting commandSuffix and commandBinDir on x86_gcc2. * Install runtimes in bin instead of bin/x86/ for x86 2nd arch. * Do not move documentation/man/man1/listgeo.1 to devel package. * Add "!x86_gcc2" to SECONDARY_ARCHITECTURES. * Reorder sections and Update COPTIRIGHT years.
88 lines
2.1 KiB
Bash
88 lines
2.1 KiB
Bash
SUMMARY="Proj.4 cartographic projection software"
|
|
DESCRIPTION="Proj.4 is a library for performing conversions between \
|
|
cartographic projections."
|
|
HOMEPAGE="http://trac.osgeo.org/geotiff/"
|
|
COPYRIGHT="1999-2012 Frank Warmerdam"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="d0acb8d341fd6a8f2c673456e09fdb8f50f91e3166ac934719fe05b30d328329"
|
|
PATCHES="libgeotiff-$portVersion.patchset"
|
|
|
|
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 = 2.1.0 compat >= 2.1
|
|
cmd:applygeo$commandSuffix
|
|
cmd:geotifcp$commandSuffix
|
|
cmd:listgeo$commandSuffix
|
|
cmd:makegeo$commandSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libproj$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libgeotiff${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
|
devel:libgeotiff$secondaryArchSuffix = 2.1.0 compat >= 2.1
|
|
"
|
|
REQUIRES_devel="
|
|
libgeotiff$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libproj$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:autoreconf
|
|
cmd:aclocal
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:awk
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
jpegDir=$portPackageLinksDir/lib~libjpeg
|
|
zlibDir=$portPackageLinksDir/lib~libz
|
|
autoreconf -fi
|
|
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir \
|
|
--with-zlib=$zlibDir \
|
|
--with-jpeg=$jpegDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libgeotiff
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|