Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | SUMMARY = "OpenGL extension loading library" |
| 2 | DESCRIPTION = "The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library." |
| 3 | HOMEPAGE = "http://glew.sourceforge.net/" |
| 4 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=67586" |
| 5 | SECTION = "x11" |
| 6 | LICENSE = "MIT" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ac251558de685c6b9478d89be3149c2" |
| 8 | |
| 9 | DEPENDS = "virtual/libx11 virtual/libgl libglu libxext libxi libxmu" |
| 10 | |
| 11 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/glew/glew/${PV}/glew-${PV}.tgz \ |
| 12 | file://no-strip.patch" |
| 13 | |
| 14 | SRC_URI[md5sum] = "7cbada3166d2aadfc4169c4283701066" |
| 15 | SRC_URI[sha256sum] = "aa25dc48ed84b0b64b8d41cdd42c8f40f149c37fa2ffa39cd97f42c78d128bc7" |
| 16 | |
| 17 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/glew/files/glew" |
| 18 | UPSTREAM_CHECK_REGEX = "/glew/(?P<pver>(\d+[\.\-_]*)+)/" |
| 19 | |
| 20 | inherit lib_package pkgconfig distro_features_check |
| 21 | |
| 22 | REQUIRED_DISTRO_FEATURES = "x11" |
| 23 | |
| 24 | # Override SYSTEM to avoid calling config.guess, we're cross-compiling. Pass |
| 25 | # our CFLAGS via POPT as that's the optimisation variable and safely |
| 26 | # overwritten. |
| 27 | EXTRA_OEMAKE = "SYSTEM='linux' \ |
| 28 | CC='${CC}' LD='${CC}' STRIP='' \ |
| 29 | LDFLAGS.EXTRA='${LDFLAGS}' \ |
| 30 | POPT='${CFLAGS}' \ |
| 31 | GLEW_PREFIX='${prefix}' BINDIR='${bindir}' \ |
| 32 | LIBDIR='${libdir}' INCDIR='${includedir}/GL'" |
| 33 | |
| 34 | do_compile() { |
| 35 | oe_runmake |
| 36 | } |
| 37 | |
| 38 | do_install() { |
| 39 | oe_runmake 'DESTDIR=${D}' install.all |
| 40 | } |