mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/openscenegraph: new aport
High performance 3D graphics toolkit
This commit is contained in:
parent
28e5c0b36b
commit
5a87f10b5f
43
testing/openscenegraph/APKBUILD
Normal file
43
testing/openscenegraph/APKBUILD
Normal file
@ -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"
|
||||
22
testing/openscenegraph/musl-fixes.patch
Normal file
22
testing/openscenegraph/musl-fixes.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- a/src/OpenThreads/pthreads/PThread.cpp
|
||||
+++ b/src/OpenThreads/pthreads/PThread.cpp
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <pthread.h>
|
||||
#include <limits.h>
|
||||
|
||||
-#if defined __linux__ || defined __sun || defined __APPLE__ || ANDROID
|
||||
+#if defined __GLIBC__ || defined __sun || defined __APPLE__ || ANDROID
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
--- a/src/osgPlugins/osc/osc/OscHostEndianness.h
|
||||
+++ b/src/osgPlugins/osc/osc/OscHostEndianness.h
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
#else
|
||||
|
||||
- #if defined(__GLIBC__) || defined(__ANDROID__) || defined(__CYGWIN__)
|
||||
+ #if defined(__linux__) || defined(__ANDROID__) || defined(__CYGWIN__)
|
||||
#include <endian.h>
|
||||
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
|
||||
#ifndef __LITTLE_ENDIAN__
|
||||
Loading…
x
Reference in New Issue
Block a user