Move buildroot to bsp directory.
This commit is contained in:
19
bsp/buildroot/package/libglew/Config.in
Normal file
19
bsp/buildroot/package/libglew/Config.in
Normal file
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_LIBGLEW
|
||||
bool "libglew"
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on BR2_PACKAGE_HAS_LIBGL
|
||||
select BR2_PACKAGE_XLIB_LIBX11
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT
|
||||
select BR2_PACKAGE_XLIB_LIBXI
|
||||
select BR2_PACKAGE_XLIB_LIBXMU
|
||||
help
|
||||
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform C/C++
|
||||
extension loading library. GLEW provides efficient run-time mechanisms
|
||||
for determining which OpenGL extensions are supported on the target
|
||||
platform. OpenGL core and extension functionality is exposed in a
|
||||
single header file.
|
||||
|
||||
http://glew.sourceforge.net
|
||||
|
||||
comment "libglew depends on X.org and needs an OpenGL backend"
|
||||
depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_HAS_LIBGL
|
||||
2
bsp/buildroot/package/libglew/libglew.hash
Normal file
2
bsp/buildroot/package/libglew/libglew.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 aa25dc48ed84b0b64b8d41cdd42c8f40f149c37fa2ffa39cd97f42c78d128bc7 glew-1.13.0.tgz
|
||||
36
bsp/buildroot/package/libglew/libglew.mk
Normal file
36
bsp/buildroot/package/libglew/libglew.mk
Normal file
@@ -0,0 +1,36 @@
|
||||
################################################################################
|
||||
#
|
||||
# libglew
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGLEW_VERSION = 1.13.0
|
||||
LIBGLEW_SOURCE = glew-$(LIBGLEW_VERSION).tgz
|
||||
LIBGLEW_SITE = http://sourceforge.net/projects/glew/files/glew/$(LIBGLEW_VERSION)
|
||||
LIBGLEW_LICENSE = BSD-3c, MIT
|
||||
LIBGLEW_LICENSE_FILES = LICENSE.txt
|
||||
LIBGLEW_INSTALL_STAGING = YES
|
||||
LIBGLEW_DEPENDENCIES = libgl xlib_libX11 xlib_libXext xlib_libXi xlib_libXmu
|
||||
|
||||
# using $TARGET_CONFIGURE_OPTS breaks compilation
|
||||
define LIBGLEW_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
GLEW_DEST="/usr" LIBDIR="/usr/lib" \
|
||||
AR="$(TARGET_AR)" CC="$(TARGET_CC)" \
|
||||
LD="$(TARGET_CC)" STRIP="$(TARGET_STRIP)" \
|
||||
POPT="$(TARGET_CFLAGS)" LDFLAGS.EXTRA="$(TARGET_LDFLAGS)"
|
||||
endef
|
||||
|
||||
define LIBGLEW_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
GLEW_DEST="$(STAGING_DIR)/usr" LIBDIR="$(STAGING_DIR)/usr/lib" \
|
||||
$(TARGET_CONFIGURE_OPTS) install
|
||||
endef
|
||||
|
||||
define LIBGLEW_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
GLEW_DEST="$(TARGET_DIR)/usr" LIBDIR="$(TARGET_DIR)/usr/lib" \
|
||||
$(TARGET_CONFIGURE_OPTS) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user