mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
community/openscenegraph: fix
This commit is contained in:
parent
b489b59587
commit
5da8a041c9
1 changed files with 1 additions and 23 deletions
|
@ -5,7 +5,6 @@
|
|||
# Contributor: Colin Pitrat <colin.pitrat@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - build v5/6/7 for GLES
|
||||
# - upstream patch for signed char
|
||||
|
||||
pkgname=openscenegraph
|
||||
|
@ -38,30 +37,9 @@ build() {
|
|||
cd OpenSceneGraph-OpenSceneGraph-$pkgver
|
||||
# CFLAGS="$CFLAGS -D__STDC_CONSTANT_MACROS"
|
||||
# CXXFLAGS="$CXXFLAGS -D__STDC_CONSTANT_MACROS"
|
||||
|
||||
if [[ $CARCH != "aarch64" ]]; then
|
||||
GLES_ONLY=(
|
||||
-DOSG_GL1_AVAILABLE=OFF
|
||||
-DOSG_GL2_AVAILABLE=OFF
|
||||
-DOSG_GL3_AVAILABLE=OFF
|
||||
-DOSG_GLES1_AVAILABLE=OFF
|
||||
-DOSG_GLES2_AVAILABLE=ON
|
||||
-DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF
|
||||
-DSG_GL_MATRICES_AVAILABLE=OFF
|
||||
-DOSG_GL_VERTEX_FUNCS_AVAILABLE=OFF
|
||||
-DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=OFF
|
||||
-DOSG_GL_FIXED_FUNCTION_AVAILABLE=OFF
|
||||
-DOSG_CPP_EXCEPTIONS_AVAILABLE=OFF
|
||||
-DOPENGL_INCLUDE_DIR=/usr/include
|
||||
-DOPENGL_LIBRARY=/usr/lib/libGLESv2.so
|
||||
-DOPENGL_egl_LIBRARY=/usr/lib/libEGL.so
|
||||
)
|
||||
fi
|
||||
|
||||
[ $NOEXTRACT -eq 1 ] || cmake . \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
${GLES_ONLY[@]}
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
make
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue