libglu: new package
authorBernd Kuhls <bernd.kuhls@t-online.de>
Thu, 17 Jul 2014 05:42:58 +0000 (07:42 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 19 Jul 2014 17:17:39 +0000 (19:17 +0200)
This package is needed for OpenGL support in xbmc:
https://github.com/xbmc/xbmc/blob/Gotham/configure.in#L1070

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/libglu/Config.in [new file with mode: 0644]
package/libglu/libglu.mk [new file with mode: 0644]

index 5886cfacbce9af01ba0593d53439d0e3abe3ac92..c1de39c16e5330396794a6a0269da2bb5c6c4988 100644 (file)
@@ -618,6 +618,7 @@ menu "Graphics"
        source "package/libgail/Config.in"
        source "package/libgeotiff/Config.in"
        source "package/libglade/Config.in"
+       source "package/libglu/Config.in"
        source "package/libgtk2/Config.in"
        source "package/libpng/Config.in"
        source "package/libqrencode/Config.in"
diff --git a/package/libglu/Config.in b/package/libglu/Config.in
new file mode 100644 (file)
index 0000000..de8e1ef
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_LIBGLU
+       bool "libglu"
+       depends on BR2_PACKAGE_HAS_LIBGL
+       help
+         Mesa OpenGL Utility library
+
+         http://cgit.freedesktop.org/mesa/glu/
+
+comment "libglu needs an OpenGL backend"
+       depends on !BR2_PACKAGE_HAS_LIBGL
diff --git a/package/libglu/libglu.mk b/package/libglu/libglu.mk
new file mode 100644 (file)
index 0000000..038d281
--- /dev/null
@@ -0,0 +1,17 @@
+################################################################################
+#
+# libglu
+#
+################################################################################
+
+LIBGLU_VERSION = 9.0.0
+LIBGLU_SITE = http://cgit.freedesktop.org/mesa/glu/snapshot
+LIBGLU_SOURCE = glu-$(LIBGLU_VERSION).tar.gz
+LIBGLU_LICENSE = SGI-B-2.0
+LIBGLU_LICENSE_FILES = include/GL/glu.h
+LIBGLU_INSTALL_STAGING = YES
+# upstream does not distribute a autoconf´ed configure script
+LIBGLU_AUTORECONF = YES
+LIBGLU_DEPENDENCIES = libgl
+
+$(eval $(autotools-package))