diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-10-27 08:30:33 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-10-27 08:31:21 +0000 |
commit | 5a87f10b5fb5033d6aa837ad068efeb2dfd893ec (patch) | |
tree | 82e26181be3146eb10c95ac0731ced6dfd2a2369 /testing/openscenegraph/APKBUILD | |
parent | 28e5c0b36b00622c73ba03e81c4f0939a6f64395 (diff) | |
download | aports-5a87f10b5fb5033d6aa837ad068efeb2dfd893ec.tar.bz2 aports-5a87f10b5fb5033d6aa837ad068efeb2dfd893ec.tar.xz |
testing/openscenegraph: new aport
High performance 3D graphics toolkit
Diffstat (limited to 'testing/openscenegraph/APKBUILD')
-rw-r--r-- | testing/openscenegraph/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/openscenegraph/APKBUILD b/testing/openscenegraph/APKBUILD new file mode 100644 index 0000000000..fcbab82aec --- /dev/null +++ b/testing/openscenegraph/APKBUILD @@ -0,0 +1,43 @@ +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=openscenegraph +pkgver=3.4.0 +pkgrel=0 +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 || 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" |