Added Ubuntu patches for building on armhf.

Thanks: Ubuntu Developers
parent 5073953e
......@@ -19,8 +19,10 @@ Build-Depends: debhelper (>= 7.0.50),
libgdal-dev,
libx11-dev,
libxmu-dev,
freeglut3-dev,
libgl1-mesa-dev | libgl-dev,
freeglut3-dev [!armhf],
libgl1-mesa-dev [!armhf] | libgl-dev [!armhf],
libegl1-mesa-dev [armhf],
libgles2-mesa-dev [armhf],
libxine2-dev,
libavcodec-dev,
libswscale-dev,
......@@ -42,7 +44,8 @@ Section: libdevel
Architecture: any
Depends: ${misc:Depends},
libopenthreads-dev,
libgl1-mesa-dev | libgl-dev,
libgl1-mesa-dev [!armhf] | libgl-dev [!armhf],
libgles2-mesa-dev [armhf],
libglu-dev,
libopenscenegraph-3.4-130 (= ${binary:Version})
Suggests: openscenegraph-doc,
......
......@@ -64,6 +64,24 @@ CXXFLAGS := ${CXXFLAGS} ${ARCH_CXX_FLAGS}
LDFLAGS += -Wl,--as-needed
ifeq (armhf,$(DEB_HOST_ARCH))
EGL_LDFLAGS=$(shell pkg-config egl --libs)
OPENGLES_LDFLAGS=$(shell pkg-config glesv2 --libs)
ARMHF_DEFINES=-D OSG_GL1_AVAILABLE:BOOL=OFF \
-D OSG_GL2_AVAILABLE:BOOL=OFF \
-D OSG_GL3_AVAILABLE:BOOL=OFF \
-D OSG_GLES1_AVAILABLE:BOOL=OFF \
-D OSG_GLES2_AVAILABLE:BOOL=ON \
-D OSG_GL_DISPLAYLISTS_AVAILABLE:BOOL=OFF \
-D OSG_GL_MATRICES_AVAILABLE:BOOL=OFF \
-D OSG_GL_VERTEX_FUNCS_AVAILABLE:BOOL=OFF \
-D OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE:BOOL=OFF \
-D OSG_GL_FIXED_FUNCTION_AVAILABLE:BOOL=OFF \
-D OSG_CPP_EXCEPTIONS_AVAILABLE:BOOL=OFF \
-D OPENGL_gl_LIBRARY:STRING="${OPENGLES_LDFLAGS}" \
-D OPENGL_egl_LIBRARY:STRING="${EGL_LDFLAGS}"
endif
#
# Shared libraries version numbers
#
......@@ -433,6 +451,7 @@ build-stamp:
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
-D CMAKE_RELWITHDEBINFO_POSTFIX="" \
-D OSG_USE_LOCAL_LUA_SOURCE:BOOL=OFF \
${ARMHF_DEFINES} \
../..
${MAKE} ${PARALLEL_OPTIONS} VERBOSE=1 -C build/osg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment