summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-05-04 11:05:37 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-05-04 11:06:26 +0200
commit7e9210bcba8575df196abfc0239ee16b33e7872f (patch)
tree822b0118a19737e933644d5e08d7db1191bbfcfc /media-sound/dcaenc
parentmedia-sound/fluidsynth: Stabilize 2.3.2 amd64, #905684 (diff)
downloadgentoo-7e9210bcba8575df196abfc0239ee16b33e7872f.tar.gz
gentoo-7e9210bcba8575df196abfc0239ee16b33e7872f.tar.bz2
gentoo-7e9210bcba8575df196abfc0239ee16b33e7872f.zip
media-sound/dcaenc: add 3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'media-sound/dcaenc')
-rw-r--r--media-sound/dcaenc/Manifest1
-rw-r--r--media-sound/dcaenc/dcaenc-3.ebuild40
-rw-r--r--media-sound/dcaenc/metadata.xml3
3 files changed, 44 insertions, 0 deletions
diff --git a/media-sound/dcaenc/Manifest b/media-sound/dcaenc/Manifest
index b6779e315f17..9b2ed52efb1f 100644
--- a/media-sound/dcaenc/Manifest
+++ b/media-sound/dcaenc/Manifest
@@ -1 +1,2 @@
DIST dcaenc-2.tar.gz 351199 BLAKE2B 28e0dae58650fcbd9f68823ca0aa2dde121b2376b488067c0977863a22fb83d5b60d04f907cd6b564824a25cb45f25180034d4f9fead12b57805b1c997133443 SHA512 0029f7c3b06199fb8100ce933827013fdc58e5fddf984ddf1744849e5d6cc24ce76e09b868eef19a49e1036a142419c3304c1822492f64301ed4feaa6bea4910
+DIST dcaenc-v3.tar.bz2 48501 BLAKE2B f232225600a22cb018083449dbcef5c7a7f6d12c1edc412098ea07382a2d9dcb553377bd68934d96a91759b32572a6a064b00c583f767e74c1b4940e4253b285 SHA512 032793933da8c100d4e48555605287ca0d6c287aa948635aae6c6b584d902390ca3d02cc5623b59244234183bc3f5a747d48084cf70174903e5ac410dc305700
diff --git a/media-sound/dcaenc/dcaenc-3.ebuild b/media-sound/dcaenc/dcaenc-3.ebuild
new file mode 100644
index 000000000000..bc296e9146cb
--- /dev/null
+++ b/media-sound/dcaenc/dcaenc-3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="DTS Coherent Acoustics audio encoder"
+HOMEPAGE="https://gitlab.com/patrakov/dcaenc"
+SRC_URI="https://gitlab.com/patrakov/dcaenc/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa"
+
+RDEPEND="alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ --disable-static
+ $(use_enable alsa)
+ )
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ find "${ED}" -type f -name "*.la" -delete || die
+ dosym ../../../usr/share/alsa/pcm/dca.conf \
+ /etc/alsa/conf.d/dca.conf
+}
diff --git a/media-sound/dcaenc/metadata.xml b/media-sound/dcaenc/metadata.xml
index cd1cfc033621..f54a86bbf0b7 100644
--- a/media-sound/dcaenc/metadata.xml
+++ b/media-sound/dcaenc/metadata.xml
@@ -5,4 +5,7 @@
<email>sound@gentoo.org</email>
<name>Gentoo Sound project</name>
</maintainer>
+ <upstream>
+ <remote-id type="gitlab">patrakov/dcaenc</remote-id>
+ </upstream>
</pkgmetadata>