aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2011-01-10 17:55:59 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2011-01-10 16:23:34 +0100
commit46b7a6817a08e5f76afca905488a532f0e79e9d0 (patch)
treec63dc817e86710c7169366813a3af6e29373b807
parent1143b63b952afc24d9209e59309eea13617bdad7 (diff)
downloadopenembedded-46b7a6817a08e5f76afca905488a532f0e79e9d0.tar.gz
openembedded-46b7a6817a08e5f76afca905488a532f0e79e9d0.tar.bz2
openembedded-46b7a6817a08e5f76afca905488a532f0e79e9d0.zip
libglew: import 1.5.7 from poky
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--recipes/glew/libglew-1.5.1/autotools.patch (renamed from recipes/glew/files/autotools.patch)0
-rw-r--r--recipes/glew/libglew-1.5.7/autotools.patch146
-rw-r--r--recipes/glew/libglew_1.5.7.bb18
3 files changed, 164 insertions, 0 deletions
diff --git a/recipes/glew/files/autotools.patch b/recipes/glew/libglew-1.5.1/autotools.patch
index fc4df82a15..fc4df82a15 100644
--- a/recipes/glew/files/autotools.patch
+++ b/recipes/glew/libglew-1.5.1/autotools.patch
diff --git a/recipes/glew/libglew-1.5.7/autotools.patch b/recipes/glew/libglew-1.5.7/autotools.patch
new file mode 100644
index 0000000000..7fe1d6e087
--- /dev/null
+++ b/recipes/glew/libglew-1.5.7/autotools.patch
@@ -0,0 +1,146 @@
+Index: glew/Makefile.am
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ glew/Makefile.am 2009-12-02 00:30:23.296641663 +0100
+@@ -0,0 +1,5 @@
++
++ACLOCAL_AMFLAGS = -I m4 --install
++
++SUBDIRS = include src
++
+Index: glew/configure.ac
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ glew/configure.ac 2009-12-02 00:30:23.296641663 +0100
+@@ -0,0 +1,67 @@
++# -*- Autoconf -*-
++# Process this file with autoconf to produce a configure script.
++
++AC_PREREQ([2.62])
++AC_INIT([glew], [1.5.7], [BUG-REPORT-ADDRESS])
++AC_CONFIG_SRCDIR([src/glew.c])
++AC_CONFIG_HEADERS([config.h])
++AM_INIT_AUTOMAKE([-Wall -Werror foreign])
++AC_CONFIG_MACRO_DIR([m4])
++
++LT_INIT
++
++# Checks for programs.
++AC_PROG_CC
++AC_PROG_INSTALL
++AC_PROG_LN_S
++
++# Checks for libraries.
++
++# Checks for header files.
++AC_CHECK_HEADERS([inttypes.h stddef.h stdint.h stdlib.h string.h])
++
++# Checks for typedefs, structures, and compiler characteristics.
++AC_TYPE_INT32_T
++AC_TYPE_INT64_T
++AC_TYPE_UINT64_T
++AC_CHECK_TYPES([ptrdiff_t])
++
++# Checks for library functions.
++AC_FUNC_MALLOC
++AC_CHECK_FUNCS([strtol])
++
++# Check for pkgconfig libs
++
++PKG_CHECK_MODULES([X11], [x11])
++AC_SUBST([X11_LIBS])
++AC_SUBST([X11_CFLAGS])
++
++PKG_CHECK_MODULES([XMU], [xmu])
++AC_SUBST([XMU_LIBS])
++AC_SUBST([XMU_CFLAGS])
++
++PKG_CHECK_MODULES([XI], [xi])
++AC_SUBST([XI_LIBS])
++AC_SUBST([XI_CFLAGS])
++
++PKG_CHECK_MODULES([XEXT], [xext])
++AC_SUBST([XEXT_LIBS])
++AC_SUBST([XEXT_CFLAGS])
++
++# Check for GLU is enough and imples gl so no doubled -lGL in LDFLAGS
++PKG_CHECK_MODULES([GLU], [glu])
++AC_SUBST([GLU_LIBS])
++AC_SUBST([GLU_CFLAGS])
++
++# ENABLE option for Multiple Rendering Contexts support
++AC_CHECK_ENABLE_GLEWMX
++
++# for now we use the same version as the package, but that should be avoided
++# in the future
++
++AC_SUBST([LIBGLEW_SO_VERSION], [1:5:7])
++
++AC_CONFIG_FILES([Makefile
++ include/Makefile
++ src/Makefile])
++AC_OUTPUT
+Index: glew/src/Makefile.am
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ glew/src/Makefile.am 2009-12-02 00:33:48.690786110 +0100
+@@ -0,0 +1,35 @@
++
++AM_CPPFLAGS = -I$(top_srcdir)/include
++
++if ENABLE_GLEWMX
++AM_CPPFLAGS += -DGLEW_MX
++endif
++
++AM_CFLAGS = @X11_CFLAGS@ \
++ @XMU_CFLAGS@ \
++ @XI_CFLAGS@ \
++ @XEXT_CFLAGS@ \
++ @GLU_CFLAGS@
++
++lib_LTLIBRARIES = libGLEW.la
++
++libGLEW_la_SOURCES = glew.c
++
++libGLEW_la_LIBADD = @X11_LIBS@ \
++ @XMU_LIBS@ \
++ @XI_LIBS@ \
++ @XEXT_LIBS@ \
++ @GLU_LIBS@
++
++libGLEW_la_LDFLAGS = -version-number @LIBGLEW_SO_VERSION@
++
++bin_PROGRAMS = glewinfo visualinfo
++
++glewinfo_SOURCES = glewinfo.c
++
++glewinfo_LDADD = libGLEW.la
++
++visualinfo_SOURCES = visualinfo.c
++
++visualinfo_LDADD = libGLEW.la
++
+Index: glew/m4/glewmx.m4
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ glew/m4/glewmx.m4 2009-12-02 00:30:23.296641663 +0100
+@@ -0,0 +1,11 @@
++
++AC_DEFUN([AC_CHECK_ENABLE_GLEWMX],[
++AC_MSG_CHECKING([whether to include Multiple Rendering Contexts support])
++AC_ARG_ENABLE([glewmx],
++ [AS_HELP_STRING([--enable-glewmx], [enable GLEW Multiple Rendering Contexts (default is no)])],
++ [ENABLE_GLEWMX="$enableval"],
++ [ENABLE_GLEWMX="no"])
++AC_MSG_RESULT([${ENABLE_GLEWMX}])
++AM_CONDITIONAL([ENABLE_GLEWMX], [test x"${ENABLE_GLEWMX}" = "xyes"])
++])
++
+Index: glew/include/Makefile.am
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ glew/include/Makefile.am 2009-12-02 00:30:23.296641663 +0100
+@@ -0,0 +1,3 @@
++
++nobase_include_HEADERS = GL/glew.h GL/glxew.h GL/wglew.h
++
diff --git a/recipes/glew/libglew_1.5.7.bb b/recipes/glew/libglew_1.5.7.bb
new file mode 100644
index 0000000000..84a6e5e1ad
--- /dev/null
+++ b/recipes/glew/libglew_1.5.7.bb
@@ -0,0 +1,18 @@
+DESCRIPTION = "The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library."
+HOMEPAGE = "http://glew.sourceforge.net/"
+SECTION = "x11"
+LICENSE = "MIT"
+
+DEPENDS = "virtual/libx11 virtual/libgl libxext libxi libxmu"
+
+PR = "r0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \
+ file://autotools.patch \
+ "
+SRC_URI[md5sum] = "f913ce9dbde4cd250b932731b3534ded"
+SRC_URI[sha256sum] = "86bd36a163640d6027ec6be5fdd8a6e3b90f02dcf55f95c3c2429ebb58be3107"
+
+S = "${WORKDIR}/glew-${PV}"
+
+inherit autotools lib_package