aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
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"