summaryrefslogtreecommitdiff
path: root/media-libs/libfreeaptx
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-08-26 00:09:36 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-08-26 00:09:36 +0100
commitb1c81de4fadbd00897700a7321f03b390d952b2e (patch)
treee6cc812351d4f105c110cfc363ebb497e996f47a /media-libs/libfreeaptx
parent7c59acba5699c9c58090a7a738669669a7307023 (diff)
gentoo resync : 26.08.2021
Diffstat (limited to 'media-libs/libfreeaptx')
-rw-r--r--media-libs/libfreeaptx/Manifest5
-rw-r--r--media-libs/libfreeaptx/files/libfreeaptx-0.1.1-fix-version.patch20
-rw-r--r--media-libs/libfreeaptx/libfreeaptx-0.1.1.ebuild50
-rw-r--r--media-libs/libfreeaptx/libfreeaptx-9999.ebuild49
-rw-r--r--media-libs/libfreeaptx/metadata.xml15
5 files changed, 139 insertions, 0 deletions
diff --git a/media-libs/libfreeaptx/Manifest b/media-libs/libfreeaptx/Manifest
new file mode 100644
index 000000000000..4c4a22ca740c
--- /dev/null
+++ b/media-libs/libfreeaptx/Manifest
@@ -0,0 +1,5 @@
+AUX libfreeaptx-0.1.1-fix-version.patch 571 BLAKE2B 0fa43bf3b7180b5ec90e3cb2fc633959d5b484954bd50f468903a6c0c9b0646fe77be1618b68746692b57224e46270e538133ccfeb3f320ff71780bc5cd4297d SHA512 b8d3bcadeba8534979c02e55ad129bfce147e920e2e881f99ac9d579095fb944b6e88351a74dc410d141e0a6b89f17c15ddc21019e63cc3cf362a20d5e9b37b6
+DIST libfreeaptx-0.1.1.tar.gz 27902 BLAKE2B 0aa015b0317db7f6dd61ae667cc1b7b10c7f7457d057144c1457572a214891848b81512960eb8643138c638a0f691b53a7bbcb36ad434ac29335d92b108a43fa SHA512 53dd7f348120fea0425b365f26668925dd435a8a3a0c5e98476764a452c7d729f2a3556e953c557d0ccaaa65391265c8c3c61fc29377cf60079fa0bed2cc20b1
+EBUILD libfreeaptx-0.1.1.ebuild 1033 BLAKE2B c9ab3dc9e51ec6b86975e13258447485f4cdd12a606b89b3d19ddb1782ed58e12aeca75e608db7551604a3c66a602ffaf70a1cdf7855f17a7e0cdc362c5cbac1 SHA512 fcd48ce7125aac0dff532c024094337d36c03d2a2d44fbbf6a953c4c02a06d9fd5cd7b465a6ccc9cf7b29f06fe605485c7df0ce9b6f5ba5bfd161ba4b718d8d6
+EBUILD libfreeaptx-9999.ebuild 1068 BLAKE2B dfdd16452e91a07ec2b728c737bbd233c1b72c8a00605929992e52d8e6ca6b77e60ad1a5acae67007040a829699ac415d27e47b640df7f96c4ebba0d7fc1491b SHA512 a1f4554be7a4c9b070f771a486955a412cdffbb6963ecb98f6eaefc9a14ea003dd663e43270b36ac2af8050a77be8bcc2681912061f8e74ceaca08398c0a7add
+MISC metadata.xml 442 BLAKE2B 29e3ffb1994b3f1d5e6fc14ee66e0152a047a02a8a3e86b7be8a853ffe0b425e5ba378586dd46d6b323b8d53853748e148b1c2b782f6da24873e2425d5624711 SHA512 22a1530dc7165756acb23275cc3901e93eadda9933da297992b185c5210bd78425d1b5eb86187506cebb0cdca446090cf57facefce425b420a543cb9f83c1576
diff --git a/media-libs/libfreeaptx/files/libfreeaptx-0.1.1-fix-version.patch b/media-libs/libfreeaptx/files/libfreeaptx-0.1.1-fix-version.patch
new file mode 100644
index 000000000000..0a738fd9c81a
--- /dev/null
+++ b/media-libs/libfreeaptx/files/libfreeaptx-0.1.1-fix-version.patch
@@ -0,0 +1,20 @@
+Report the correct version rather than the old libopenaptx version (left over from the fork point).
+https://github.com/iamthehorker/libfreeaptx/commit/c176b7de9c2017d0fc1877659cea3bb6c330aafa.patch
+
+From: Hunter <wardlawhunter@gmail.com>
+Date: Mon, 9 Aug 2021 23:51:49 -0400
+Subject: [PATCH] Fixed libfreeaptx reporting wrong version number
+
+--- a/freeaptx.h
++++ b/freeaptx.h
+@@ -22,8 +22,8 @@
+ #define freeaptx_H
+
+ #define freeaptx_MAJOR 0
+-#define freeaptx_MINOR 2
+-#define freeaptx_PATCH 0
++#define freeaptx_MINOR 1
++#define freeaptx_PATCH 1
+
+ #include <stddef.h>
+
diff --git a/media-libs/libfreeaptx/libfreeaptx-0.1.1.ebuild b/media-libs/libfreeaptx/libfreeaptx-0.1.1.ebuild
new file mode 100644
index 000000000000..e761be0ee4d6
--- /dev/null
+++ b/media-libs/libfreeaptx/libfreeaptx-0.1.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Reverse-engineered aptX and aptX HD library (fork of libopenaptx)"
+HOMEPAGE="https://github.com/iamthehorker/libfreeaptx"
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/iamthehorker/${PN}"
+else
+ SRC_URI="https://github.com/iamthehorker/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+IUSE="cpu_flags_x86_avx2"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-version.patch
+)
+
+src_compile() {
+ tc-export CC AR
+
+ use cpu_flags_x86_avx2 && append-cflags "-mavx2"
+
+ emake \
+ PREFIX="${EPREFIX}"/usr \
+ LIBDIR=$(get_libdir) \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ ARFLAGS="${ARFLAGS} -rcs" \
+ all
+}
+
+src_install() {
+ emake \
+ PREFIX="${EPREFIX}"/usr \
+ DESTDIR="${D}" \
+ LIBDIR="$(get_libdir)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ ARFLAGS="${ARFLAGS} -rcs" \
+ install
+}
diff --git a/media-libs/libfreeaptx/libfreeaptx-9999.ebuild b/media-libs/libfreeaptx/libfreeaptx-9999.ebuild
new file mode 100644
index 000000000000..f849a9cc545a
--- /dev/null
+++ b/media-libs/libfreeaptx/libfreeaptx-9999.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Reverse-engineered aptX and aptX HD library (fork of libopenaptx)"
+HOMEPAGE="https://github.com/iamthehorker/libfreeaptx"
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/iamthehorker/${PN}"
+else
+ SRC_URI="https://github.com/iamthehorker/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+
+IUSE="cpu_flags_x86_avx2"
+
+src_compile() {
+ tc-export CC AR
+
+ use cpu_flags_x86_avx2 && append-cflags "-mavx2"
+
+ emake \
+ PREFIX="${EPREFIX}"/usr \
+ LIBDIR=$(get_libdir) \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ ARFLAGS="${ARFLAGS} -rcs" \
+ all
+}
+
+src_install() {
+ emake \
+ PREFIX="${EPREFIX}"/usr \
+ DESTDIR="${D}" \
+ LIBDIR="$(get_libdir)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ ARFLAGS="${ARFLAGS} -rcs" \
+ install
+
+ rm -f "${ED}/usr/$(get_libdir)"/libopenaptx.a || die "Failed to remove static lib"
+}
diff --git a/media-libs/libfreeaptx/metadata.xml b/media-libs/libfreeaptx/metadata.xml
new file mode 100644
index 000000000000..889e237efe92
--- /dev/null
+++ b/media-libs/libfreeaptx/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sam@gentoo.org</email>
+ <name>Sam James</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>codec@gentoo.org</email>
+ <name>Gentoo Codec Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">iamthehorker/libfreeaptx</remote-id>
+ </upstream>
+</pkgmetadata>