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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Tue May 3 20:24:01 2005 UTC (14 years, 5 months ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
Revbump to fix xmms bug.  Closes bug #82622.
(Portage version: 2.0.51.21)

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.0-r1.ebuild,v 1.14 2005/02/05 12:49:35 luckyduck Exp $
4
5 inherit libtool
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="x86 ppc sparc alpha hppa amd64 ~ia64 ~mips"
14 IUSE="sse xmms X"
15
16 RDEPEND=">=media-libs/libogg-1.0_rc2
17 X? ( xmms? ( media-sound/xmms ) )"
18 DEPEND="${RDEPEND}
19 x86? ( dev-lang/nasm )
20 sys-apps/gawk"
21
22 src_unpack() {
23 unpack ${A}
24 cd ${S}
25 #if X not in use, then don't build in xmms support
26 #if xmms not in use, then don't do it either.
27 #if both X and xmms in use, then do it.
28 if ! use xmms || ! use X
29 then
30 cp src/Makefile.in src/Makefile.in.orig
31 sed -e '/^@FLaC__HAS_XMMS_TRUE/d' src/Makefile.in.orig > src/Makefile.in || die
32 fi
33
34 elibtoolize --reverse-deps
35 }
36
37 src_compile() {
38 # non-x86 need -fPIC for to compile when X and xmss are in USE
39 # the --with-pic is not enough to fix this ... Makefiles probably
40 # need to get patched :p
41 if use xmms && use X; then
42 export CFLAGS="${CFLAGS} -fPIC"
43 fi
44
45 econf \
46 --with-pic \
47 `use_enable sse` \
48 || die
49
50 #the man page ebuild requires docbook2man... yick!
51 sed -i -e 's:include man:include:g' Makefile
52 #emake seems to mess up the building of the xmms input plugin
53 make || die
54 }
55
56 src_install() {
57 make DESTDIR=${D} install || die
58 }
59
60 # see #59482
61 src_test() { :; }

  ViewVC Help
Powered by ViewVC 1.1.20