1 |
commit: e128741cd6e2f3e753c76a2d0b69847044686a7b |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 4 22:49:51 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 4 22:50:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e128741c |
7 |
|
8 |
media-libs/libmad: Security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/618022 |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
media-libs/libmad/libmad-0.15.1b-r8.ebuild | 76 ------------------------------ |
15 |
1 file changed, 76 deletions(-) |
16 |
|
17 |
diff --git a/media-libs/libmad/libmad-0.15.1b-r8.ebuild b/media-libs/libmad/libmad-0.15.1b-r8.ebuild |
18 |
deleted file mode 100644 |
19 |
index 910beb3d63c..00000000000 |
20 |
--- a/media-libs/libmad/libmad-0.15.1b-r8.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,76 +0,0 @@ |
23 |
-# Copyright 1999-2017 Gentoo Foundation |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=5 |
27 |
- |
28 |
-inherit autotools epatch flag-o-matic libtool ltprune multilib-minimal |
29 |
- |
30 |
-DESCRIPTION="\"M\"peg \"A\"udio \"D\"ecoder library" |
31 |
-HOMEPAGE="http://mad.sourceforge.net" |
32 |
-SRC_URI="mirror://sourceforge/mad/${P}.tar.gz" |
33 |
- |
34 |
-LICENSE="GPL-2" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
37 |
-IUSE="debug static-libs" |
38 |
- |
39 |
-DEPEND="" |
40 |
-RDEPEND="" |
41 |
- |
42 |
-DOCS=( CHANGES CREDITS README TODO VERSION ) |
43 |
- |
44 |
-MULTILIB_WRAPPED_HEADERS=( |
45 |
- /usr/include/mad.h |
46 |
-) |
47 |
- |
48 |
-src_prepare() { |
49 |
- epatch \ |
50 |
- "${FILESDIR}"/libmad-0.15.1b-cflags.patch \ |
51 |
- "${FILESDIR}"/libmad-0.15.1b-cflags-O2.patch \ |
52 |
- "${FILESDIR}"/libmad-0.15.1b-gcc44-mips-h-constraint-removal.patch |
53 |
- |
54 |
- # bug 467002 |
55 |
- sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac || die |
56 |
- |
57 |
- eautoreconf |
58 |
- # unnecessary when eautoreconf'd |
59 |
-# elibtoolize |
60 |
- # unnecessary when eautoreconf'd with new autoconf, for example, 2.69 |
61 |
-# epunt_cxx #74490 |
62 |
-} |
63 |
- |
64 |
-multilib_src_configure() { |
65 |
- local myconf="--enable-accuracy" |
66 |
- # --enable-speed optimize for speed over accuracy |
67 |
- # --enable-accuracy optimize for accuracy over speed |
68 |
- # --enable-experimental enable code using the EXPERIMENTAL |
69 |
- # preprocessor define |
70 |
- |
71 |
- # Fix for b0rked sound on sparc64 (maybe also sparc32?) |
72 |
- # default/approx is also possible, uses less cpu but sounds worse |
73 |
- use sparc && myconf+=" --enable-fpm=64bit" |
74 |
- |
75 |
- [[ $(tc-arch) == "amd64" ]] && myconf+=" --enable-fpm=64bit" |
76 |
- [[ $(tc-arch) == "x86" ]] && myconf+=" --enable-fpm=intel" |
77 |
- [[ $(tc-arch) == "ppc" ]] && myconf+=" --enable-fpm=default" |
78 |
- [[ $(tc-arch) == "ppc64" ]] && myconf+=" --enable-fpm=64bit" |
79 |
- |
80 |
- ECONF_SOURCE="${S}" econf \ |
81 |
- $(use_enable debug debugging) \ |
82 |
- $(use_enable static-libs static) \ |
83 |
- ${myconf} |
84 |
-} |
85 |
- |
86 |
-multilib_src_install() { |
87 |
- emake DESTDIR="${D}" install |
88 |
- |
89 |
- # This file must be updated with each version update |
90 |
- insinto /usr/$(get_libdir)/pkgconfig |
91 |
- doins "${FILESDIR}"/mad.pc |
92 |
- |
93 |
- # Use correct libdir in pkgconfig file |
94 |
- sed -i -e "s:^libdir.*:libdir=${EPREFIX}/usr/$(get_libdir):" \ |
95 |
- "${ED}"/usr/$(get_libdir)/pkgconfig/mad.pc |
96 |
- |
97 |
- prune_libtool_files --all |
98 |
-} |