2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-11-11 03:51:02 +01:00
|
|
|
#
|
|
|
|
# lmbench
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-20 10:45:47 +01:00
|
|
|
|
|
|
|
LMBENCH_VERSION = 3.0-a9
|
|
|
|
LMBENCH_SOURCE = lmbench-$(LMBENCH_VERSION).tgz
|
2014-07-31 10:46:58 +02:00
|
|
|
LMBENCH_SITE = http://downloads.sourceforge.net/project/lmbench/development/lmbench-$(LMBENCH_VERSION)
|
2017-03-30 15:43:32 +02:00
|
|
|
LMBENCH_LICENSE = lmbench license (based on GPL-2.0)
|
2012-08-06 04:21:20 +02:00
|
|
|
LMBENCH_LICENSE_FILES = COPYING COPYING-2
|
2009-11-11 03:51:02 +01:00
|
|
|
|
2012-11-04 08:34:12 +01:00
|
|
|
LMBENCH_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
2015-02-08 17:55:32 +01:00
|
|
|
LMBENCH_DEPENDENCIES += host-pkgconf libtirpc
|
2015-07-12 16:35:26 +02:00
|
|
|
LMBENCH_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`
|
|
|
|
LMBENCH_LDLIBS = `$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`
|
2012-11-04 08:34:12 +01:00
|
|
|
endif
|
|
|
|
|
2019-05-28 22:34:11 +02:00
|
|
|
LMBENCH_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
|
|
|
|
|
2010-06-08 07:30:26 +02:00
|
|
|
define LMBENCH_CONFIGURE_CMDS
|
|
|
|
sed -i 's/CFLAGS=/CFLAGS+=/g' $(@D)/src/Makefile
|
2015-03-06 11:10:50 +01:00
|
|
|
sed -i 's/LDLIBS=/LDLIBS+=/g' $(@D)/scripts/build
|
2010-06-08 07:30:26 +02:00
|
|
|
sed -i '/cd .*doc/d' $(@D)/src/Makefile
|
|
|
|
sed -i '/include/d' $(@D)/src/Makefile
|
2009-11-11 03:51:02 +01:00
|
|
|
touch $@
|
2010-06-08 07:30:26 +02:00
|
|
|
endef
|
2009-11-11 03:51:02 +01:00
|
|
|
|
2015-03-06 11:10:50 +01:00
|
|
|
# Note: there is a second stage 'make' invocation from the 'scripts/build'
|
|
|
|
# script. So the variables override below don't take direct effect in
|
|
|
|
# src/Makefile.
|
2010-06-08 07:30:26 +02:00
|
|
|
define LMBENCH_BUILD_CMDS
|
2016-10-14 00:13:43 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) CFLAGS="$(LMBENCH_CFLAGS)" LDLIBS="$(LMBENCH_LDLIBS)" OS=$(ARCH) CC="$(TARGET_CC)" -C $(@D)/src
|
2010-06-08 07:30:26 +02:00
|
|
|
endef
|
2009-11-11 03:51:02 +01:00
|
|
|
|
2010-06-08 07:30:26 +02:00
|
|
|
define LMBENCH_INSTALL_TARGET_CMDS
|
2016-10-14 00:13:43 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) CFLAGS="$(TARGET_CFLAGS)" OS=$(ARCH) CC="$(TARGET_CC)" BASE=$(TARGET_DIR)/usr -C $(@D)/src install
|
2010-06-08 07:30:26 +02:00
|
|
|
endef
|
2009-11-11 03:51:02 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|