1 ################################################################################
5 ################################################################################
7 LMBENCH_VERSION
= 3.0-a9
8 LMBENCH_SOURCE
= lmbench-
$(LMBENCH_VERSION
).tgz
9 LMBENCH_SITE
= http
://downloads.sourceforge.net
/project
/lmbench
/development
/lmbench-
$(LMBENCH_VERSION
)
10 LMBENCH_LICENSE
= lmbench license
(based on GPLv2
)
11 LMBENCH_LICENSE_FILES
= COPYING COPYING-2
13 LMBENCH_CFLAGS
= $(TARGET_CFLAGS
)
15 ifeq ($(BR2_PACKAGE_LIBTIRPC
),y
)
16 LMBENCH_DEPENDENCIES
+= host-pkgconf libtirpc
17 LMBENCH_CFLAGS
+= `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`
18 LMBENCH_LDLIBS
= `$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`
21 define LMBENCH_CONFIGURE_CMDS
22 $(call CONFIG_UPDATE
,$(@D
))
23 sed
-i
's/CFLAGS=/CFLAGS+=/g' $(@D
)/src
/Makefile
24 sed
-i
's/LDLIBS=/LDLIBS+=/g' $(@D
)/scripts
/build
25 sed
-i
'/cd .*doc/d' $(@D
)/src
/Makefile
26 sed
-i
'/include/d' $(@D
)/src
/Makefile
30 # Note: there is a second stage 'make' invocation from the 'scripts/build'
31 # script. So the variables override below don't take direct effect in
33 define LMBENCH_BUILD_CMDS
34 $(TARGET_MAKE_ENV
) $(MAKE
) CFLAGS
="$(LMBENCH_CFLAGS)" LDLIBS
="$(LMBENCH_LDLIBS)" OS
=$(ARCH
) CC
="$(TARGET_CC)" -C
$(@D
)/src
37 define LMBENCH_INSTALL_TARGET_CMDS
38 $(TARGET_MAKE_ENV
) $(MAKE
) CFLAGS
="$(TARGET_CFLAGS)" OS
=$(ARCH
) CC
="$(TARGET_CC)" BASE
=$(TARGET_DIR
)/usr
-C
$(@D
)/src
install
41 $(eval
$(generic-package
))