diff --git a/sci-libs/geos/geos-3.4.2.recipe b/sci-libs/geos/geos-3.4.2.recipe new file mode 100644 index 000000000..f7c03790f --- /dev/null +++ b/sci-libs/geos/geos-3.4.2.recipe @@ -0,0 +1,80 @@ +SUMMARY="Geometry Engine Open Source" +DESCRIPTION=" +GEOS is a C++ port of the Java Topology Suite (JTS). As such, it aims to \ +contain the complete functionality of JTS in C++. This includes all the \ +OpenGIS Simple Features for SQL spatial predicate functions and spatial \ +operators, as well as specific JTS enhanced topology functions. +" +HOMEPAGE="http://trac.osgeo.org/geos" +COPYRIGHT=" + 2006 Refractions Research Inc. + 2012 Excensus LLC. + 2001-2002 Vivid Solutions Inc. + 2009-2012 Sandro Santilli + 2008-2010 Safe Software Inc. + 2008 Sean Gillies + " +LICENSE="GNU LGPL v2.1" +SRC_URI="http://download.osgeo.org/geos/geos-$portVersion.tar.bz2" +CHECKSUM_SHA256="15e8bfdf7e29087a957b56ac543ea9a80321481cef4d4f63a7b268953ad26c53" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PATCHES="geos-$portVersion.patchset" + +PROVIDES=" + geos$secondaryArchSuffix = $portVersion compat >= 3.4 + lib:libgeos_3.4.2$secondaryArchSuffix = $portVersion compat >= 3.4 + lib:libgeos_c$secondaryArchSuffix = 1.8.2 compat >= 1 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libstdc++$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize + cmd:make + cmd:find + " + +BUILD() +{ + autoreconf -fi + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libgeos_c libgeos libgeos-3.4.2 + fixPkgconfig + + # devel package + packageEntries devel \ + $binDir \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + geos${secondaryArchSuffix}_devel = $portVersion compat >= 3.4 + cmd:geos_config$secondaryArchSuffix + devel:libgeos_3.4.2$secondaryArchSuffix = $portVersion compat >= 3.4 + devel:libgeos$secondaryArchSuffix = $portVersion compat >= 3.4 + devel:libgeos_c$secondaryArchSuffix = 1.8.2 compat >= 1 + " +REQUIRES_devel=" + geos$secondaryArchSuffix == $portVersion base + " diff --git a/sci-libs/geos/patches/geos-3.4.2.patchset b/sci-libs/geos/patches/geos-3.4.2.patchset new file mode 100644 index 000000000..3f96d4860 --- /dev/null +++ b/sci-libs/geos/patches/geos-3.4.2.patchset @@ -0,0 +1,36 @@ +From cab618dc451bbf79c933ce6010082b6a16be2aba Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Fri, 22 Aug 2014 14:30:31 +0000 +Subject: haiku patch + + +diff --git a/configure.in b/configure.in +index 9522386..0b18abb 100644 +--- a/configure.in ++++ b/configure.in +@@ -196,7 +196,8 @@ dnl of isnan(). + + AC_LANG_PUSH([C++]) + AC_CACHE_CHECK([for isnan], ac_cv_isnan, +- [AC_TRY_LINK([#include ], ++ [AC_TRY_LINK([#include ++#include ], + [double x; int y; y = isnan(x);], + ac_cv_isnan=yes, + ac_cv_isnan=no +diff --git a/include/geos/platform.h.in b/include/geos/platform.h.in +index ab63929..613fa6a 100644 +--- a/include/geos/platform.h.in ++++ b/include/geos/platform.h.in +@@ -92,7 +92,7 @@ extern "C" + // sandro furieri: sanitizing MinGW32 + # define ISNAN(x) (std::isnan(x)) + # elif defined(__OSX__) || defined(__APPLE__) || \ +- defined(__NetBSD__) || defined(__DragonFly__) || \ ++ defined(__NetBSD__) || defined(__DragonFly__) || defined(__HAIKU__) || \ + (defined(__sun) && defined(__GNUC__)) + // Hack for OS/X incorrectly re-defining isnan() into oblivion. + // It does leave a version in std. +-- +1.8.3.4 +