aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-01-04 00:30:26 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-01-04 00:35:52 +0100
commitf74df3d899ea1525c84dcf07c5b2de141990ac3e (patch)
tree1eb94f02a5e73683af68b2c76d4d7c8dfb95d12a /testing
parent76c6946ed3114710cc2e173a876ed7124c9f4d69 (diff)
downloadaports-f74df3d899ea1525c84dcf07c5b2de141990ac3e.tar.bz2
aports-f74df3d899ea1525c84dcf07c5b2de141990ac3e.tar.xz
testing/clipper: new aport
https://sourceforge.net/projects/polyclipping/ Polygon, line clipping and offsetting library
Diffstat (limited to 'testing')
-rw-r--r--testing/clipper/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/clipper/APKBUILD b/testing/clipper/APKBUILD
new file mode 100644
index 0000000000..1444332c0b
--- /dev/null
+++ b/testing/clipper/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=clipper
+pkgver=6.4.2
+pkgrel=0
+pkgdesc="Polygon, line clipping and offsetting library"
+options="!check" # No testsuite
+url="https://sourceforge.net/projects/polyclipping/"
+arch="all"
+license="BSL-1.0"
+makedepends="cmake"
+subpackages="$pkgname-dev"
+source="https://sourceforge.net/projects/polyclipping/files/clipper_ver$pkgver.zip"
+builddir="$srcdir/cpp"
+
+prepare() {
+ default_prepare
+ sed -i 's|/share/|/lib/|' CMakeLists.txt
+}
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ ${CMAKE_CROSSOPTS} .
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="ffc88818c44a38aa278d5010db6cfd505796f39664919f1e48c7fa9267563f62135868993e88f7246dcd688241d1172878e4a008a390648acb99738452e3e5dd clipper_ver6.4.2.zip"