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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Nov 25 00:00:43 2005 UTC (13 years, 11 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old revision.
(Portage version: 2.0.53_rc7)

1 # Copyright 1999-2005 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-r2.ebuild,v 1.4 2005/11/22 12:26:49 flameeyes Exp $
4
5 inherit libtool eutils flag-o-matic
6
7 PATCHLEVEL="1"
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 ~ppc64 ~ppc-macos ~sparc ~x86"
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 # Apply all the patches but the largefile one (added later)
31 EPATCH_EXCLUDE="060_all_largefile.patch"
32 EPATCH_SUFFIX="patch" epatch ${WORKDIR}/patches
33
34 # it needs XMMS m4 file
35 cp -R ${WORKDIR}/m4 ${S}
36
37 ./autogen.sh || die "autogen failed"
38 libtoolize --copy --force
39 elibtoolize --reverse-deps
40 }
41
42 src_compile() {
43 use doc || export ac_cv_prog_DOXYGEN=''
44 econf \
45 $(use_enable ogg) \
46 $(use_enable sse) \
47 $(use_enable 3dnow) \
48 $(use_enable debug) \
49 --disable-dependency-tracking || die
50
51 # the man page ebuild requires docbook2man... yick!
52 sed -i -e 's:include man:include:g' Makefile
53
54 # parallel make seems to mess up the building of the xmms input plugin
55 emake -j1 || die "make failed"
56 }
57
58 src_install() {
59 make DESTDIR="${D}" install || die "make install failed"
60 dodoc AUTHORS README
61 }
62
63 pkg_postinst() {
64 ewarn "If you've upgraded from a previous version of flac, you may need to re-emerge"
65 ewarn "packages that linked against flac by running:"
66 ewarn "revdep-rebuild"
67 }
68
69 # see #59482
70 src_test() { :; }

  ViewVC Help
Powered by ViewVC 1.1.20