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

Contents of /media-libs/flac/flac-1.1.2-r8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Sun Mar 16 12:09:14 2008 UTC (11 years, 7 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +1 -1 lines
FILE REMOVED
amd64 stable. remove old for repoman, has unstable mips deps.
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 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.2-r8.ebuild,v 1.16 2008/01/10 15:11:45 drac Exp $
4
5 inherit libtool eutils flag-o-matic autotools
6
7 PATCHLEVEL="8"
8 DESCRIPTION="free lossless audio encoder and decoder"
9 HOMEPAGE="http://flac.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/flac/${P}.tar.gz
11 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
12
13 LICENSE="GPL-2 LGPL-2"
14 SLOT="0"
15 KEYWORDS="mips"
16 IUSE="3dnow debug doc ogg sse"
17
18 RDEPEND="ogg? ( >=media-libs/libogg-1.1.2 )"
19 DEPEND="${RDEPEND}
20 x86? ( dev-lang/nasm )
21 sys-apps/gawk
22 doc? ( app-doc/doxygen )
23 dev-util/pkgconfig"
24
25 RESTRICT="test"
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30
31 # Enable only for GCC 4.1 and later
32 [[ $(gcc-major-version)$(gcc-minor-version) -ge 41 ]] || \
33 export EPATCH_EXCLUDE="130_all_visibility.patch 140_all_visibility-xmms.patch 160_all_protected.patch"
34
35 # Hard-disable the XMMS plugin now that XMMS is removed.
36 sed -i -e '/AM_PATH_XMMS/s:^.*$:true:' "${S}/configure.in"
37
38 EPATCH_SUFFIX="patch" \
39 epatch "${WORKDIR}/patches"
40 AT_M4DIR="m4" eautoreconf
41 elibtoolize
42 }
43
44 src_compile() {
45 econf \
46 $(use_enable ogg) \
47 $(use_enable sse) \
48 $(use_enable 3dnow) \
49 $(use_enable debug) \
50 $(use_enable doc) \
51 --disable-dependency-tracking || die
52
53 # the man page ebuild requires docbook2man... yick!
54 sed -i -e 's:include man:include:g' Makefile
55
56 emake || die "make failed"
57 }
58
59 src_install() {
60 emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" \
61 install || die "make install failed"
62 dodoc AUTHORS README
63
64 doman man/{flac,metaflac}.1
65 }
66
67 pkg_postinst() {
68 ewarn "If you've upgraded from a previous version of flac, you may need to re-emerge"
69 ewarn "packages that linked against flac by running:"
70 ewarn "revdep-rebuild"
71 }

  ViewVC Help
Powered by ViewVC 1.1.20