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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Sep 20 17:54:57 2007 UTC (12 years ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump.
(Portage version: 2.1.3.9)

1 # Copyright 1999-2007 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.2.0.ebuild,v 1.4 2007/09/15 07:06:17 drac Exp $
4
5 inherit autotools eutils libtool toolchain-funcs
6
7 PATCHLEVEL="15"
8
9 DESCRIPTION="free lossless audio encoder and decoder"
10 HOMEPAGE="http://flac.sourceforge.net"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
12 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
13
14 LICENSE="GPL-2 LGPL-2"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
17 IUSE="3dnow altivec debug doc ogg sse"
18
19 RDEPEND="ogg? ( >=media-libs/libogg-1.1.2 )"
20 DEPEND="${RDEPEND}
21 x86? ( dev-lang/nasm )
22 sys-apps/gawk
23 sys-devel/gettext
24 doc? ( app-doc/doxygen )
25 dev-util/pkgconfig"
26
27 RESTRICT="test"
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32
33 # Enable only for GCC 4.1 and later
34 [[ $(gcc-major-version)$(gcc-minor-version) -ge 41 ]] || \
35 export EPATCH_EXCLUDE="180_all_visibility.patch"
36
37 EPATCH_SUFFIX="patch" \
38 epatch "${WORKDIR}/patches"
39 AT_M4DIR="m4" eautoreconf
40 elibtoolize
41 }
42
43 src_compile() {
44 econf \
45 $(use_enable ogg) \
46 $(use_enable sse) \
47 $(use_enable 3dnow) \
48 $(use_enable altivec) \
49 $(use_enable debug) \
50 $(use_enable doc doxygen-docs) \
51 --disable-dependency-tracking \
52 --disable-xmms-plugin || die "econf failed."
53
54 # the man page ebuild requires docbook2man... yick!
55 sed -i -e 's:include man:include:g' Makefile
56
57 emake || die "emake failed."
58 }
59
60 src_install() {
61 emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" \
62 install || die "emake install failed."
63 dodoc AUTHORS README
64
65 use doc || rm -rf "${D}"/usr/share/doc/${PF}/api
66
67 doman man/{flac,metaflac}.1
68 }
69
70 pkg_postinst() {
71 ewarn "If you've upgraded from a previous version of flac, you may need to re-emerge"
72 ewarn "packages that linked against flac by running revdep-rebuild"
73 }

  ViewVC Help
Powered by ViewVC 1.1.20