mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 14:08:51 +02:00
77 lines
1.7 KiB
Plaintext
77 lines
1.7 KiB
Plaintext
SUMMARY="Proj.4 cartographic projection software."
|
|
DESCRIPTION="
|
|
Proj.4 is a library for performing conversions between cartographic projections.
|
|
"
|
|
HOMEPAGE="http://trac.osgeo.org/proj/"
|
|
COPYRIGHT="
|
|
2000, Frank Warmerdam
|
|
"
|
|
LICENSE="MIT"
|
|
SRC_URI="http://download.osgeo.org/proj/proj-$portVersion.zip"
|
|
CHECKSUM_SHA256="b502df56db315e358d4e73a268426d7b0a17a7a5644d5339e8c270fa3c6c72ec"
|
|
REVISION="1"
|
|
ARCHITECTURES="x86 x86_64"
|
|
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
|
# x86_gcc2 is fine as primary target architecture as long as we're building
|
|
# for a different secondary architecture.
|
|
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
|
fi
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
if [ $targetArchitecture != x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
PROVIDES="
|
|
proj$secondaryArchSuffix = $portVersion compat >= 4
|
|
lib:libproj$secondaryArchSuffix = 0.7.0 compat >= 0.7
|
|
cmd:cs2cs
|
|
cmd:geod
|
|
cmd:invgeod
|
|
cmd:invproj
|
|
cmd:nad2bin
|
|
cmd:proj
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix >= $haikuVersion
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:awk
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
chmod +x ./configure
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libproj
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$manDir/man3
|
|
}
|
|
|
|
# ----- devel package -------------------------------------------------------
|
|
|
|
PROVIDES_devel="
|
|
proj${secondaryArchSuffix}_devel = $portVersion compat >= 4
|
|
devel:libproj$secondaryArchSuffix = 0.7.0 compat >= 0.7
|
|
"
|
|
REQUIRES_devel="
|
|
proj$secondaryArchSuffix == $portVersion base
|
|
"
|