community/openscenegraph: fix

This commit is contained in:
Kevin Mihelich 2017-09-04 21:49:45 +00:00
parent b489b59587
commit 5da8a041c9

View file

@ -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
}