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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (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.9: +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.2.ebuild,v 1.9 2005/04/25 17:58:41 eradicator Exp $
4
5 inherit libtool eutils flag-o-matic gcc
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 sed -i -e '/^@FLaC__HAS_XMMS_TRUE/d' src/Makefile.in || die
28 fi
29
30 epatch "${FILESDIR}"/${P}-m4.patch
31 epatch "${FILESDIR}"/${P}-libtool.patch
32 epatch "${FILESDIR}"/${P}-gas.patch
33 epatch "${FILESDIR}"/${P}-makefile.patch
34 ./autogen.sh
35 libtoolize --copy --force
36 elibtoolize --reverse-deps
37 }
38
39 src_compile() {
40 use doc || export ac_cv_prog_DOXYGEN=''
41 econf \
42 $(use_with ogg ogg /usr) \
43 $(use_enable sse) \
44 $(use_enable 3dnow) \
45 $(use_enable debug) \
46 --disable-dependency-tracking || die
47
48 # the man page ebuild requires docbook2man... yick!
49 sed -i -e 's:include man:include:g' Makefile
50
51 # emake seems to mess up the building of the xmms input plugin
52 make || die "make failed"
53 }
54
55 src_install() {
56 make DESTDIR="${D}" install || die "make install failed"
57 dodoc AUTHORS README
58
59 # Keep around old lib
60 preserve_old_lib /usr/$(get_libdir)/libFLAC.so.4
61 preserve_old_lib /usr/$(get_libdir)/libFLAC++.so.2
62 }
63
64 pkg_postinst() {
65 preserve_old_lib_notify /usr/$(get_libdir)/libFLAC.so.4
66 preserve_old_lib_notify /usr/$(get_libdir)/libFLAC++.so.2
67 }
68
69 # see #59482
70 src_test() { :; }

  ViewVC Help
Powered by ViewVC 1.1.20