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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 24 17:19:29 2006 UTC (13 years ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove unneeded versions, fix autotools mess in -r3 and -r7. Thanks to Seemant for reporting.
(Portage version: 2.1.2_pre1-r1)
 (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-r6.ebuild,v 1.1 2006/05/29 00:14:30 flameeyes Exp $
4
5 inherit libtool eutils flag-o-matic autotools
6
7 PATCHLEVEL="6"
8 DESCRIPTION="free lossless audio encoder which includes an XMMS plugin"
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="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
16 IUSE="3dnow debug doc ogg sse xmms"
17
18 RDEPEND="ogg? ( >=media-libs/libogg-1.0_rc2 )
19 xmms? ( media-sound/xmms )"
20 DEPEND="${RDEPEND}
21 x86? ( dev-lang/nasm )
22 sys-apps/gawk
23 doc? ( app-doc/doxygen )
24 dev-util/pkgconfig"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 # Enable only for GCC 4.1 and later
31 [[ $(gcc-major-version)$(gcc-minor-version) -ge 41 ]] || \
32 export EPATCH_EXCLUDE="130_all_visibility.patch"
33
34 EPATCH_SUFFIX="patch" \
35 epatch "${WORKDIR}/patches"
36 AT_M4DIR="m4" eautoreconf
37 elibtoolize
38 }
39
40 src_compile() {
41 econf \
42 $(use_enable ogg) \
43 $(use_enable sse) \
44 $(use_enable 3dnow) \
45 $(use_enable debug) \
46 $(use_enable doc) \
47 --disable-dependency-tracking || die
48
49 # the man page ebuild requires docbook2man... yick!
50 sed -i -e 's:include man:include:g' Makefile
51
52 # FIXME parallel make seems to mess up the building of the xmms input plugin
53 local makeopts
54 use xmms && makeopts="-j1"
55
56 emake ${makeopts} || die "make failed"
57 }
58
59 src_install() {
60 make 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 }
72
73 # see #59482
74 src_test() { :; }

  ViewVC Help
Powered by ViewVC 1.1.20