glew: fix generation of glew.pc needed by mesa-demos

(From OE-Core rev: 0273f31d20f3e3c24e8b309f928595885eb04af2)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Saul Wold 2013-04-21 14:43:10 -07:00 committed by Richard Purdie
parent 7e83fd7bd8
commit d5bc211255
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,44 @@
We maintain the autotools configure.ac and Makefile.am, to correctly
provide the glew.pc, the following patch is needed.
Upstream-Status: Inappropriate
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Index: glew-1.9.0/Makefile.am
===================================================================
--- glew-1.9.0.orig/Makefile.am
+++ glew-1.9.0/Makefile.am
@@ -3,3 +3,5 @@ ACLOCAL_AMFLAGS = -I m4 --install
SUBDIRS = include src
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = glew.pc
Index: glew-1.9.0/configure.ac
===================================================================
--- glew-1.9.0.orig/configure.ac
+++ glew-1.9.0/configure.ac
@@ -66,5 +66,6 @@ AC_SUBST([LIBGLEW_SO_VERSION], [1:5:7])
AC_CONFIG_FILES([Makefile
include/Makefile
- src/Makefile])
+ src/Makefile
+ glew.pc])
AC_OUTPUT
Index: glew-1.9.0/glew.pc.in
===================================================================
--- glew-1.9.0.orig/glew.pc.in
+++ glew-1.9.0/glew.pc.in
@@ -5,6 +5,6 @@ includedir=@includedir@
Name: glew
Description: The OpenGL Extension Wrangler library
-Version: @version@
-Cflags: -I${includedir} @cflags@
-Libs: -L${libdir} -l@libname@
+Version: @VERSION@
+Cflags: -I${includedir} @CFLAGS@
+Libs: -L${libdir} -lGLEW

View File

@ -12,6 +12,7 @@ PR = "r1"
SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \
file://autotools.patch \
file://glew_fix_for_automake-1.12.patch \
file://fix-glew.pc-install.patch \
"
SRC_URI[md5sum] = "69ce911decef6249d24742497e6ad06a"