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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.24 - (show annotations) (download)
Thu Oct 19 17:25:02 2006 UTC (13 years ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.23: +1 -1 lines
FILE REMOVED
Remove old versions.
(Portage version: 2.1.2_pre3-r5)
 (Signed Manifest commit)

1 # Copyright 1999-2006 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.1.ebuild,v 1.23 2006/01/29 15:47:50 blubb Exp $
4
5 inherit libtool eutils flag-o-matic toolchain-funcs
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 mirror://gentoo/${P}-altivec.patch.gz"
11
12 LICENSE="GPL-2 LGPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ~ppc-macos ppc64 sh sparc x86"
15 IUSE="sse xmms"
16
17 RDEPEND=">=media-libs/libogg-1.0_rc2
18 xmms? ( media-sound/xmms )"
19 DEPEND="${RDEPEND}
20 x86? ( dev-lang/nasm )
21 sys-apps/gawk"
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}
26 if ! use xmms
27 then
28 sed -i -e '/^@FLaC__HAS_XMMS_TRUE/d' src/Makefile.in || die
29 fi
30
31 epatch ${FILESDIR}/${P}-m4.patch
32 epatch ${FILESDIR}/${P}-libtool.patch
33 epatch ${WORKDIR}/${P}-altivec.patch
34
35 elibtoolize --reverse-deps
36 }
37
38 src_compile() {
39 use hppa && [ "`gcc-fullversion`" == "3.4.0" ] && replace-cpu-flags 2.0 1.0
40
41 econf \
42 --with-pic \
43 `use_enable sse` \
44 || die
45
46 # the man page ebuild requires docbook2man... yick!
47 sed -i -e 's:include man:include:g' Makefile
48
49 # emake seems to mess up the building of the xmms input plugin
50 make || die
51 }
52
53 src_install() {
54 make DESTDIR="${D}" install || die
55 dodoc AUTHORS README
56
57 # Keep around old lib
58 preserve_old_lib /usr/$(get_libdir)/libFLAC.so.4
59 preserve_old_lib /usr/$(get_libdir)/libFLAC++.so.2
60 }
61
62 pkg_postinst() {
63 preserve_old_lib_notify /usr/$(get_libdir)/libFLAC.so.4
64 preserve_old_lib_notify /usr/$(get_libdir)/libFLAC++.so.2
65 }
66
67 # see #59482
68 src_test() { :; }

  ViewVC Help
Powered by ViewVC 1.1.20