diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-11-18 10:15:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-11-18 10:15:03 +0000 |
commit | b284a3168fa91a038925d2ecf5e4791011ea5e7d (patch) | |
tree | 16fe44748708acacd909d4e2e160a09a7f6d936a /media-libs/libclthreads | |
parent | 77398e424e45d9e98c1cef3c43bdadb9d56e81ef (diff) |
gentoo resync : 18.11.2019
Diffstat (limited to 'media-libs/libclthreads')
-rw-r--r-- | media-libs/libclthreads/Manifest | 3 | ||||
-rw-r--r-- | media-libs/libclthreads/files/libclthreads-2.4.2-Makefile.patch | 33 | ||||
-rw-r--r-- | media-libs/libclthreads/libclthreads-2.4.2.ebuild | 36 |
3 files changed, 72 insertions, 0 deletions
diff --git a/media-libs/libclthreads/Manifest b/media-libs/libclthreads/Manifest index 0c93ac36955e..6ac7704409c2 100644 --- a/media-libs/libclthreads/Manifest +++ b/media-libs/libclthreads/Manifest @@ -1,4 +1,7 @@ AUX libclthreads-2.4.0-Makefile.patch 1589 BLAKE2B 13640b1e9a449e87277c5a89fd1df71b8cda59976b0db0d8102593c84880131ff82002f64f1157838d7297b01cd4ffd66665712d503706131c91f330bd945d86 SHA512 3b58b701d46027d5c1fe7c540b100e1a62059db3d1c3b4c2201ab2e02557de5393a3b1eace0656fab4ea14089a35752e5676f1a52a2a3ed7c60f5fea89abae75 +AUX libclthreads-2.4.2-Makefile.patch 1130 BLAKE2B 485f02a464a367fb32ff6b888beaa7cf293d295ca8ae4b7f8f36b540c1dafba6f2ba09dcead778bac4a69931c63eb4191341399e5042b00518c7422009786444 SHA512 a8a72ee6cb0eea6c37ecd517ad1398255e2c4c107f2d5f22e08cc9fb8b7de01198f8dfe0938024ed6053244bc1968ff369a970d908ac00ba57c10751b3b2e968 DIST clthreads-2.4.0.tar.bz2 14796 BLAKE2B 7c79608b8ebe29a8170a355069aa39496f785146a272edfe048e7dc61100302b56789ab5faa0aaad227cbe8b44eb660132f1ba22d34d304e417301d8582d5431 SHA512 c307d9611e0530469b36367f05721e6676d7bb186be97d38b851e66d9f670663ceceedf065823b27ac5864725d52cc2f462fd8d96f1398a202e30d82910ec58b +DIST clthreads-2.4.2.tar.bz2 14357 BLAKE2B c73696e816431d70737d0481237efbb7a05d274f9fb0728b2bf2ba748a4a0540672af92ab8d35b6ab331c91841185aeb3705f5a75e3446a0c2c3631a8b331421 SHA512 a91de7a287c2cb9b2ce17e4c158db79bbaeccb278510d11e6c05fcbe9295c26b4d0231fa97800b265decd1d0886b7425f7b5d4cbcb18758be540356408e72131 EBUILD libclthreads-2.4.0-r1.ebuild 739 BLAKE2B 8eb9711168dc0f54f2a662aad9f1595950e4c554fe016550532490dafadc2c137e67d1518e6346653df4e0f73aacb04a714022861f363023d164f688738ec807 SHA512 41cfe771ca41c61052cef3205a68864fd96e1ae93da38f22a30d72e0f1064fb95c55c122ebbdb88b97513b2e7feaa263dc5b01f9837c5c11e05420f43cca4714 +EBUILD libclthreads-2.4.2.ebuild 847 BLAKE2B d706afe41079d5ffef845dcefb943b92faf1e1009ad75b868fe6d1c655ae799dc1060d727f32a3595de5f044debc75c61c950802f6dcf715af03866cb705efac SHA512 7d062187f06f454d9fcdff5df85b1d5e2485c7baa587868d4a3f7d74287a1a3e0b695e65301a448cb495d4d6a824020df2d8a7fdc4f2bc2049278cc12b390ea5 MISC metadata.xml 249 BLAKE2B f7f8f071ecba933f3d39b0b60983281d59299b92de9375a60ab4109d7202800cb790bce0c426227f04b3e2624b1adb20876145741355abc6a4938b8b9698d144 SHA512 9a100fb26586365eda99724330a03a512f4d0be18d39c3a195ba02c2fc841edeee99d22512acf5a058a3b978d3a74f4d963a5aff9aa343b6cb4086cdfefe6343 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" +} |