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

Contents of /media-libs/flac/flac-1.1.3_beta2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Dec 3 15:10:18 2006 UTC (12 years, 10 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Bump to flac-1.1.3 final, fix AM_PATH_XMMS removal.
(Portage version: 2.1.2_rc2-r3)
 (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.3_beta2.ebuild,v 1.3 2006/11/25 11:07:23 flameeyes Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7
8 inherit libtool eutils toolchain-funcs autotools
9
10 MY_P="${P/_beta/-beta}"
11
12 PATCHLEVEL="9"
13 DESCRIPTION="free lossless audio encoder and decoder"
14 HOMEPAGE="http://flac.sourceforge.net/"
15 SRC_URI="mirror://sourceforge/flac/${MY_P}.tar.gz
16 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
17
18 LICENSE="GPL-2 LGPL-2"
19 SLOT="0"
20 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
21 IUSE="3dnow debug doc ogg sse"
22
23 RDEPEND="ogg? ( >=media-libs/libogg-1.0_rc2 )"
24 DEPEND="${RDEPEND}
25 x86? ( dev-lang/nasm )
26 sys-apps/gawk
27 doc? ( app-doc/doxygen )
28 dev-util/pkgconfig"
29
30 RESTRICT="test"
31
32 S="${WORKDIR}/${MY_P}"
33
34 src_unpack() {
35 unpack ${A}
36 cd "${S}"
37
38 # Enable only for GCC 4.1 and later
39 [[ $(gcc-major-version)$(gcc-minor-version) -ge 41 ]] || \
40 export EPATCH_EXCLUDE="130_all_visibility.patch 160_all_protected.patch"
41
42 # Hard-disable the XMMS plugin now that XMMS is removed.
43 sed -i -e '/AM_PATH_XMMS/d' "${S}/configure.in"
44
45 EPATCH_SUFFIX="patch" \
46 epatch "${WORKDIR}/patches"
47 AT_M4DIR="m4" eautoreconf
48 elibtoolize
49 }
50
51 src_compile() {
52 econf \
53 $(use_enable ogg) \
54 $(use_enable sse) \
55 $(use_enable 3dnow) \
56 $(use_enable debug) \
57 $(use_enable doc doxygen-docs) \
58 --disable-dependency-tracking || die
59
60 # the man page ebuild requires docbook2man... yick!
61 sed -i -e 's:include man:include:g' Makefile
62
63 emake || die "make failed"
64 }
65
66 src_install() {
67 emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" \
68 install || die "make install failed"
69 dodoc AUTHORS README
70
71 use doc || rm -rf "${D}/usr/share/doc/${PF}/api"
72
73 doman man/{flac,metaflac}.1
74 }
75
76 pkg_postinst() {
77 ewarn "If you've upgraded from a previous version of flac, you may need to re-emerge"
78 ewarn "packages that linked against flac by running revdep-rebuild"
79 }

  ViewVC Help
Powered by ViewVC 1.1.20