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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Tue Mar 3 08:22:55 2015 UTC (4 years, 7 months ago) by dlan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +2 -2 lines
add arm64 support, tested on A53 board

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)

1 # Copyright 1999-2015 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-r1.ebuild,v 1.13 2015/01/29 17:30:46 mgorny 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 ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
18 IUSE="altivec +cxx debug ogg cpu_flags_x86_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}"/${P}-cflags.patch
34 "${FILESDIR}"/${PN}-1.3.0-asneeded.patch
35 "${FILESDIR}"/${PN}-1.3.0-dontbuild-tests.patch
36 "${FILESDIR}"/${PN}-1.3.0-dontbuild-examples.patch
37 )
38
39 AT_M4DIR="m4" autotools-multilib_src_prepare
40 }
41
42 src_configure() {
43 local myeconfargs=(
44 $(use_enable debug)
45 $(use_enable cpu_flags_x86_sse sse)
46 $(use_enable altivec)
47 --disable-doxygen-docs
48 --disable-xmms-plugin
49 $(use_enable cxx cpplibs)
50 $(use_enable ogg)
51 --disable-examples
52 $([[ ${CHOST} == *-darwin* ]] && echo "--disable-asm-optimizations")
53
54 # cross-compile fix (bug #521446)
55 # no effect if ogg support is disabled
56 --with-ogg
57 )
58 autotools-multilib_src_configure
59 }
60
61 src_test() {
62 if [[ ${UID} != 0 ]]; then
63 autotools-multilib_src_test -j1
64 else
65 ewarn "Tests will fail if ran as root, skipping."
66 fi
67 }
68
69 src_install() {
70 autotools-multilib_src_install \
71 docdir="${EPREFIX}"/usr/share/doc/${PF}/html
72 }

  ViewVC Help
Powered by ViewVC 1.1.20