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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Sat Sep 15 07:06:17 2007 UTC (12 years, 1 month ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +1 -1 lines
FILE REMOVED
Changed SRC_URI to gentoo mirrors. Punted unused versions 1.1.2-r3 and 1.1.3.
(Portage version: 2.1.3.9)

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.2-r3.ebuild,v 1.17 2007/02/24 20:30:08 aballier Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7
8 inherit libtool eutils flag-o-matic autotools
9
10 PATCHLEVEL="1"
11 DESCRIPTION="free lossless audio encoder and decoder"
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 ppc64 sh sparc x86"
19 IUSE="3dnow debug doc ogg sse"
20
21 RDEPEND="ogg? ( >=media-libs/libogg-1.1.2 )"
22 DEPEND="${RDEPEND}
23 x86? ( dev-lang/nasm )
24 sys-apps/gawk
25 doc? ( app-doc/doxygen )
26 dev-util/pkgconfig"
27
28 src_unpack() {
29 unpack ${A}
30 cd "${S}"
31
32 # Hard-disable the XMMS plugin now that XMMS is removed.
33 sed -i -e '/AM_PATH_XMMS/s:^.*$:true:' "${S}/configure.in"
34
35 EPATCH_SUFFIX="patch" epatch ${WORKDIR}/patches
36
37 AT_M4DIR="${WORKDIR}/m4" eautoreconf
38 }
39
40 src_compile() {
41 use doc || export ac_cv_prog_DOXYGEN=''
42 econf \
43 $(use_enable ogg) \
44 $(use_enable sse) \
45 $(use_enable 3dnow) \
46 $(use_enable debug) \
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 emake || die "make failed"
53 }
54
55 src_install() {
56 make DESTDIR="${D}" install || die "make install failed"
57 dodoc AUTHORS README
58 }
59
60 pkg_postinst() {
61 ewarn "If you've upgraded from a previous version of flac, you may need to re-emerge"
62 ewarn "packages that linked against flac by running:"
63 ewarn "revdep-rebuild"
64 }
65
66 # see #59482
67 src_test() { :; }

  ViewVC Help
Powered by ViewVC 1.1.20