package/glmark2: make it a waf-package
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Cc: Spenser Gilliland <spenser@gillilanding.com> Reviewed-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
8d8cdf1492
commit
680d6177d0
@ -8,7 +8,7 @@ GLMARK2_VERSION = fa71af2dfab711fac87b9504b6fc9862f44bf72a
|
||||
GLMARK2_SITE = $(call github,glmark2,glmark2,$(GLMARK2_VERSION))
|
||||
GLMARK2_LICENSE = GPLv3+ SGIv1
|
||||
GLMARK2_LICENSE_FILES = COPYING COPYING.SGI
|
||||
GLMARK2_DEPENDENCIES = host-pkgconf host-python jpeg libpng \
|
||||
GLMARK2_DEPENDENCIES = host-pkgconf jpeg libpng \
|
||||
$(if $(BR2_PACKAGE_HAS_LIBEGL),libegl) \
|
||||
$(if $(BR2_PACKAGE_HAS_LIBGLES),libgles) \
|
||||
$(if $(BR2_PACKAGE_HAS_LIBGL),libgl)
|
||||
@ -45,20 +45,4 @@ GLMARK2_CONF_OPTS += \
|
||||
--prefix=/usr \
|
||||
--with-flavors=$(subst $(space),$(comma),$(GLMARK2_FLAVORS))
|
||||
|
||||
define GLMARK2_CONFIGURE_CMDS
|
||||
(cd $(@D); \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(GLMARK2_CONF_ENV) \
|
||||
$(HOST_DIR)/usr/bin/python2 ./waf configure $(GLMARK2_CONF_OPTS) \
|
||||
)
|
||||
endef
|
||||
|
||||
define GLMARK2_BUILD_CMDS
|
||||
cd $(@D) && $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/python2 ./waf
|
||||
endef
|
||||
|
||||
define GLMARK2_INSTALL_TARGET_CMDS
|
||||
cd $(@D) && $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/python2 ./waf install --destdir=$(TARGET_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(waf-package))
|
||||
|
Loading…
Reference in New Issue
Block a user