Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit fcc68c5

Browse files
committedAug 1, 2016
21143: new style package for qhull
1 parent c4f3c93 commit fcc68c5

File tree

8 files changed

+134
-0
lines changed

8 files changed

+134
-0
lines changed
 

‎build/pkgs/qhull/SPKG.txt

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
= Qhull =
2+
3+
== Description ==
4+
5+
From the README.txt of Qhull:
6+
7+
Qhull computes convex hulls, Delaunay triangulations, Voronoi diagrams,
8+
furthest-site Voronoi diagrams, and halfspace intersections about a point.
9+
It runs in 2-d, 3-d, 4-d, or higher. It implements the Quickhull algorithm
10+
for computing convex hulls. Qhull handles round-off errors from floating
11+
point arithmetic. It can approximate a convex hull.
12+
13+
The program includes options for hull volume, facet area, partial hulls,
14+
input transformations, randomization, tracing, multiple output formats, and
15+
execution statistics.
16+
17+
== Upstream Contact ==
18+
19+
C. Bradford Barber
20+
bradb@shore.net
21+
or qhull@qhull.org
22+
23+
== Dependencies ==
24+
25+
Can be compiled with Qt support, but the Sage version currently doesn't try to do this.
26+
27+
== License ==
28+
29+
Not a standard license, but Sage compatible. See the COPYING.txt file in the
30+
source directory for details.

‎build/pkgs/qhull/checksums.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tarball=qhull-VERSION.tgz
2+
sha1=8188765b9f9f004e38e9906fd2a68e81119f05fb
3+
md5=e6270733a826a6a7c32b796e005ec3dc
4+
cksum=2560098443

‎build/pkgs/qhull/dependencies

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# no dependencies

‎build/pkgs/qhull/package-version.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2015-src-7.2.0
+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
* DESTDIR needs to be Sage install (that would better be fixed by a configure script)
2+
* fix dependencies between target (otherwise compilation fails with "make -j3")
3+
4+
--- a/Makefile
5+
+++ b/Makefile
6+
@@ -77,7 +77,7 @@
7+
# Unix line endings (\n)
8+
# $Id: //main/2015/qhull/Makefile#10 $
9+
10+
-DESTDIR = /usr/local
11+
+DESTDIR = $(SAGE_ROOT)/local
12+
BINDIR = $(DESTDIR)/bin
13+
INCDIR = $(DESTDIR)/include
14+
LIBDIR = $(DESTDIR)/lib
15+
@@ -200,7 +200,7 @@ cleanall: clean
16+
doc:
17+
$(PRINTMAN) $(TXTFILES) $(DOCFILES)
18+
19+
-install:
20+
+install: bin/qconvex bin/qdelaunay bin/qhalf bin/qhull bin/qvoronoi bin/rbox
21+
mkdir -p $(BINDIR)
22+
mkdir -p $(DOCDIR)
23+
mkdir -p $(INCDIR)/libqhull
24+
@@ -240,7 +240,7 @@ printc:
25+
printf:
26+
$(PRINTC) $(FILES)
27+
28+
-qtest:
29+
+qtest: bin/testqset bin/rbox
30+
@echo ============================================
31+
@echo == make qtest ==============================
32+
@echo ============================================
33+
@@ -262,7 +262,7 @@ qtest:
34+
@echo ============================================
35+
-bin/rbox D4 | bin/qhull Tv
36+
37+
-test: qtest
38+
+test: qtest bin/qconvex bin/qdelaunay bin/qhalf bin/qhull bin/qvoronoi bin/rbox
39+
@echo ============================================
40+
@echo == make test ===============================
41+
@echo ============================================
42+
@@ -319,7 +319,7 @@ testall: test
43+
-eg/q_egtest
44+
-eg/q_test
45+
46+
-qconvex-prompt:
47+
+qconvex-prompt: bin/qconvex bin/rbox
48+
bin/qconvex
49+
@echo
50+
@echo ============================================

‎build/pkgs/qhull/spkg-check

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
cd src/
4+
5+
if [ "$SAGE_LOCAL" = "" ]; then
6+
echo "SAGE_LOCAL undefined ... exiting";
7+
echo "Maybe run 'sage -sh'?"
8+
exit 1
9+
fi
10+
11+
$MAKE test
12+
if [ $? -ne 0 ]; then
13+
echo "Error in testing qhull"
14+
exit 1
15+
fi
16+

‎build/pkgs/qhull/spkg-install

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
3+
if [ "$SAGE_LOCAL" = "" ]; then
4+
echo "SAGE_LOCAL undefined ... exiting";
5+
echo "Maybe run 'sage -sh'?"
6+
exit 1
7+
fi
8+
9+
cd src/
10+
11+
# Apply all patches
12+
for patch in ../patches/*.patch; do
13+
echo "Applying $patch"
14+
patch -p1 <"$patch"
15+
if [ $? -ne 0 ]; then
16+
echo >&2 "Error applying '$patch'"
17+
return 1
18+
fi
19+
done
20+
21+
make -j1
22+
if [ $? -ne 0 ]; then
23+
echo "Error building qhull"
24+
exit 1
25+
fi
26+
27+
make -j1 install
28+
if [ $? -ne 0 ]; then
29+
echo "Error installing qhull"
30+
exit 1
31+
fi

‎build/pkgs/qhull/type

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
optional

0 commit comments

Comments
 (0)
This repository has been archived.