1 ################################################################################
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
) \
19 define LIBPFM4_BUILD_CMDS
20 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(LIBPFM4_FLAGS
)
23 define LIBPFM4_INSTALL_STAGING_CMDS
24 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(LIBPFM4_FLAGS
) PREFIX
=$(STAGING_DIR
)/usr
install
27 define LIBPFM4_INSTALL_TARGET_CMDS
28 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(LIBPFM4_FLAGS
) PREFIX
=$(TARGET_DIR
)/usr
install
31 $(eval
$(generic-package
))