Initial Commit
- initial default booting image
This commit is contained in:
43
package/ogre/Config.in
Normal file
43
package/ogre/Config.in
Normal file
@@ -0,0 +1,43 @@
|
||||
config BR2_PACKAGE_OGRE
|
||||
bool "ogre"
|
||||
depends on BR2_PACKAGE_HAS_LIBGL # libglu
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_USE_WCHAR # use wchar_t
|
||||
select BR2_PACKAGE_FREETYPE
|
||||
select BR2_PACKAGE_PUGIXML
|
||||
select BR2_PACKAGE_SDL2
|
||||
select BR2_PACKAGE_SDL2_OPENGL
|
||||
select BR2_PACKAGE_SDL2_X11 # use wmInfo.info.x11
|
||||
select BR2_PACKAGE_XLIB_LIBX11
|
||||
select BR2_PACKAGE_XLIB_LIBXAW
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT
|
||||
select BR2_PACKAGE_XLIB_LIBXRANDR
|
||||
select BR2_PACKAGE_ZZIPLIB
|
||||
help
|
||||
OGRE is a scene-oriented, flexible 3D engine written in C++
|
||||
designed to make it easier and more intuitive for developers
|
||||
to produce games and demos utilising 3D hardware. The class
|
||||
library abstracts all the details of using the underlying
|
||||
system libraries like Direct3D and OpenGL and provides an
|
||||
interface based on world objects and other intuitive classes.
|
||||
|
||||
https://ogrecave.github.io/ogre
|
||||
|
||||
comment "ogre needs X11 and an OpenGL provider"
|
||||
depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS && BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
|
||||
&& BR2_INSTALL_LIBSTDCPP && !BR2_STATIC_LIBS && BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_arc
|
||||
|
||||
comment "ogre needs a toolchain w/ C++, dynamic library, gcc >= 4.8, threads, wchar"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
|
||||
|| BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| !BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_arc
|
||||
3
package/ogre/ogre.hash
Normal file
3
package/ogre/ogre.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# sha256 locally computed
|
||||
sha256 ed3b48a3305ef53e21dac72f7a3abf07503510c93dc091f69baed3cefd9c0efc ogre-v14.4.1-git4.tar.gz
|
||||
sha256 82758e8d1d72139904b9b7472ef0f6544413d2871b58540307fdcc20e473e5f8 LICENSE
|
||||
59
package/ogre/ogre.mk
Normal file
59
package/ogre/ogre.mk
Normal file
@@ -0,0 +1,59 @@
|
||||
################################################################################
|
||||
#
|
||||
# ogre
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OGRE_VERSION_UPSTREAM = 14.4.1
|
||||
OGRE_VERSION = v$(OGRE_VERSION_UPSTREAM)
|
||||
OGRE_SITE = https://github.com/OGRECave/ogre
|
||||
OGRE_SITE_METHOD = git
|
||||
OGRE_LICENSE = MIT (main library, DeferredShadingMedia samples), Public Domain (samples and plugins)
|
||||
OGRE_LICENSE_FILES = LICENSE
|
||||
OGRE_INSTALL_STAGING = YES
|
||||
OGRE_CPE_ID_VENDOR = ogre3d
|
||||
OGRE_CPE_ID_VERSION = $(OGRE_VERSION_UPSTREAM)
|
||||
|
||||
# Download with imgui submodule (https://github.com/ocornut/imgui
|
||||
OGRE_GIT_SUBMODULES = YES
|
||||
|
||||
OGRE_DEPENDENCIES = host-pkgconf \
|
||||
freetype \
|
||||
libgl \
|
||||
pugixml \
|
||||
sdl2 \
|
||||
xlib_libX11 \
|
||||
xlib_libXaw \
|
||||
xlib_libXext \
|
||||
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.
|
||||
# Disable imgui overlay to avoid extra download from CMake.
|
||||
OGRE_CONF_OPTS = -DOGRE_BUILD_DEPENDENCIES=OFF \
|
||||
-DOGRE_BUILD_COMPONENT_CSHARP=OFF \
|
||||
-DOGRE_BUILD_COMPONENT_JAVA=OFF \
|
||||
-DOGRE_BUILD_PLUGIN_CG=OFF \
|
||||
-DOGRE_BUILD_COMPONENT_OVERLAY_IMGUI=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_PYTHON3),y)
|
||||
OGRE_DEPENDENCIES += host-swig host-python3
|
||||
OGRE_CONF_OPTS += -DOGRE_BUILD_COMPONENT_PYTHON=ON
|
||||
else
|
||||
OGRE_CONF_OPTS += -DOGRE_BUILD_COMPONENT_PYTHON=OFF
|
||||
endif
|
||||
|
||||
# Uses __atomic_fetch_add_8
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
OGRE_CXXFLAGS += -latomic
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user