/[gentoo-x86]/media-libs/flac/flac-1.1.4.ebuild
Gentoo

Contents of /media-libs/flac/flac-1.1.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Thu Jan 10 15:11:45 2008 UTC (11 years, 9 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Remove vulnerable versions but leave one ebuild behind for mips wrt #195700
(Portage version: 2.1.4_rc14)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.1.4.ebuild,v 1.10 2007/12/11 23:37:02 vapier Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7
8 inherit libtool eutils toolchain-funcs autotools
9
10 MY_P="${P/_beta/-beta}"
11
12 PATCHLEVEL="11"
13 DESCRIPTION="free lossless audio encoder and decoder"
14 HOMEPAGE="http://flac.sourceforge.net/"
15 SRC_URI="mirror://sourceforge/flac/${MY_P}.tar.gz
16 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
17
18 LICENSE="GPL-2 LGPL-2"
19 SLOT="0"
20 KEYWORDS="alpha ~amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
21 IUSE="3dnow debug doc ogg sse"
22
23 RDEPEND="ogg? ( >=media-libs/libogg-1.1.2 )"
24 DEPEND="${RDEPEND}
25 x86? ( dev-lang/nasm )
26 sys-apps/gawk
27 sys-devel/gettext
28 doc? ( app-doc/doxygen )
29 dev-util/pkgconfig"
30
31 RESTRICT="test"
32
33 S="${WORKDIR}/${MY_P}"
34
35 src_unpack() {
36 unpack ${A}
37 cd "${S}"
38
39 # Enable only for GCC 4.1 and later
40 [[ $(gcc-major-version)$(gcc-minor-version) -ge 41 ]] || \
41 export EPATCH_EXCLUDE="130_all_visibility.patch 160_all_protected.patch"
42
43 EPATCH_SUFFIX="patch" \
44 epatch "${WORKDIR}/patches"
45 AT_M4DIR="m4" eautoreconf
46 elibtoolize
47 }
48
49 src_compile() {
50 econf \
51 $(use_enable ogg) \
52 $(use_enable sse) \
53 $(use_enable 3dnow) \
54 $(use_enable debug) \
55 $(use_enable doc doxygen-docs) \
56 --disable-dependency-tracking || die
57
58 # the man page ebuild requires docbook2man... yick!
59 sed -i -e 's:include man:include:g' Makefile
60
61 emake || die "make failed"
62 }
63
64 src_install() {
65 emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" \
66 install || die "make install failed"
67 dodoc AUTHORS README
68
69 use doc || rm -rf "${D}/usr/share/doc/${PF}/api"
70
71 doman man/{flac,metaflac}.1
72 }
73
74 pkg_postinst() {
75 ewarn "If you've upgraded from a previous version of flac, you may need to re-emerge"
76 ewarn "packages that linked against flac by running revdep-rebuild"
77 }

  ViewVC Help
Powered by ViewVC 1.1.20