blob: 76fbf3386cd19ae067629ce06c5e34ddcca383a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools flag-o-matic
MY_PV="rel_${PV//./_}"
DESCRIPTION="Burn CDs in disk-at-once mode with a command line interface"
HOMEPAGE="https://github.com/cdrdao/cdrdao/"
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm arm64 ~loong ppc ppc64 ~riscv sparc x86"
IUSE="encode mad vorbis"
DEPEND="app-cdr/cdrtools
encode? ( >=media-sound/lame-3.99 )
mad? (
media-libs/libao
media-libs/libmad
)
vorbis? (
media-libs/libao
media-libs/libvorbis
)"
RDEPEND="${DEPEND}
!app-cdr/cue2toc"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${P}-remove-gconf-dep.patch"
"${FILESDIR}/${PN}-1.2.5-fix-uninit.patch"
)
src_prepare() {
default
eautoreconf
}
src_configure() {
# bug #943909
append-cflags -std=gnu17
append-cxxflags -std=c++11
filter-lto # https://bugs.gentoo.org/854219
local myeconfargs=(
--without-gcdmaster
$(use_with vorbis ogg-support)
$(use_with mad mp3-support)
$(use_with encode lame)
)
econf "${myeconfargs[@]}"
}
|