blob: bc1341db7f38f02d57119e3e5eb48b6b003b2af0 (
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
40
41
42
43
44
45
46
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=openscenegraph
pkgver=3.4.0
pkgrel=1
pkgdesc="High performance 3D graphics toolkit"
url="https://openscenegraph.org"
arch="all"
license="Custom"
depends=
depends_dev=
makedepends="$depends_dev cmake mesa-dev jasper-dev curl-dev giflib-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-$pkgver.zip
musl-fixes.patch
"
builddir="$srcdir"/OpenSceneGraph-$pkgver
prepare() {
cd "$builddir"
default_prepare || return 1
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-narrowing" \
|| return 1
}
build() {
cd "$builddir"
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -D -m644 LICENSE.txt "$pkgdir/usr/share/doc/$pkgname/LICENSE"
[ -d "$pkgdir/usr/lib64" ] && mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib" || true
}
md5sums="a5e762c64373a46932e444f6f7332496 OpenSceneGraph-3.4.0.zip
4340415e1e29eb1fea48165626625045 musl-fixes.patch"
sha256sums="5c727d84755da276adf8c4a4a3a8ba9c9570fc4b4969f06f1d2e9f89b1e3040e OpenSceneGraph-3.4.0.zip
ced73f54f03f7ed5204824d7ed4a164dcc8c3f6ffd8ca829af3c5dd158caad2b musl-fixes.patch"
sha512sums="b598a7d68c9e5bf840d7b0a59a334037c3b6efe4d2dce333280b63a8ccef1b9a37cd5ff32b98f18e110ff9cbc48226f588e143cb1d68405edda3c60ab2f3f73a OpenSceneGraph-3.4.0.zip
016b09874bd6ca14cf1dba9274df4fc0413d2d97c3438135ecf6c5726029963f1ff279eb4986afe86173739512799e1e8ee5f7443e30fe1131524405a9d002be musl-fixes.patch"
|