proj: remove libtool file, add recipe for 5.2.0 (#3136)

This commit is contained in:
Schrijvers Luc
2018-09-25 08:25:57 +00:00
committed by Jérôme Duval
parent bdb0fcbd78
commit 41049b54a8
2 changed files with 112 additions and 6 deletions

View File

@@ -4,16 +4,13 @@ cartographic projections."
HOMEPAGE="https://proj4.org/index.html"
COPYRIGHT="2000-2018 Frank Warmerdam"
LICENSE="MIT"
REVISION="2"
REVISION="3"
SOURCE_URI="http://download.osgeo.org/proj/proj-$portVersion.tar.gz"
CHECKSUM_SHA256="a792f78897482ed2c4e2af4e8a1a02e294c64e32b591a635c5294cb9d49fdc8c"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="13.0.1"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
@@ -22,6 +19,9 @@ else
commandBinDir=$prefix/bin
fi
libVersion="13.0.1"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
proj$secondaryArchSuffix = $portVersion compat >= 5
lib:libproj$secondaryArchSuffix = $libVersionCompat
@@ -82,11 +82,18 @@ INSTALL()
{
make install
rm -f "$libDir"/*.la
prepareInstalledDevelLibs libproj
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$manDir/man3
"$developDir" \
"$manDir"/man3
}
TEST()
{
make check
}

View File

@@ -0,0 +1,99 @@
SUMMARY="A cartographic projection software"
DESCRIPTION="Proj.5 is a library for performing conversions between \
cartographic projections."
HOMEPAGE="https://proj4.org/index.html"
COPYRIGHT="2000-2018 Frank Warmerdam"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://download.osgeo.org/proj/proj-$portVersion.tar.gz"
CHECKSUM_SHA256="ef919499ffbc62a4aae2659a55e2b25ff09cccbbe230656ba71c6224056c7e60"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
else
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="13.1.1"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
proj$secondaryArchSuffix = $portVersion compat >= 5
lib:libproj$secondaryArchSuffix = $libVersionCompat
cmd:cct$commandSuffix = $portVersion
cmd:cs2cs$commandSuffix = $portVersion
cmd:geod$commandSuffix = $portVersion
cmd:gie$commandSuffix = $portVersion
cmd:invgeod$commandSuffix = $portVersion
cmd:invproj$commandSuffix = $portVersion
cmd:nad2bin$commandSuffix = $portVersion
cmd:proj$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
proj${secondaryArchSuffix}_devel = $portVersion compat >= 5
devel:libproj$secondaryArchSuffix = $libVersionCompat
"
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
"
defineDebugInfoPackage proj$secondaryArchSuffix \
"$commandBinDir"/cct \
"$commandBinDir"/cs2cs \
"$commandBinDir"/geod \
"$commandBinDir"/gie \
"$commandBinDir"/nad2bin \
"$commandBinDir"/proj \
"$libDir"/libproj.so.$libVersion
BUILD()
{
autoreconf -fi
runConfigure --omit-dirs binDir ./configure \
--bindir="$commandBinDir"
make $jobArgs
}
INSTALL()
{
make install
rm -f "$libDir"/*.la
prepareInstalledDevelLibs libproj
fixPkgconfig
# devel package
packageEntries devel \
"$developDir" \
"$manDir"/man3
}
TEST()
{
make check
}