Files
haikuports/sci-libs/proj/proj-4.9.2.recipe
fbrosson b3e8768b0d proj: fix minor issue in recipe for 4.8.0 and add 4.9.2.
* Fix test for setting commandSuffix and commandBinDir on x86_gcc2.
* Install runtimes in bin instead of bin/x86/ for x86 2nd arch.
* Drop unneeded "chmod +x ./configure" in BUILD().

Off topic: I would like to apologize for the duplicate commit log 3
commits earlier: "Update DriveEncryption homepage to upstream repo"
for haiku-apps/drive_encryption/drive_encryption-1.0.recipe.
I'm the only person to blame for this mistake. Sorry for the noise.
2016-04-16 15:45:45 +00:00

73 lines
1.6 KiB
Bash

SUMMARY="A cartographic projection software"
DESCRIPTION="Proj.4 is a library for performing conversions between \
cartographic projections."
HOMEPAGE="http://trac.osgeo.org/proj/"
COPYRIGHT="2000-2015 Frank Warmerdam"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/OSGeo/proj.4/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="9a40de36183d23a395cf51ba7a465e1e6c982b6e4553b31310c42012d188be6b"
SOURCE_DIR="proj.4-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
else
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
proj$secondaryArchSuffix = $portVersion compat >= 4
lib:libproj$secondaryArchSuffix = 9.1.0 compat >= 9.1
cmd:cs2cs$commandSuffix
cmd:geod$commandSuffix
cmd:invgeod$commandSuffix
cmd:invproj$commandSuffix
cmd:nad2bin$commandSuffix
cmd:proj$commandSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
proj${secondaryArchSuffix}_devel = $portVersion compat >= 4
devel:libproj$secondaryArchSuffix = 9.1.0 compat >= 9.1
"
REQUIRES_devel="
proj$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:awk
"
BUILD()
{
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libproj
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$manDir/man3
}