forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cdrdao-1.2.3-r3.ebuild
66 lines (58 loc) · 1.4 KB
/
cdrdao-1.2.3-r3.ebuild
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
58
59
60
61
62
63
64
65
66
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit autotools flag-o-matic
DESCRIPTION="Burn CDs in disk-at-once mode -- with optional GUI frontend"
HOMEPAGE="http://cdrdao.sourceforge.net/"
if [[ ${PV/*_rc*} ]]
then
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
else
SRC_URI="http://www.poolshark.org/src/${P/_}.tar.bz2"
fi
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="gcdmaster encode mad vorbis"
RDEPEND="virtual/cdrtools
encode? ( >=media-sound/lame-3.99 )
gcdmaster? (
>=dev-libs/libsigc++-2.6:2
>=dev-cpp/gtkmm-2.4:2.4
>=dev-cpp/libgnomeuimm-2.6:2.6
media-libs/libao
)
mad? (
media-libs/libmad
media-libs/libao
)
vorbis? (
media-libs/libvorbis
media-libs/libao
)
!app-cdr/cue2toc
!dev-util/pccts"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${P}-glibc212.patch"
"${FILESDIR}/${P}-unsigned-char.patch"
"${FILESDIR}/${P}-ax_pthread.patch"
"${FILESDIR}/${P}-wformat-security.patch"
)
S=${WORKDIR}/${P/_}
src_prepare() {
default
eautoreconf
}
src_configure() {
# Fix building with latest libsigc++
append-cxxflags -std=c++11
find -name '*.h' -exec sed -i '/sigc++\/object.h/d' {} + || die
econf \
$(use_with gcdmaster xdao) \
$(use_with vorbis ogg-support) \
$(use_with mad mp3-support) \
$(use_with encode lame)
}