summaryrefslogtreecommitdiff
path: root/meta/recipes-graphics/glew/glew_2.0.0.bb
diff options
context:
space:
mode:
authorMaxin B. John <maxin.john@intel.com>2016-07-29 16:28:46 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-01 12:11:23 +0100
commit71d66d419358f43e6b044ba64c8ff4a6830b00e4 (patch)
tree55cf78f0832eac90deb1818cea30799f16b79d31 /meta/recipes-graphics/glew/glew_2.0.0.bb
parent6756bdb86a6e52eff0a269d441d76ecc2353a06e (diff)
downloadopenembedded-core-71d66d419358f43e6b044ba64c8ff4a6830b00e4.tar.gz
openembedded-core-71d66d419358f43e6b044ba64c8ff4a6830b00e4.tar.bz2
openembedded-core-71d66d419358f43e6b044ba64c8ff4a6830b00e4.zip
glew: upgrade to 2.0.0
1.13.0 -> 2.0.0 v2: Fix installed-vs-shipped QA error for multilib build Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/glew/glew_2.0.0.bb')
-rw-r--r--meta/recipes-graphics/glew/glew_2.0.0.bb40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-graphics/glew/glew_2.0.0.bb b/meta/recipes-graphics/glew/glew_2.0.0.bb
new file mode 100644
index 0000000000..489dd7c8f7
--- /dev/null
+++ b/meta/recipes-graphics/glew/glew_2.0.0.bb
@@ -0,0 +1,40 @@
+SUMMARY = "OpenGL extension loading library"
+DESCRIPTION = "The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library."
+HOMEPAGE = "http://glew.sourceforge.net/"
+BUGTRACKER = "http://sourceforge.net/tracker/?group_id=67586"
+SECTION = "x11"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2"
+
+DEPENDS = "virtual/libx11 virtual/libgl libglu libxext libxi libxmu"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \
+ file://no-strip.patch"
+
+SRC_URI[md5sum] = "2a2cd7c98f13854d2fcddae0d2b20411"
+SRC_URI[sha256sum] = "c572c30a4e64689c342ba1624130ac98936d7af90c3103f9ce12b8a0c5736764"
+
+UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/glew/files/glew"
+UPSTREAM_CHECK_REGEX = "/glew/(?P<pver>(\d+[\.\-_]*)+)/"
+
+inherit lib_package pkgconfig distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
+
+# Override SYSTEM to avoid calling config.guess, we're cross-compiling. Pass
+# our CFLAGS via POPT as that's the optimisation variable and safely
+# overwritten.
+EXTRA_OEMAKE = "SYSTEM='linux' \
+ CC='${CC}' LD='${CC}' STRIP='' \
+ LDFLAGS.EXTRA='${LDFLAGS}' \
+ POPT='${CFLAGS}' \
+ GLEW_PREFIX='${prefix}' BINDIR='${bindir}' \
+ LIBDIR='${libdir}' INCDIR='${includedir}/GL' PKGDIR='${libdir}/pkgconfig'"
+
+do_compile() {
+ oe_runmake
+}
+
+do_install() {
+ oe_runmake 'DESTDIR=${D}' install.all
+}