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

Contents of /media-libs/flac/flac-1.2.1-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Wed Dec 24 17:08:42 2014 UTC (4 years, 9 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2014 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.1-r4.ebuild,v 1.14 2014/03/19 13:46:49 ago Exp $
4
5 EAPI=2
6 inherit autotools eutils
7
8 DESCRIPTION="free lossless audio encoder and decoder"
9 HOMEPAGE="http://flac.sourceforge.net"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
11 mirror://gentoo/${P}-embedded-m4.tar.bz2"
12
13 LICENSE="BSD FDL-1.2 GPL-2 LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
16 IUSE="3dnow altivec +cxx debug ogg sse static-libs"
17
18 RDEPEND="ogg? ( >=media-libs/libogg-1.1.3 )"
19 DEPEND="${RDEPEND}
20 x86? ( dev-lang/nasm )
21 !elibc_uclibc? ( sys-devel/gettext )
22 virtual/pkgconfig"
23
24 src_prepare() {
25 epatch \
26 "${FILESDIR}"/${P}-asneeded.patch \
27 "${FILESDIR}"/${P}-cflags.patch \
28 "${FILESDIR}"/${P}-asm.patch \
29 "${FILESDIR}"/${P}-dontbuild-tests.patch \
30 "${FILESDIR}"/${P}-dontbuild-examples.patch \
31 "${FILESDIR}"/${P}-gcc-4.3-includes.patch \
32 "${FILESDIR}"/${P}-ogg-m4.patch
33
34 cp "${WORKDIR}"/*.m4 m4 || die
35
36 # bug 466990
37 sed -i "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" configure.in || die
38
39 AT_M4DIR="m4" eautoreconf
40 }
41
42 src_configure() {
43 econf \
44 $(use_enable static-libs static) \
45 --disable-dependency-tracking \
46 $(use_enable debug) \
47 $(use_enable sse) \
48 $(use_enable 3dnow) \
49 $(use_enable altivec) \
50 --disable-doxygen-docs \
51 --disable-xmms-plugin \
52 $(use_enable cxx cpplibs) \
53 $(use_enable ogg) \
54 --disable-examples
55 }
56
57 src_test() {
58 if [ $UID != 0 ]; then
59 emake -j1 check || die
60 else
61 ewarn "Tests will fail if ran as root, skipping."
62 fi
63 }
64
65 src_install() {
66 emake DESTDIR="${D}" install || die
67
68 rm -rf "${D}"/usr/share/doc/${P}
69 dodoc AUTHORS README
70 dohtml -r doc/html/*
71
72 find "${D}" -name '*.la' -exec rm -f '{}' +
73 }

  ViewVC Help
Powered by ViewVC 1.1.20