cgal: bump version (#3546)

This commit is contained in:
Schrijvers Luc
2019-01-12 19:27:09 +01:00
committed by Jérôme Duval
parent 7dab7166fe
commit 123bec89b5
3 changed files with 172 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ LICENSE="GNU GPL v3
GNU LGPL v3
Boost v1.0
MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/CGAL/cgal/archive/releases/CGAL-$portVersion.tar.gz"
CHECKSUM_SHA256="afc36e5dc2f87bbaca16a177f9cef09b94c77f2b9deb6043559e3f3201d349dd"
SOURCE_DIR="cgal-releases-CGAL-$portVersion"
@@ -105,7 +105,7 @@ BUILD_PREREQUIRES="
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage uriparser$secondaryArchSuffix \
defineDebugInfoPackage cgal$secondaryArchSuffix \
"$libDir"/libCGAL.so.$libVersion \
"$libDir"/libCGAL_Core.so.$libVersion \
"$libDir"/libCGAL_ImageIO.so.$libVersion \

View File

@@ -0,0 +1,147 @@
SUMMARY="A Computational Geometry Algorithms Library"
DESCRIPTION="CGAL is a software project that provides easy access to efficient \
and reliable geometric algorithms in the form of a C++ library. CGAL is used \
in various areas needing geometric computation, such as geographic information \
systems, computer aided design, molecular biology, medical imaging, computer \
graphics, and robotics.
The library offers data structures and algorithms like triangulations, Voronoi \
diagrams, Boolean operations on polygons and polyhedra, point set processing, \
arrangements of curves, surface and volume mesh generation, geometry \
processing, alpha shapes, convex hull algorithms, shape analysis, AABB and KD \
trees..."
HOMEPAGE="https://www.cgal.org/"
COPYRIGHT="2005 Stanford University (USA)
2008, 2011 GeometryFactory (France)
1999-2004 Max-Planck-Institute Saarbruecken (Germany)
1995-2004 Exact Computation Project
1997-2004, 2005-2008 ASCLEPIOS Project, INRIA Sophia-Antipolis (France)
1997-2004 Utrecht University (The Netherlands)
1997-2004 ETH Zurich (Switzerland)
1997-2004 Tel-Aviv University (Israel)"
LICENSE="GNU GPL v3
GNU LGPL v3
Boost v1.0
MIT"
REVISION="1"
SOURCE_URI="https://github.com/CGAL/cgal/archive/releases/CGAL-$portVersion.tar.gz"
CHECKSUM_SHA256="c4912a00e99f29ee37cac1d780d115a048743370b9329a2cca839ffb392f3516"
SOURCE_DIR="cgal-releases-CGAL-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="13.0.2"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
cgal$secondaryArchSuffix = $portVersion
cmd:cgal_create_cmakelists
cmd:cgal_create_cmake_script
cmd:cgal_make_macosx_app
lib:libCGAL$secondaryArchSuffix = $libVersionCompat
lib:libCGAL_Core$secondaryArchSuffix = $libVersionCompat
lib:libCGAL_ImageIO$secondaryArchSuffix = $libVersionCompat
lib:libCGAL_Qt5$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libboost_atomic$secondaryArchSuffix
lib:libboost_chrono$secondaryArchSuffix
lib:libboost_date_time$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libboost_thread$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libgmp$secondaryArchSuffix
lib:libmpfr$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5OpenGL$secondaryArchSuffix
lib:libQt5Svg$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
cgal${secondaryArchSuffix}_devel = $portVersion
devel:libcgal$secondaryArchSuffix = $libVersionCompat
devel:libCGAL_Core$secondaryArchSuffix = $libVersionCompat
devel:libCGAL_ImageIO$secondaryArchSuffix = $libVersionCompat
devel:libCGAL_Qt5$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
cgal$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:eigen$secondaryArchSuffix
devel:libboost_atomic$secondaryArchSuffix
devel:libboost_chrono$secondaryArchSuffix
devel:libboost_date_time$secondaryArchSuffix
devel:libboost_system$secondaryArchSuffix
devel:libboost_thread$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libgmp$secondaryArchSuffix
devel:libmpfr$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5OpenGL$secondaryArchSuffix
devel:libQt5Svg$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage cgal$secondaryArchSuffix \
"$libDir"/libCGAL.so.$libVersion \
"$libDir"/libCGAL_Core.so.$libVersion \
"$libDir"/libCGAL_ImageIO.so.$libVersion \
"$libDir"/libCGAL_Qt5.so.$libVersion
BUILD()
{
mkdir -p build && cd build
cmake .. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_Eigen3=ON \
-DBUILD_TESTING=ON \
-DCGAL_INSTALL_CMAKE_DIR="$relativeLibDir/cmake" \
-DCGAL_INSTALL_DOC_DIR="$docDir" \
-DCGAL_INSTALL_MAN_DIR="$manDir/man1" \
-DCMAKE_CXX_FLAGS="-DBOOST_NO_CXX11_CONSTEXPR"
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs libCGAL libCGAL_Core libCGAL_ImageIO \
libCGAL_Qt5
fixPkgconfig
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
cd build
make test
}

View File

@@ -0,0 +1,23 @@
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.