diff options
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/glew/files/autotools.patch | 146 | ||||
-rw-r--r-- | meta/recipes-graphics/glew/glew_1.5.7.bb | 19 |
2 files changed, 165 insertions, 0 deletions
diff --git a/meta/recipes-graphics/glew/files/autotools.patch b/meta/recipes-graphics/glew/files/autotools.patch new file mode 100644 index 0000000000..7fe1d6e087 --- /dev/null +++ b/meta/recipes-graphics/glew/files/autotools.patch | |||
@@ -0,0 +1,146 @@ | |||
1 | Index: glew/Makefile.am | ||
2 | =================================================================== | ||
3 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
4 | +++ glew/Makefile.am 2009-12-02 00:30:23.296641663 +0100 | ||
5 | @@ -0,0 +1,5 @@ | ||
6 | + | ||
7 | +ACLOCAL_AMFLAGS = -I m4 --install | ||
8 | + | ||
9 | +SUBDIRS = include src | ||
10 | + | ||
11 | Index: glew/configure.ac | ||
12 | =================================================================== | ||
13 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
14 | +++ glew/configure.ac 2009-12-02 00:30:23.296641663 +0100 | ||
15 | @@ -0,0 +1,67 @@ | ||
16 | +# -*- Autoconf -*- | ||
17 | +# Process this file with autoconf to produce a configure script. | ||
18 | + | ||
19 | +AC_PREREQ([2.62]) | ||
20 | +AC_INIT([glew], [1.5.7], [BUG-REPORT-ADDRESS]) | ||
21 | +AC_CONFIG_SRCDIR([src/glew.c]) | ||
22 | +AC_CONFIG_HEADERS([config.h]) | ||
23 | +AM_INIT_AUTOMAKE([-Wall -Werror foreign]) | ||
24 | +AC_CONFIG_MACRO_DIR([m4]) | ||
25 | + | ||
26 | +LT_INIT | ||
27 | + | ||
28 | +# Checks for programs. | ||
29 | +AC_PROG_CC | ||
30 | +AC_PROG_INSTALL | ||
31 | +AC_PROG_LN_S | ||
32 | + | ||
33 | +# Checks for libraries. | ||
34 | + | ||
35 | +# Checks for header files. | ||
36 | +AC_CHECK_HEADERS([inttypes.h stddef.h stdint.h stdlib.h string.h]) | ||
37 | + | ||
38 | +# Checks for typedefs, structures, and compiler characteristics. | ||
39 | +AC_TYPE_INT32_T | ||
40 | +AC_TYPE_INT64_T | ||
41 | +AC_TYPE_UINT64_T | ||
42 | +AC_CHECK_TYPES([ptrdiff_t]) | ||
43 | + | ||
44 | +# Checks for library functions. | ||
45 | +AC_FUNC_MALLOC | ||
46 | +AC_CHECK_FUNCS([strtol]) | ||
47 | + | ||
48 | +# Check for pkgconfig libs | ||
49 | + | ||
50 | +PKG_CHECK_MODULES([X11], [x11]) | ||
51 | +AC_SUBST([X11_LIBS]) | ||
52 | +AC_SUBST([X11_CFLAGS]) | ||
53 | + | ||
54 | +PKG_CHECK_MODULES([XMU], [xmu]) | ||
55 | +AC_SUBST([XMU_LIBS]) | ||
56 | +AC_SUBST([XMU_CFLAGS]) | ||
57 | + | ||
58 | +PKG_CHECK_MODULES([XI], [xi]) | ||
59 | +AC_SUBST([XI_LIBS]) | ||
60 | +AC_SUBST([XI_CFLAGS]) | ||
61 | + | ||
62 | +PKG_CHECK_MODULES([XEXT], [xext]) | ||
63 | +AC_SUBST([XEXT_LIBS]) | ||
64 | +AC_SUBST([XEXT_CFLAGS]) | ||
65 | + | ||
66 | +# Check for GLU is enough and imples gl so no doubled -lGL in LDFLAGS | ||
67 | +PKG_CHECK_MODULES([GLU], [glu]) | ||
68 | +AC_SUBST([GLU_LIBS]) | ||
69 | +AC_SUBST([GLU_CFLAGS]) | ||
70 | + | ||
71 | +# ENABLE option for Multiple Rendering Contexts support | ||
72 | +AC_CHECK_ENABLE_GLEWMX | ||
73 | + | ||
74 | +# for now we use the same version as the package, but that should be avoided | ||
75 | +# in the future | ||
76 | + | ||
77 | +AC_SUBST([LIBGLEW_SO_VERSION], [1:5:7]) | ||
78 | + | ||
79 | +AC_CONFIG_FILES([Makefile | ||
80 | + include/Makefile | ||
81 | + src/Makefile]) | ||
82 | +AC_OUTPUT | ||
83 | Index: glew/src/Makefile.am | ||
84 | =================================================================== | ||
85 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
86 | +++ glew/src/Makefile.am 2009-12-02 00:33:48.690786110 +0100 | ||
87 | @@ -0,0 +1,35 @@ | ||
88 | + | ||
89 | +AM_CPPFLAGS = -I$(top_srcdir)/include | ||
90 | + | ||
91 | +if ENABLE_GLEWMX | ||
92 | +AM_CPPFLAGS += -DGLEW_MX | ||
93 | +endif | ||
94 | + | ||
95 | +AM_CFLAGS = @X11_CFLAGS@ \ | ||
96 | + @XMU_CFLAGS@ \ | ||
97 | + @XI_CFLAGS@ \ | ||
98 | + @XEXT_CFLAGS@ \ | ||
99 | + @GLU_CFLAGS@ | ||
100 | + | ||
101 | +lib_LTLIBRARIES = libGLEW.la | ||
102 | + | ||
103 | +libGLEW_la_SOURCES = glew.c | ||
104 | + | ||
105 | +libGLEW_la_LIBADD = @X11_LIBS@ \ | ||
106 | + @XMU_LIBS@ \ | ||
107 | + @XI_LIBS@ \ | ||
108 | + @XEXT_LIBS@ \ | ||
109 | + @GLU_LIBS@ | ||
110 | + | ||
111 | +libGLEW_la_LDFLAGS = -version-number @LIBGLEW_SO_VERSION@ | ||
112 | + | ||
113 | +bin_PROGRAMS = glewinfo visualinfo | ||
114 | + | ||
115 | +glewinfo_SOURCES = glewinfo.c | ||
116 | + | ||
117 | +glewinfo_LDADD = libGLEW.la | ||
118 | + | ||
119 | +visualinfo_SOURCES = visualinfo.c | ||
120 | + | ||
121 | +visualinfo_LDADD = libGLEW.la | ||
122 | + | ||
123 | Index: glew/m4/glewmx.m4 | ||
124 | =================================================================== | ||
125 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
126 | +++ glew/m4/glewmx.m4 2009-12-02 00:30:23.296641663 +0100 | ||
127 | @@ -0,0 +1,11 @@ | ||
128 | + | ||
129 | +AC_DEFUN([AC_CHECK_ENABLE_GLEWMX],[ | ||
130 | +AC_MSG_CHECKING([whether to include Multiple Rendering Contexts support]) | ||
131 | +AC_ARG_ENABLE([glewmx], | ||
132 | + [AS_HELP_STRING([--enable-glewmx], [enable GLEW Multiple Rendering Contexts (default is no)])], | ||
133 | + [ENABLE_GLEWMX="$enableval"], | ||
134 | + [ENABLE_GLEWMX="no"]) | ||
135 | +AC_MSG_RESULT([${ENABLE_GLEWMX}]) | ||
136 | +AM_CONDITIONAL([ENABLE_GLEWMX], [test x"${ENABLE_GLEWMX}" = "xyes"]) | ||
137 | +]) | ||
138 | + | ||
139 | Index: glew/include/Makefile.am | ||
140 | =================================================================== | ||
141 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
142 | +++ glew/include/Makefile.am 2009-12-02 00:30:23.296641663 +0100 | ||
143 | @@ -0,0 +1,3 @@ | ||
144 | + | ||
145 | +nobase_include_HEADERS = GL/glew.h GL/glxew.h GL/wglew.h | ||
146 | + | ||
diff --git a/meta/recipes-graphics/glew/glew_1.5.7.bb b/meta/recipes-graphics/glew/glew_1.5.7.bb new file mode 100644 index 0000000000..e2e6b43f22 --- /dev/null +++ b/meta/recipes-graphics/glew/glew_1.5.7.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | DESCRIPTION = "The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library." | ||
2 | HOMEPAGE = "http://glew.sourceforge.net/" | ||
3 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=67586" | ||
4 | SECTION = "x11" | ||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2" | ||
7 | |||
8 | DEPENDS = "virtual/libx11 virtual/libgl libxext libxi libxmu" | ||
9 | |||
10 | PR = "r0" | ||
11 | |||
12 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \ | ||
13 | file://autotools.patch \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[md5sum] = "f913ce9dbde4cd250b932731b3534ded" | ||
17 | SRC_URI[sha256sum] = "86bd36a163640d6027ec6be5fdd8a6e3b90f02dcf55f95c3c2429ebb58be3107" | ||
18 | |||
19 | inherit autotools lib_package | ||