From 621cdcf649becf12ac1d15f3ce6d459a098ea7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 8 Apr 2018 12:15:55 +0200 Subject: [PATCH] New package: papi-5.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #12801 Signed-off-by: Jürgen Buchmüller --- common/shlibs | 2 ++ srcpkgs/papi-devel | 1 + srcpkgs/papi/template | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 120000 srcpkgs/papi-devel create mode 100644 srcpkgs/papi/template diff --git a/common/shlibs b/common/shlibs index 1db184a9ded..0baf4fe03d3 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3237,6 +3237,8 @@ libspatialindex_c.so.4 libspatialindex-1.8.5_1 liboctave.so.4 octave-4.2.1_8 liboctinterp.so.4 octave-4.2.1_8 liboctgui.so.2 octave-4.2.1_8 +libpapi.so.5 papi-5.6.0_1 +libpfm.so.4 papi-5.6.0_1 libfifechan.so.0.1.4 fifechan-0.1.4_1 libfifechan_sdl.so.0.1.4 fifechan-0.1.4_1 libfifechan_opengl.so.0.1.4 fifechan-0.1.4_1 diff --git a/srcpkgs/papi-devel b/srcpkgs/papi-devel new file mode 120000 index 00000000000..058ea0258d3 --- /dev/null +++ b/srcpkgs/papi-devel @@ -0,0 +1 @@ +papi \ No newline at end of file diff --git a/srcpkgs/papi/template b/srcpkgs/papi/template new file mode 100644 index 00000000000..297c00f683e --- /dev/null +++ b/srcpkgs/papi/template @@ -0,0 +1,35 @@ +# Template file for 'papi' +pkgname=papi +version=5.6.0 +revision=1 +wrksrc="papi-${version}" +build_wrksrc="src" +build_style=gnu-configure +short_desc="Provides interface for use of performance counter hardware" +maintainer="johannes " +license="BSD" +homepage="http://icl.cs.utk.edu/papi/" +distfiles="http://icl.utk.edu/projects/papi/downloads/papi-${version}.tar.gz" +checksum=49b7293f9ca2d74d6d80bd06b5c4be303663123267b4ac0884cbcae4c914dc47 + +if [ -n "$CROSS_BUILD" ]; then + _ARCH="${XBPS_TARGET_MACHINE%-musl}" + configure_args+=" --with-ffsll --with-tls + --with-walltimer=clock_realtime --with-virtualtimer=cloc_thread_cputime_id + --with-CPU=${_ARCH} --with-arch=${_ARCH}" +fi + +post_install() { + vlicense ../LICENSE.txt +} + +papi-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/pkgconfig + vmove usr/share/man/man3 + } +}