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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Nov 28 14:01:35 2014 UTC (4 years, 10 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Respect CFLAGS (fixes bug #530920).

(Portage version: 2.2.14/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.3.1.ebuild,v 1.2 2014/11/27 14:54:38 radhermit Exp $
4
5 EAPI=5
6 AUTOTOOLS_AUTORECONF=1
7 AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
8
9 inherit autotools-multilib
10
11 DESCRIPTION="free lossless audio encoder and decoder"
12 HOMEPAGE="http://flac.sourceforge.net"
13 SRC_URI="http://downloads.xiph.org/releases/${PN}/${P}.tar.xz"
14
15 LICENSE="BSD FDL-1.2 GPL-2 LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
18 IUSE="altivec +cxx debug ogg sse static-libs"
19
20 RDEPEND="ogg? ( >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] )
21 abi_x86_32? (
22 !<=app-emulation/emul-linux-x86-soundlibs-20130224-r1
23 !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
24 )"
25 DEPEND="${RDEPEND}
26 app-arch/xz-utils
27 abi_x86_32? ( dev-lang/nasm )
28 !elibc_uclibc? ( sys-devel/gettext )
29 virtual/pkgconfig"
30
31 src_prepare() {
32 local PATCHES=(
33 "${FILESDIR}"/${PN}-1.3.0-asneeded.patch
34 "${FILESDIR}"/${PN}-1.3.0-dontbuild-tests.patch
35 "${FILESDIR}"/${PN}-1.3.0-dontbuild-examples.patch
36 )
37
38 AT_M4DIR="m4" autotools-multilib_src_prepare
39 }
40
41 src_configure() {
42 local myeconfargs=(
43 $(use_enable debug)
44 $(use_enable sse)
45 $(use_enable altivec)
46 --disable-doxygen-docs
47 --disable-xmms-plugin
48 $(use_enable cxx cpplibs)
49 $(use_enable ogg)
50 --disable-examples
51 $([[ ${CHOST} == *-darwin* ]] && echo "--disable-asm-optimizations")
52 )
53 autotools-multilib_src_configure
54 }
55
56 src_test() {
57 if [[ ${UID} != 0 ]]; then
58 autotools-multilib_src_test -j1
59 else
60 ewarn "Tests will fail if ran as root, skipping."
61 fi
62 }
63
64 src_install() {
65 autotools-multilib_src_install \
66 docdir="${EPREFIX}"/usr/share/doc/${PF}/html
67 }

  ViewVC Help
Powered by ViewVC 1.1.20