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

Contents of /media-libs/flac/flac-1.2.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Jul 24 11:01:07 2009 UTC (10 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove my devspace from SRC_URI.
(Portage version: 2.2_rc33/cvs/Linux x86_64)

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.2.1-r2.ebuild,v 1.6 2008/05/15 20:39:51 drac Exp $
4
5 EAPI=1
6
7 inherit autotools eutils
8
9 DESCRIPTION="free lossless audio encoder and decoder"
10 HOMEPAGE="http://flac.sourceforge.net"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2 LGPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
16 IUSE="3dnow altivec +cxx debug doc ogg sse"
17
18 RDEPEND="ogg? ( >=media-libs/libogg-1.1.3 )"
19 DEPEND="${RDEPEND}
20 x86? ( dev-lang/nasm )
21 !elibc_uclibc? ( sys-devel/gettext )
22 dev-util/pkgconfig"
23
24 RESTRICT="test"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 # Fix building with asneeded on non-glibc systems.
31 # Fix text relocations. Fix {C,XX}FLAGS.
32 epatch "${FILESDIR}"/${P}-asneeded.patch \
33 "${FILESDIR}"/${P}-cflags.patch \
34 "${FILESDIR}"/${P}-asm.patch
35
36 # Fix build with gcc 4.3, bug #199579
37 epatch "${FILESDIR}/${P}-gcc-4.3-includes.patch"
38
39 AT_M4DIR="m4" eautoreconf
40 }
41
42 src_compile() {
43 econf $(use_enable ogg) \
44 $(use_enable sse) \
45 $(use_enable 3dnow) \
46 $(use_enable altivec) \
47 $(use_enable debug) \
48 $(use_enable cxx cpplibs) \
49 --disable-doxygen-docs \
50 --disable-dependency-tracking \
51 --disable-xmms-plugin
52
53 emake || die "emake failed."
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" install || die "emake install failed."
58
59 rm -rf "${D}"/usr/share/doc/${P}
60 dodoc AUTHORS README
61 use doc && dohtml -r doc/html/*
62 }

  ViewVC Help
Powered by ViewVC 1.1.20