blob: 8a840678ba50c6d191f03d776e8b6a3fa0a701d0 (
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
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=openscenegraph
pkgver=3.4.1
pkgrel=3
pkgdesc="High performance 3D graphics toolkit"
url="https://openscenegraph.org"
arch="all"
license="Custom wxWindows-3 LGPL-2.1"
makedepends="$depends_dev cmake mesa-dev jasper-dev curl-dev giflib-dev zlib-dev
freetype-dev jpeg-dev tiff-dev sdl-dev sdl2-dev libxml2-dev gdal-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-$pkgver.tar.gz
musl-fixes.patch
add-missing-include-for-ppc64le.patch
"
builddir="$srcdir"/OpenSceneGraph-OpenSceneGraph-$pkgver
prepare() {
default_prepare
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-narrowing"
}
build() {
cd "$builddir"
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -D -m644 LICENSE.txt "$pkgdir/usr/share/doc/$pkgname/LICENSE"
[ -d "$pkgdir/usr/lib64" ] && mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib" || true
}
sha512sums="4a65625e208d24256b5564bbe9d6f557758b51fae0acf85d1f71968a237fec299088536830fc862d25e02039de9ea13176b298a68aaa644eac958acbe1f4e143 OpenSceneGraph-3.4.1.tar.gz
016b09874bd6ca14cf1dba9274df4fc0413d2d97c3438135ecf6c5726029963f1ff279eb4986afe86173739512799e1e8ee5f7443e30fe1131524405a9d002be musl-fixes.patch
a3e69609b2e3c51002f4babd1c5bd64fc9c32b14fc9232f4b4f345c6e96134bc80a0fe54ce3445059b4d0512d5ac1ec434101fe976b71f24c68b3569265e21d9 add-missing-include-for-ppc64le.patch"
|