aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schäfer <gentryx@gmx.de>2014-02-19 00:53:14 +0100
committerAndreas Schäfer <gentryx@gmx.de>2014-02-19 00:53:14 +0100
commit07af85a43a3b677e6fef933d9b58892296757987 (patch)
tree8568bf5e7fdcc525625343ee4796b2b2dcc890e0 /sys-apps
parentrefactored setting of threads use flag for VisIt (diff)
downloadsci-07af85a43a3b677e6fef933d9b58892296757987.tar.gz
sci-07af85a43a3b677e6fef933d9b58892296757987.tar.bz2
sci-07af85a43a3b677e6fef933d9b58892296757987.zip
added ebuild/patches for likwid-3.1.1
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/likwid/Manifest1
-rw-r--r--sys-apps/likwid/files/likwid-3.1.1-paths.patch27
-rw-r--r--sys-apps/likwid/files/likwid-3.1.1-shared_lib.patch12
-rw-r--r--sys-apps/likwid/likwid-3.1.1.ebuild33
4 files changed, 73 insertions, 0 deletions
diff --git a/sys-apps/likwid/Manifest b/sys-apps/likwid/Manifest
index 1abaa7028..4e163abcf 100644
--- a/sys-apps/likwid/Manifest
+++ b/sys-apps/likwid/Manifest
@@ -1 +1,2 @@
DIST likwid-3.0.0.tar.gz 458629 SHA256 968ea55497af9971b20295b5290f355e9b4054bcbcfac91bfeaca8c1f5f1b72e SHA512 4227a91822f7e452b5172b2a203d4e9c04327d7d6139ccdf1e7f2f0dcb372dd7e98c9ac2f9b55c768fc1c9e59973d5afbfd038757247b462b9a02038c78b5ab2 WHIRLPOOL 4e270a931b923e44ff2dad94891f4668ee89d95aed3635e81a3a644c40821bf41fec2c6d1d9199eff7a319b9b7d9fb4f88d2f559b797f808bc830a1ffc67bac1
+DIST likwid-3.1.1.tar.gz 477223 SHA256 03c9696cce9f8845ccbc82d254877121322a6429ba766ddc5aefc100cb1118d3 SHA512 119778e5f12b00524e89711008c43338f5554cd5d135eacf75ad82fd4de4f4de2c059953191ff39548be10d54c387848c6f6cf4f4349723dcf6f9bad5775d0f4 WHIRLPOOL 4db98222ac03dfef349b98bc16725ee3aa8e7982bbfb827df69ca50a132c8c2c32b39ed616f4184b987e2f807106ea6ae2e12fd4c5c31b8c30a5397866b974b5
diff --git a/sys-apps/likwid/files/likwid-3.1.1-paths.patch b/sys-apps/likwid/files/likwid-3.1.1-paths.patch
new file mode 100644
index 000000000..202970e01
--- /dev/null
+++ b/sys-apps/likwid/files/likwid-3.1.1-paths.patch
@@ -0,0 +1,27 @@
+diff -ru likwid-3.1.1/config.mk likwid-3.1.1-nju/config.mk
+--- likwid-3.1.1/config.mk 2014-02-12 17:14:16.000000000 +0100
++++ likwid-3.1.1-nju/config.mk 2014-02-19 00:22:02.530917183 +0100
+@@ -10,12 +10,12 @@
+
+ # Path were to install likwid
+ PREFIX = /usr/local#NO SPACE
+-MANPREFIX = $(PREFIX)/man#NO SPACE
++MANPREFIX = $(PREFIX)/share/man#NO SPACE
+
+ # For the daemon based secure msr/pci access configure
+ # the absolute path to the msr daemon executable.
+ # $(PREFIX)/bin/likwid-accessD
+-ACCESSDAEMON = $(PREFIX)/bin/likwid-accessD#NO SPACE
++ACCESSDAEMON = /usr/bin/likwid-accessD#NO SPACE
+
+ # Build the accessDaemon. Have a look in the WIKI for details.
+ BUILDDAEMON = true#NO SPACE
+@@ -26,7 +26,7 @@
+ ACCESSMODE = accessdaemon#NO SPACE
+
+ # Change to true to a build shared library instead of a static one
+-SHARED_LIBRARY = false#NO SPACE
++SHARED_LIBRARY = true#NO SPACE
+
+ # Build Fortran90 module interface for marker API. Adopt Fortran compiler
+ # in ./make/include_<COMPILER>.mk if necessary. Default: ifort .
diff --git a/sys-apps/likwid/files/likwid-3.1.1-shared_lib.patch b/sys-apps/likwid/files/likwid-3.1.1-shared_lib.patch
new file mode 100644
index 000000000..6499fa221
--- /dev/null
+++ b/sys-apps/likwid/files/likwid-3.1.1-shared_lib.patch
@@ -0,0 +1,12 @@
+diff -ru likwid-3.1.1-nju/Makefile likwid-3.1.1-njv/Makefile
+--- likwid-3.1.1-nju/Makefile 2014-02-19 00:20:55.620918453 +0100
++++ likwid-3.1.1-njv/Makefile 2014-02-19 00:47:28.250888224 +0100
+@@ -184,7 +184,7 @@
+
+ $(APPS): $(addprefix $(SRC_DIR)/applications/,$(addsuffix .c,$(APPS))) $(BUILD_DIR) $(GENGROUPLOCK) $(OBJ) $(OBJ_BENCH)
+ @echo "===> LINKING $@"
+- $(Q)${CC} $(CFLAGS) $(ANSI_CFLAGS) $(CPPFLAGS) ${LFLAGS} -o $@ $(addprefix $(SRC_DIR)/applications/,$(addsuffix .c,$@)) $(OBJ_BENCH) $(STATIC_TARGET_LIB) $(LIBS)
++ $(Q)${CC} $(CFLAGS) $(ANSI_CFLAGS) $(CPPFLAGS) ${LFLAGS} -o $@ $(addprefix $(SRC_DIR)/applications/,$(addsuffix .c,$@)) $(OBJ_BENCH) $(STATIC_TARGET_LIB) $(DYNAMIC_TARGET_LIB) $(LIBS)
+
+ $(STATIC_TARGET_LIB): $(OBJ)
+ @echo "===> CREATE STATIC LIB $(STATIC_TARGET_LIB)"
diff --git a/sys-apps/likwid/likwid-3.1.1.ebuild b/sys-apps/likwid/likwid-3.1.1.ebuild
new file mode 100644
index 000000000..dd1f0b03a
--- /dev/null
+++ b/sys-apps/likwid/likwid-3.1.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Command line tools for developing high performance multi threaded programs"
+HOMEPAGE="http://code.google.com/p/likwid/"
+SRC_URI="http://likwid.googlecode.com/files/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-3"
+KEYWORDS="~amd64"
+IUSE="uncore"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-paths.patch"
+ epatch "${FILESDIR}/${P}-shared_lib.patch"
+ use uncore && epatch "${FILESDIR}/use_uncore.patch"
+ sed -i -e "s:/usr/local:${D}/usr:" config.mk || die "Couldn't set prefix!"
+}
+
+src_compile() {
+ default
+ emake likwid-bench
+}
+
+src_install() {
+ default
+ fperms 4755 /usr/bin/likwid-accessD
+}