2019-05-29 17:16:55 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# ogre
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-04-29 00:48:16 +02:00
|
|
|
OGRE_VERSION = v1.12.12
|
|
|
|
OGRE_SITE = https://github.com/OGRECave/ogre
|
|
|
|
OGRE_SITE_METHOD = git
|
|
|
|
OGRE_LICENSE = MIT (main library, DeferredShadingMedia samples), Public Domain (samples and plugins)
|
2019-05-29 17:16:55 +02:00
|
|
|
OGRE_LICENSE_FILES = LICENSE
|
|
|
|
OGRE_INSTALL_STAGING = YES
|
|
|
|
|
2021-04-29 00:48:16 +02:00
|
|
|
# Download with imgui submodule (https://github.com/ocornut/imgui
|
|
|
|
OGRE_GIT_SUBMODULES = YES
|
|
|
|
|
2019-05-29 17:16:55 +02:00
|
|
|
OGRE_DEPENDENCIES = host-pkgconf \
|
|
|
|
freetype \
|
|
|
|
libfreeimage \
|
|
|
|
libgl \
|
2021-04-29 00:48:16 +02:00
|
|
|
pugixml \
|
2019-05-29 17:16:55 +02:00
|
|
|
sdl2 \
|
|
|
|
xlib_libX11 \
|
|
|
|
xlib_libXaw \
|
|
|
|
xlib_libXext \
|
|
|
|
xlib_libXrandr \
|
|
|
|
zziplib
|
|
|
|
|
2020-05-03 19:12:24 +02:00
|
|
|
OGRE_CFLAGS = $(TARGET_CFLAGS) -DGLEW_NO_GLU
|
|
|
|
OGRE_CXXFLAGS = $(TARGET_CXXFLAGS) -DGLEW_NO_GLU
|
|
|
|
|
2019-05-29 17:16:55 +02:00
|
|
|
# Unbundle freetype and zziplib.
|
|
|
|
# Disable java and nvidia cg support.
|
2021-04-29 00:48:16 +02:00
|
|
|
# Disable imgui overlay to avoid extra download from CMake.
|
2019-05-29 17:16:55 +02:00
|
|
|
OGRE_CONF_OPTS = -DOGRE_BUILD_DEPENDENCIES=OFF \
|
2021-12-31 10:00:30 +01:00
|
|
|
-DOGRE_BUILD_COMPONENT_CSHARP=OFF \
|
2019-05-29 17:16:55 +02:00
|
|
|
-DOGRE_BUILD_COMPONENT_JAVA=OFF \
|
|
|
|
-DOGRE_BUILD_PLUGIN_CG=OFF \
|
2021-04-29 00:48:16 +02:00
|
|
|
-DOGRE_BUILD_COMPONENT_OVERLAY_IMGUI=OFF \
|
2020-05-03 19:12:24 +02:00
|
|
|
-DOGRE_INSTALL_DOCS=OFF \
|
|
|
|
-DCMAKE_C_FLAGS="$(OGRE_CFLAGS)" \
|
|
|
|
-DCMAKE_CXX_FLAGS="$(OGRE_CXXFLAGS)"
|
2019-05-29 17:16:55 +02:00
|
|
|
|
|
|
|
# Enable optional python component if python interpreter is present on the target.
|
2022-02-09 17:50:57 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
|
|
OGRE_DEPENDENCIES += host-swig host-python3
|
2019-05-29 17:16:55 +02:00
|
|
|
OGRE_CONF_OPTS += -DOGRE_BUILD_COMPONENT_PYTHON=ON
|
|
|
|
else
|
|
|
|
OGRE_CONF_OPTS += -DOGRE_BUILD_COMPONENT_PYTHON=OFF
|
|
|
|
endif
|
|
|
|
|
2020-02-10 18:41:27 +01:00
|
|
|
# Uses __atomic_fetch_add_8
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
2020-05-03 19:12:24 +02:00
|
|
|
OGRE_CXXFLAGS += -latomic
|
2020-02-10 18:41:27 +01:00
|
|
|
endif
|
|
|
|
|
2019-05-29 17:16:55 +02:00
|
|
|
$(eval $(cmake-package))
|