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
|
|
|
|
LMBENCH_SITE = http://downloads.sourceforge.net/project/lmbench/development/lmbench-$(LMBENCH_VERSION)/
|
2012-08-06 04:21:20 +02:00
|
|
|
LMBENCH_LICENSE = lmbench license (based on GPLv2)
|
|
|
|
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)
|
|
|
|
LMBENCH_LDLIBS = $(TARGET_LDFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
|
|
|
LMBENCH_DEPENDENCIES += libtirpc
|
|
|
|
LMBENCH_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
|
|
|
|
LMBENCH_LDFLAGS += -ltirpc
|
|
|
|
endif
|
|
|
|
|
2010-06-08 07:30:26 +02:00
|
|
|
define LMBENCH_CONFIGURE_CMDS
|
2011-08-31 23:35:06 +02:00
|
|
|
$(call CONFIG_UPDATE,$(@D))
|
2010-06-08 07:30:26 +02:00
|
|
|
sed -i 's/CFLAGS=/CFLAGS+=/g' $(@D)/src/Makefile
|
|
|
|
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
|
|
|
|
2010-06-08 07:30:26 +02:00
|
|
|
define LMBENCH_BUILD_CMDS
|
2012-11-04 08:34:12 +01:00
|
|
|
$(MAKE) CFLAGS="$(LMBENCH_CFLAGS)" LDFLAGS="$(LMBENCH_LDFLAGS)" 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
|
2010-07-06 09:27:32 +02:00
|
|
|
$(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
|
|
|
|
2010-06-08 07:30:26 +02:00
|
|
|
define LMBENCH_CLEAN_CMDS
|
|
|
|
$(MAKE) -C $(@D)/src clean
|
|
|
|
endef
|
2009-11-11 03:51:02 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|