mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 18:20:07 +02:00
78 lines
1.6 KiB
Bash
78 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="c34254f9d54e1f1fcafd322e529a6ca2785785ff99b529dc40b2a25a8a46c871"
|
|
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 = 12.0.0 compat >= 12
|
|
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 = 12.0.0 compat >= 12
|
|
"
|
|
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
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libproj
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$manDir/man3
|
|
}
|