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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Oct 19 17:25:02 2006 UTC (13 years ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old versions.
(Portage version: 2.1.2_pre3-r5)
 (Signed Manifest commit)

1 # Copyright 1999-2006 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-r7.ebuild,v 1.2 2006/09/24 17:19:16 flameeyes Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7
8 inherit libtool eutils flag-o-matic autotools
9
10 PATCHLEVEL="7"
11 DESCRIPTION="free lossless audio encoder which includes an XMMS plugin"
12 HOMEPAGE="http://flac.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/flac/${P}.tar.gz
14 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
15
16 LICENSE="GPL-2 LGPL-2"
17 SLOT="0"
18 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
19 IUSE="3dnow debug doc ogg sse xmms"
20
21 RDEPEND="ogg? ( >=media-libs/libogg-1.0_rc2 )
22 xmms? ( media-sound/xmms )"
23 DEPEND="${RDEPEND}
24 x86? ( dev-lang/nasm )
25 sys-apps/gawk
26 doc? ( app-doc/doxygen )
27 dev-util/pkgconfig"
28
29 RESTRICT="test"
30
31 src_unpack() {
32 unpack ${A}
33 cd "${S}"
34
35 # Enable only for GCC 4.1 and later
36 [[ $(gcc-major-version)$(gcc-minor-version) -ge 41 ]] || \
37 export EPATCH_EXCLUDE="130_all_visibility.patch"
38
39 EPATCH_SUFFIX="patch" \
40 epatch "${WORKDIR}/patches"
41 AT_M4DIR="m4" eautoreconf
42 elibtoolize
43 }
44
45 src_compile() {
46 econf \
47 $(use_enable ogg) \
48 $(use_enable sse) \
49 $(use_enable 3dnow) \
50 $(use_enable debug) \
51 $(use_enable doc) \
52 --disable-dependency-tracking || die
53
54 # the man page ebuild requires docbook2man... yick!
55 sed -i -e 's:include man:include:g' Makefile
56
57 # FIXME parallel make seems to mess up the building of the xmms input plugin
58 local makeopts
59 use xmms && makeopts="-j1"
60
61 emake ${makeopts} || 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 doman man/{flac,metaflac}.1
70 }
71
72 pkg_postinst() {
73 ewarn "If you've upgraded from a previous version of flac, you may need to re-emerge"
74 ewarn "packages that linked against flac by running:"
75 ewarn "revdep-rebuild"
76 }

  ViewVC Help
Powered by ViewVC 1.1.20