xorg-server: not available with musl on ARM
[buildroot-gz.git] / package / libpfm4 / libpfm4.mk
blob913fc35831ec96f9ec13220d5a7db729cc636f28
1 ################################################################################
3 # libpfm4
5 ################################################################################
7 LIBPFM4_VERSION = 4.6.0
8 LIBPFM4_SOURCE = libpfm-$(LIBPFM4_VERSION).tar.gz
9 LIBPFM4_SITE = http://downloads.sourceforge.net/project/perfmon2/libpfm4
10 LIBPFM4_LICENSE = libpfm4 license
11 LIBPFM4_LICENSE_FILES = COPYING
12 LIBPFM4_INSTALL_STAGING = YES
14 LIBPFM4_FLAGS = SYS=Linux ARCH=$(BR2_ARCH) \
15 CC="$(TARGET_CC)" LDCONFIG=true \
16 CONFIG_PFMLIB_SHARED=$(if $(BR2_STATIC_LIBS),n,y) \
17 DBG=
19 define LIBPFM4_BUILD_CMDS
20 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBPFM4_FLAGS)
21 endef
23 define LIBPFM4_INSTALL_STAGING_CMDS
24 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBPFM4_FLAGS) PREFIX=$(STAGING_DIR)/usr install
25 endef
27 define LIBPFM4_INSTALL_TARGET_CMDS
28 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBPFM4_FLAGS) PREFIX=$(TARGET_DIR)/usr install
29 endef
31 $(eval $(generic-package))