summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2019-11-17 14:53:22 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2019-11-17 14:53:22 +0100
commit8809b783d5a9414c7de51ac5ceff915a9713a4d1 (patch)
tree0272b482e0413e82c636f854821278788ede4691 /media-libs/libclthreads
parentmedia-libs/zita-alsa-pcmi-0.3.2: returned back tc-export (diff)
downloadgentoo-8809b783d5a9414c7de51ac5ceff915a9713a4d1.tar.gz
gentoo-8809b783d5a9414c7de51ac5ceff915a9713a4d1.tar.bz2
gentoo-8809b783d5a9414c7de51ac5ceff915a9713a4d1.zip
media-libs/libclthreads-2.4.2: bump
1) updated to eapi 7 + update 2) updated Makefile patch Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-libs/libclthreads')
-rw-r--r--media-libs/libclthreads/Manifest1
-rw-r--r--media-libs/libclthreads/files/libclthreads-2.4.2-Makefile.patch33
-rw-r--r--media-libs/libclthreads/libclthreads-2.4.2.ebuild36
3 files changed, 70 insertions, 0 deletions
diff --git a/media-libs/libclthreads/Manifest b/media-libs/libclthreads/Manifest
index 75cbfd917059..029191ce5cb2 100644
--- a/media-libs/libclthreads/Manifest
+++ b/media-libs/libclthreads/Manifest
@@ -1 +1,2 @@
DIST clthreads-2.4.0.tar.bz2 14796 BLAKE2B 7c79608b8ebe29a8170a355069aa39496f785146a272edfe048e7dc61100302b56789ab5faa0aaad227cbe8b44eb660132f1ba22d34d304e417301d8582d5431 SHA512 c307d9611e0530469b36367f05721e6676d7bb186be97d38b851e66d9f670663ceceedf065823b27ac5864725d52cc2f462fd8d96f1398a202e30d82910ec58b
+DIST clthreads-2.4.2.tar.bz2 14357 BLAKE2B c73696e816431d70737d0481237efbb7a05d274f9fb0728b2bf2ba748a4a0540672af92ab8d35b6ab331c91841185aeb3705f5a75e3446a0c2c3631a8b331421 SHA512 a91de7a287c2cb9b2ce17e4c158db79bbaeccb278510d11e6c05fcbe9295c26b4d0231fa97800b265decd1d0886b7425f7b5d4cbcb18758be540356408e72131
diff --git a/media-libs/libclthreads/files/libclthreads-2.4.2-Makefile.patch b/media-libs/libclthreads/files/libclthreads-2.4.2-Makefile.patch
new file mode 100644
index 000000000000..fa386fff7914
--- /dev/null
+++ b/media-libs/libclthreads/files/libclthreads-2.4.2-Makefile.patch
@@ -0,0 +1,33 @@
+diff --git a/source/Makefile b/source/Makefile
+index f841f3f..206e607 100644
+--- a/source/Makefile
++++ b/source/Makefile
+@@ -32,8 +32,7 @@ VERSION = $(MAJVERS).$(MINVERS)
+
+
+ CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I.
+-CXXFLAGS += -Wall -O2 -fPIC
+-CXXFLAGS += -march=native
++CXXFLAGS += -Wall -fPIC
+ LDLFAGS +=
+ LDLIBS +=
+
+@@ -51,12 +50,12 @@ $(CLTHREADS_MIN): $(CLTHREADS_O)
+
+
+ install: $(CLTHREADS_MIN)
+- install -d $(DESTDIR)$(PREFIX)/$(INCDIR)
+- install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)
+- install -m 644 $(CLTHREADS_H) $(DESTDIR)$(INCDIR)
+- install -m 755 $(CLTHREADS_MIN) $(DESTDIR)$(LIBDIR)
+- ldconfig
+- ln -sf $(CLTHREADS_MIN) $(DESTDIR)$(LIBDIR)/$(CLTHREADS_SO)
++ install -d $(DESTDIR)${PREFIX}/$(INCDIR)
++ install -d $(DESTDIR)${PREFIX}/$(LIBDIR)
++ install -m 644 $(CLTHREADS_H) $(DESTDIR)${PREFIX}/$(INCDIR)
++ install -m 755 $(CLTHREADS_MIN) $(DESTDIR)${PREFIX}/$(LIBDIR)
++ ln -sf $(CLTHREADS_MIN) $(DESTDIR)${PREFIX}/$(LIBDIR)/$(CLTHREADS_SO)
++ ln -sf $(CLTHREADS_MIN) $(DESTDIR)${PREFIX}/$(LIBDIR)/$(CLTHREADS_MAJ)
+
+ uninstall:
+ rm -rf $(DESTDIR)$(INCDIR)/$(CLTHREADS_H)
diff --git a/media-libs/libclthreads/libclthreads-2.4.2.ebuild b/media-libs/libclthreads/libclthreads-2.4.2.ebuild
new file mode 100644
index 000000000000..885e5e9700ea
--- /dev/null
+++ b/media-libs/libclthreads/libclthreads-2.4.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib toolchain-funcs
+
+DESCRIPTION="An audio library by Fons Adriaensen <fons.adriaensen@skynet.be>"
+HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/index.html"
+SRC_URI="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/clthreads-${PV}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+S="${WORKDIR}/clthreads-${PV}"
+
+DOCS=( AUTHORS )
+
+PATCHES=(
+ "${FILESDIR}/${P}-Makefile.patch"
+)
+
+src_compile() {
+ cd "${S}"/source || die "Failed to cd to sources"
+ tc-export CXX
+ emake
+}
+
+src_install() {
+ default
+
+ cd "${S}"/source || die "Failed to cd to sources"
+ emake PREFIX="${EPREFIX}/usr" INCDIR="include" LIBDIR="$(get_libdir)" DESTDIR="${ED}" install || die "make install failed"
+}