package/libfreeglut: new package
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
57c489ce5a
commit
067a65755b
@ -834,6 +834,7 @@ menu "Graphics"
|
||||
source "package/libevas-generic-loaders/Config.in"
|
||||
source "package/libfm/Config.in"
|
||||
source "package/libfm-extra/Config.in"
|
||||
source "package/libfreeglut/Config.in"
|
||||
source "package/libfreeimage/Config.in"
|
||||
source "package/libgail/Config.in"
|
||||
source "package/libgeotiff/Config.in"
|
||||
|
20
package/libfreeglut/Config.in
Normal file
20
package/libfreeglut/Config.in
Normal file
@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_LIBFREEGLUT
|
||||
bool "libfreeglut"
|
||||
select BR2_PACKAGE_LIBGLU
|
||||
select BR2_PACKAGE_XLIB_LIBXI
|
||||
select BR2_PACKAGE_XLIB_LIBXRANDR
|
||||
select BR2_PACKAGE_XLIB_LIBXXF86VM
|
||||
depends on BR2_PACKAGE_HAS_LIBGL
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
help
|
||||
FreeGLUT is a free-software/open-source alternative to the
|
||||
OpenGL Utility Toolkit (GLUT) library. GLUT (and hence
|
||||
FreeGLUT) takes care of all the system-specific chores required
|
||||
for creating windows, initializing OpenGL contexts, and
|
||||
handling input events, to allow for trully portable OpenGL
|
||||
programs.
|
||||
|
||||
http://freeglut.sourceforge.net
|
||||
|
||||
comment "libfreeglut depends on X.org and needs an OpenGL backend"
|
||||
depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_HAS_LIBGL
|
2
package/libfreeglut/libfreeglut.hash
Normal file
2
package/libfreeglut/libfreeglut.hash
Normal file
@ -0,0 +1,2 @@
|
||||
# From http://sourceforge.net/projects/freeglut/files/freeglut/3.0.0/
|
||||
sha1 fca52242f9344627a30f11487ee42002e6b0dacd freeglut-3.0.0.tar.gz
|
33
package/libfreeglut/libfreeglut.mk
Normal file
33
package/libfreeglut/libfreeglut.mk
Normal file
@ -0,0 +1,33 @@
|
||||
################################################################################
|
||||
#
|
||||
# libfreeglut
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBFREEGLUT_VERSION = 3.0.0
|
||||
LIBFREEGLUT_SOURCE = freeglut-$(LIBFREEGLUT_VERSION).tar.gz
|
||||
LIBFREEGLUT_SITE = http://downloads.sourceforge.net/freeglut
|
||||
LIBFREEGLUT_LICENSE = MIT
|
||||
LIBFREEGLUT_LICENSE_FILES = COPYING
|
||||
LIBFREEGLUT_INSTALL_STAGING = YES
|
||||
LIBFREEGLUT_DEPENDENCIES = \
|
||||
libgl \
|
||||
libglu \
|
||||
xlib_libXi \
|
||||
xlib_libXrandr \
|
||||
xlib_libXxf86vm
|
||||
|
||||
LIBFREEGLUT_CONF_OPTS = -DFREEGLUT_BUILD_DEMOS=OFF
|
||||
|
||||
# package depends on X.org which depends on !BR2_STATIC_LIBS
|
||||
ifeq ($(BR2_SHARED_LIBS),y)
|
||||
LIBFREEGLUT_CONF_OPTS += \
|
||||
-DFREEGLUT_BUILD_SHARED_LIBS=ON \
|
||||
-DFREEGLUT_BUILD_STATIC_LIBS=OFF
|
||||
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
LIBFREEGLUT_CONF_OPTS += \
|
||||
-DFREEGLUT_BUILD_SHARED_LIBS=ON \
|
||||
-DFREEGLUT_BUILD_STATIC_LIBS=ON
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
Loading…
Reference in New Issue
Block a user