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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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.3.0-r1.ebuild,v 1.1 2014/09/27 22:16:21 ssuominen 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="3dnow altivec +cxx debug ogg sse static-libs"
19
20 RDEPEND="ogg? ( >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] )
21 abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r1
22 !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
23 DEPEND="${RDEPEND}
24 app-arch/xz-utils
25 abi_x86_32? ( dev-lang/nasm )
26 !elibc_uclibc? ( sys-devel/gettext )
27 virtual/pkgconfig"
28
29 src_prepare() {
30 local PATCHES=(
31 "${FILESDIR}"/${P}-asneeded.patch
32 "${FILESDIR}"/${P}-dontbuild-tests.patch
33 "${FILESDIR}"/${P}-dontbuild-examples.patch
34 "${FILESDIR}"/${P}-metaflac_strcat.patch
35 )
36
37 AT_M4DIR="m4" autotools-multilib_src_prepare
38 }
39
40 src_configure() {
41 local myeconfargs=(
42 $(use_enable debug)
43 $(use_enable sse)
44 $(use_enable 3dnow)
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 )
52 autotools-multilib_src_configure
53 }
54
55 src_test() {
56 if [[ ${UID} != 0 ]]; then
57 autotools-multilib_src_test -j1
58 else
59 ewarn "Tests will fail if ran as root, skipping."
60 fi
61 }
62
63 src_install() {
64 autotools-multilib_src_install \
65 docdir=/usr/share/doc/${PF}/html
66 }

  ViewVC Help
Powered by ViewVC 1.1.20