diff --git a/sci-libs/proj/proj-5.0.1.recipe b/sci-libs/proj/proj-5.0.1.recipe index 49c920b7b..e5ce75567 100644 --- a/sci-libs/proj/proj-5.0.1.recipe +++ b/sci-libs/proj/proj-5.0.1.recipe @@ -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 } diff --git a/sci-libs/proj/proj-5.2.0.recipe b/sci-libs/proj/proj-5.2.0.recipe new file mode 100644 index 000000000..a9522ce08 --- /dev/null +++ b/sci-libs/proj/proj-5.2.0.recipe @@ -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 +}