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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Aug 25 10:39:17 2005 UTC (14 years, 2 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Removed 1.1.0 series and 1.1.2-r1 ebuild.
(Portage version: 2.0.51.22)

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-r1.ebuild,v 1.4 2005/05/15 02:22:05 flameeyes Exp $
4
5 inherit libtool eutils flag-o-matic
6
7 DESCRIPTION="free lossless audio encoder which includes an XMMS plugin"
8 HOMEPAGE="http://flac.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/flac/${P}.tar.gz"
10
11 LICENSE="GPL-2 LGPL-2"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~sparc ~x86"
14 IUSE="3dnow debug doc ogg sse xmms"
15
16 RDEPEND="ogg? ( >=media-libs/libogg-1.0_rc2 )
17 xmms? ( media-sound/xmms )"
18 DEPEND="${RDEPEND}
19 x86? ( dev-lang/nasm )
20 sys-apps/gawk
21 doc? ( app-doc/doxygen )"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 if use xmms ; then
27 epatch "${FILESDIR}"/${P}-xmms-config.patch
28 else
29 sed -i -e '/^@FLaC__HAS_XMMS_TRUE/d' src/Makefile.in || die
30 sed -i -e '/AM_PATH_XMMS/d' configure.in || die
31 fi
32
33 epatch "${FILESDIR}/${P}-m4.patch"
34 epatch "${FILESDIR}/${P}-libtool.patch"
35 epatch "${FILESDIR}/${P}-gas.patch"
36 epatch "${FILESDIR}/${P}-makefile.patch"
37 epatch "${FILESDIR}/${P}-noogg.patch"
38 ./autogen.sh || die "autogen failed"
39 libtoolize --copy --force
40 elibtoolize --reverse-deps
41 }
42
43 src_compile() {
44 use doc || export ac_cv_prog_DOXYGEN=''
45 econf \
46 $(use_enable ogg) \
47 $(use_enable sse) \
48 $(use_enable 3dnow) \
49 $(use_enable debug) \
50 --disable-dependency-tracking || die
51
52 # the man page ebuild requires docbook2man... yick!
53 sed -i -e 's:include man:include:g' Makefile
54
55 # emake seems to mess up the building of the xmms input plugin
56 make || die "make failed"
57 }
58
59 src_install() {
60 make DESTDIR="${D}" install || die "make install failed"
61 dodoc AUTHORS README
62 }
63
64 pkg_postinst() {
65 ewarn "If you've upgraded from a previous version of flac, you may need to re-emerge"
66 ewarn "packages that linked against flac by running:"
67 ewarn "revdep-rebuild"
68 }
69
70 # see #59482
71 src_test() { :; }

  ViewVC Help
Powered by ViewVC 1.1.20