2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-12 09:10:54 +01:00
|
|
|
#
|
|
|
|
# libpfm4
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-12 09:10:54 +01:00
|
|
|
|
2019-09-30 19:09:02 +02:00
|
|
|
LIBPFM4_VERSION = 4.10.1
|
2013-03-12 09:10:54 +01:00
|
|
|
LIBPFM4_SOURCE = libpfm-$(LIBPFM4_VERSION).tar.gz
|
|
|
|
LIBPFM4_SITE = http://downloads.sourceforge.net/project/perfmon2/libpfm4
|
|
|
|
LIBPFM4_LICENSE = libpfm4 license
|
|
|
|
LIBPFM4_LICENSE_FILES = COPYING
|
|
|
|
LIBPFM4_INSTALL_STAGING = YES
|
|
|
|
|
2015-08-07 11:40:35 +02:00
|
|
|
LIBPFM4_FLAGS = SYS=Linux ARCH=$(BR2_ARCH) \
|
|
|
|
CC="$(TARGET_CC)" LDCONFIG=true \
|
2015-08-13 22:16:38 +02:00
|
|
|
CONFIG_PFMLIB_SHARED=$(if $(BR2_STATIC_LIBS),n,y) \
|
|
|
|
DBG=
|
2013-03-12 09:10:54 +01:00
|
|
|
|
|
|
|
define LIBPFM4_BUILD_CMDS
|
2016-10-17 18:06:07 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBPFM4_FLAGS)
|
2013-03-12 09:10:54 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBPFM4_INSTALL_STAGING_CMDS
|
2016-10-17 18:06:07 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBPFM4_FLAGS) PREFIX=$(STAGING_DIR)/usr install
|
2013-03-12 09:10:54 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBPFM4_INSTALL_TARGET_CMDS
|
2016-10-17 18:06:07 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBPFM4_FLAGS) PREFIX=$(TARGET_DIR)/usr install
|
2013-03-12 09:10:54 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|