libpfm4: new package
authorThomas De Schampheleire <patrickdepinguin+buildroot@gmail.com>
Tue, 12 Mar 2013 08:10:54 +0000 (08:10 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 18 Mar 2013 21:13:46 +0000 (22:13 +0100)
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/libpfm4/Config.in [new file with mode: 0644]
package/libpfm4/libpfm4.mk [new file with mode: 0644]

index 167eb5b0346b137dd437930b34299f8e5746f82e..777e06b60d800515e7437c7f4b97817d4f237ce1 100644 (file)
@@ -561,6 +561,7 @@ source "package/gsl/Config.in"
 source "package/libglib2/Config.in"
 source "package/libical/Config.in"
 source "package/libnspr/Config.in"
+source "package/libpfm4/Config.in"
 source "package/libsigc/Config.in"
 source "package/libtasn1/Config.in"
 source "package/libtpl/Config.in"
diff --git a/package/libpfm4/Config.in b/package/libpfm4/Config.in
new file mode 100644 (file)
index 0000000..6b491a4
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBPFM4
+       bool "libpfm4"
+       help
+         A helper library to help encode Performance Events to use with
+         Operating system kernels performance monitoring interfaces.
+
+         http://perfmon2.sourceforge.net/
diff --git a/package/libpfm4/libpfm4.mk b/package/libpfm4/libpfm4.mk
new file mode 100644 (file)
index 0000000..8689bbe
--- /dev/null
@@ -0,0 +1,28 @@
+#############################################################
+#
+# libpfm4
+#
+#############################################################
+
+LIBPFM4_VERSION = 4.3.0
+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
+
+LIBPFM4_FLAGS = SYS=Linux ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" LDCONFIG=true
+
+define LIBPFM4_BUILD_CMDS
+       $(MAKE) -C $(@D) $(LIBPFM4_FLAGS)
+endef
+
+define LIBPFM4_INSTALL_STAGING_CMDS
+       make -C $(@D) $(LIBPFM4_FLAGS) PREFIX=$(STAGING_DIR)/usr install
+endef
+
+define LIBPFM4_INSTALL_TARGET_CMDS
+       make -C $(@D) $(LIBPFM4_FLAGS) PREFIX=$(TARGET_DIR)/usr install
+endef
+
+$(eval $(generic-package))