blob: 1444332c0bdfcf54e6c7bf222bb31b6959686244 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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"
|