depends on BR2_USE_WCHAR # use wchar_t
select BR2_PACKAGE_FREETYPE
select BR2_PACKAGE_LIBFREEIMAGE
- select BR2_PACKAGE_LIBGLU # GL/glu.h
select BR2_PACKAGE_SDL2
select BR2_PACKAGE_SDL2_OPENGL
select BR2_PACKAGE_SDL2_X11 # use wmInfo.info.x11
freetype \
libfreeimage \
libgl \
- libglu \
sdl2 \
xlib_libX11 \
xlib_libXaw \
xlib_libXrandr \
zziplib
+OGRE_CFLAGS = $(TARGET_CFLAGS) -DGLEW_NO_GLU
+OGRE_CXXFLAGS = $(TARGET_CXXFLAGS) -DGLEW_NO_GLU
+
# Unbundle freetype and zziplib.
# Disable java and nvidia cg support.
OGRE_CONF_OPTS = -DOGRE_BUILD_DEPENDENCIES=OFF \
-DOGRE_BUILD_COMPONENT_JAVA=OFF \
-DOGRE_BUILD_PLUGIN_CG=OFF \
- -DOGRE_INSTALL_DOCS=OFF
+ -DOGRE_INSTALL_DOCS=OFF \
+ -DCMAKE_C_FLAGS="$(OGRE_CFLAGS)" \
+ -DCMAKE_CXX_FLAGS="$(OGRE_CXXFLAGS)"
# Enable optional python component if python interpreter is present on the target.
ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
# Uses __atomic_fetch_add_8
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
-OGRE_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
+OGRE_CXXFLAGS += -latomic
endif
$(eval $(cmake-package))