qhull:first pisi rel
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import cmaketools
|
||||
|
||||
def setup():
|
||||
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DCMAKE_SKIP_RPATH=ON")
|
||||
|
||||
def build():
|
||||
cmaketools.make()
|
||||
|
||||
def install():
|
||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("README*", "COPYING*")
|
||||
@@ -0,0 +1,42 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 09aa249..f1f4b50 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -353,7 +353,7 @@ endif()
|
||||
|
||||
set(
|
||||
qhull_TARGETS_INSTALL
|
||||
- ${qhull_CPP} ${qhull_STATIC} ${qhull_STATICR} ${qhull_SHAREDR}
|
||||
+ ${qhull_CPP} ${qhull_SHAREDR}
|
||||
qhull rbox qconvex qdelaunay qvoronoi qhalf
|
||||
${qhull_SHARED} ${qhull_SHAREDP} # Deprecated, use qhull_r instead
|
||||
)
|
||||
@@ -485,22 +485,22 @@ set(qvoronoi_SOURCES src/qvoronoi/qvoronoi.c)
|
||||
set(qhalf_SOURCES src/qhalf/qhalf.c)
|
||||
|
||||
add_executable(qhull ${qhull_SOURCES})
|
||||
-target_link_libraries(qhull ${qhull_STATICR})
|
||||
+target_link_libraries(qhull ${qhull_SHAREDR})
|
||||
|
||||
add_executable(rbox ${rbox_SOURCES})
|
||||
-target_link_libraries(rbox ${qhull_STATIC})
|
||||
+target_link_libraries(rbox ${qhull_SHARED})
|
||||
|
||||
add_executable(qconvex ${qconvex_SOURCES})
|
||||
-target_link_libraries(qconvex ${qhull_STATIC})
|
||||
+target_link_libraries(qconvex ${qhull_SHARED})
|
||||
|
||||
add_executable(qdelaunay ${qdelaunay_SOURCES})
|
||||
-target_link_libraries(qdelaunay ${qhull_STATIC})
|
||||
+target_link_libraries(qdelaunay ${qhull_SHARED})
|
||||
|
||||
add_executable(qvoronoi ${qvoronoi_SOURCES})
|
||||
-target_link_libraries(qvoronoi ${qhull_STATIC})
|
||||
+target_link_libraries(qvoronoi ${qhull_SHARED})
|
||||
|
||||
add_executable(qhalf ${qhalf_SOURCES})
|
||||
-target_link_libraries(qhalf ${qhull_STATIC})
|
||||
+target_link_libraries(qhalf ${qhull_SHARED})
|
||||
|
||||
# ---------------------------------------
|
||||
# Define options for linking to qhull_SHAREDR or qhull_SHARED
|
||||
@@ -0,0 +1,25 @@
|
||||
From a5d0e644ee886251cec5d05948502517e154a9e1 Mon Sep 17 00:00:00 2001
|
||||
From: "Joshua A. Anderson" <joaander@umich.edu>
|
||||
Date: Fri, 20 Sep 2019 09:36:51 -0400
|
||||
Subject: [PATCH] Build libqhullcpp with position independent code
|
||||
|
||||
This allows libqhullcpp.a to be linked into shared libraries (i.e.
|
||||
python modules).
|
||||
---
|
||||
CMakeLists.txt | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9d44056..f4b6b37 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -466,7 +466,8 @@ endif(UNIX)
|
||||
|
||||
add_library(${qhull_CPP} STATIC ${libqhullcpp_SOURCES})
|
||||
set_target_properties(${qhull_CPP} PROPERTIES
|
||||
- VERSION ${qhull_VERSION})
|
||||
+ VERSION ${qhull_VERSION}
|
||||
+ POSITION_INDEPENDENT_CODE "TRUE")
|
||||
|
||||
# ---------------------------------------
|
||||
# Define qhull executables linked to qhullstatic library
|
||||
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>qhull</Name>
|
||||
<Homepage>http://www.qhull.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>Blue Devil</Name>
|
||||
<Email>bluedevil@sctzine.com</Email>
|
||||
</Packager>
|
||||
<PartOf>science.misc</PartOf>
|
||||
<License>custom</License>
|
||||
<IsA>app:console</IsA>
|
||||
<IsA>library</IsA>
|
||||
<Summary>A general dimension code for computing convex hulls and related structures.</Summary>
|
||||
<Description>Qhull computes the convex hull, Delaunay triangulation, Voronoi diagram, halfspace intersection about a point, furthest-site Delaunay triangulation, and furthest-site Voronoi diagram.</Description>
|
||||
<Archive sha1sum="f707f42d931eedfaf3e045602d4b15e50eb3b41f" type="targz">https://github.com/qhull/qhull/archive/2019.1.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>cmake</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- Build libqhullcpp with PIC -->
|
||||
<Patch>qhull-pic.patch</Patch>
|
||||
<!-- Disable static libraries -->
|
||||
<Patch>qhull-no-static.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>qhull</Name>
|
||||
<Summary>A general dimension code for computing convex hulls and related structures.</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libgcc</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="doc">/usr/share/doc/qhull</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>qhull-devel</Name>
|
||||
<Summary>Development files for qhull</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">qhull</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2020-05-27</Date>
|
||||
<Version>2019.1</Version>
|
||||
<Comment>First pisi release.</Comment>
|
||||
<Name>Blue Devil</Name>
|
||||
<Email>bluedevil@sctzine.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>qhull</Name>
|
||||
<Summary xml:lang="tr">Dışbukey gövdeler ve ilgili yapılar için genel boyutlu algoritmalar.</Summary>
|
||||
<Description xml:lang="tr">qhull, dışbukey gövdeler ve ilgili yapılar için genel boyutlu algoritmalar sunar.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>qhull-devel</Name>
|
||||
<Summary xml:lang="tr">qhull için geliştirme dosyaları</Summary>
|
||||
<Description xml:lang="tr">qhull-devel, qhull için geliştirme dosyalarını içerir.</Description>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user