diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-12-19 23:42:28 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-12-19 23:43:20 +0100 |
commit | 0b91829596d09d210b12edc8eee0aacbb1291107 (patch) | |
tree | 5d40f9685cd765ecc3cc08cfb0df0f184303eb72 /app-cdr | |
parent | sci-libs/libgeotiff: keyworded 1.4.0 for sparc (thanks to Rolf Eike Beer) (diff) | |
download | gentoo-0b91829596d09d210b12edc8eee0aacbb1291107.tar.gz gentoo-0b91829596d09d210b12edc8eee0aacbb1291107.tar.bz2 gentoo-0b91829596d09d210b12edc8eee0aacbb1291107.zip |
app-cdr/cdrdao: Fix build with >=media-sound/lame-3.100
Thanks-to: Michael Palimaka (kensington) <kensington@gentoo.org>
Tested-by: Brendan Horan <brendan@horan.hk>
Closes: https://bugs.gentoo.org/635014
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-cdr')
-rw-r--r-- | app-cdr/cdrdao/cdrdao-1.2.3-r4.ebuild | 13 | ||||
-rw-r--r-- | app-cdr/cdrdao/files/cdrdao-1.2.3-lame-3.100.patch | 24 |
2 files changed, 32 insertions, 5 deletions
diff --git a/app-cdr/cdrdao/cdrdao-1.2.3-r4.ebuild b/app-cdr/cdrdao/cdrdao-1.2.3-r4.ebuild index 8f7487c4dd4f..9f93e4dc6929 100644 --- a/app-cdr/cdrdao/cdrdao-1.2.3-r4.ebuild +++ b/app-cdr/cdrdao/cdrdao-1.2.3-r4.ebuild @@ -19,26 +19,29 @@ SLOT="0" KEYWORDS="alpha amd64 ~arm hppa ia64 ~ppc ~ppc64 ~sh sparc x86 ~x86-fbsd" IUSE="encode mad vorbis" -RDEPEND="virtual/cdrtools +COMMON_DEPEND=" + virtual/cdrtools encode? ( >=media-sound/lame-3.99 ) mad? ( media-libs/libmad media-libs/libao - ) + ) vorbis? ( media-libs/libvorbis media-libs/libao - ) + )" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" +RDEPEND="${COMMON_DEPEND} !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" + "${FILESDIR}/${P}-lame-3.100.patch" ) S="${WORKDIR}/${P/_}" diff --git a/app-cdr/cdrdao/files/cdrdao-1.2.3-lame-3.100.patch b/app-cdr/cdrdao/files/cdrdao-1.2.3-lame-3.100.patch new file mode 100644 index 000000000000..c712de2394c7 --- /dev/null +++ b/app-cdr/cdrdao/files/cdrdao-1.2.3-lame-3.100.patch @@ -0,0 +1,24 @@ +--- a/utils/toc2mp3.cc ++++ b/utils/toc2mp3.cc +@@ -143,8 +143,8 @@ + + message(0, "LAME encoder version: %s", get_lame_version()); + message(0, "Supported bit rates: "); +- for (int i = 0; i < 16 && bitrate_table[1][i] >= 0; i++) { +- message(0, "%d ", bitrate_table[1][i]); ++ for (int i = 0; i < 16 && lame_get_bitrate(1, i) >= 0; i++) { ++ message(0, "%d ", lame_get_bitrate(1, i)); + } + message(0, ""); + } +@@ -238,8 +238,8 @@ + lame_global_flags *lf; + int bitrateOk = 0; + +- for (int i = 0; bitrate_table[1][i] >= 0 && !bitrateOk; i++) { +- if (bitrate == bitrate_table[1][i]) ++ for (int i = 0; lame_get_bitrate(1, i) >= 0 && !bitrateOk; i++) { ++ if (bitrate == lame_get_bitrate(1, i)) + bitrateOk = 1; + } + |