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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (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.6: +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-r5.ebuild,v 1.6 2014/06/18 19:27:19 mgorny Exp $
4
5 EAPI=5
6
7 AUTOTOOLS_AUTORECONF=1
8 AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
9 inherit autotools-multilib
10
11 DESCRIPTION="free lossless audio encoder and decoder"
12 HOMEPAGE="http://flac.sourceforge.net"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
14 mirror://gentoo/${P}-embedded-m4.tar.bz2"
15
16 LICENSE="BSD FDL-1.2 GPL-2 LGPL-2.1"
17 SLOT="0"
18 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
19 IUSE="3dnow altivec +cxx debug ogg sse static-libs"
20
21 RDEPEND="ogg? ( >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] )
22 abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r1
23 !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
24 DEPEND="${RDEPEND}
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}-cflags.patch
33 "${FILESDIR}"/${P}-asm.patch
34 "${FILESDIR}"/${P}-dontbuild-tests.patch
35 "${FILESDIR}"/${P}-dontbuild-examples.patch
36 "${FILESDIR}"/${P}-gcc-4.3-includes.patch
37 "${FILESDIR}"/${P}-ogg-m4.patch
38 )
39
40 cp "${WORKDIR}"/*.m4 m4 || die
41
42 # bug 466990
43 sed -i "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" configure.in || die
44
45 # fix html install with out-of-source build
46 sed -i -e 's:cd api:cd $(srcdir)/api:' doc/html/Makefile.am || die
47
48 AT_M4DIR="m4" \
49 autotools-multilib_src_prepare
50 }
51
52 src_configure() {
53 local myeconfargs=(
54 $(use_enable debug)
55 $(use_enable sse)
56 $(use_enable 3dnow)
57 $(use_enable altivec)
58 --disable-doxygen-docs
59 --disable-xmms-plugin
60 $(use_enable cxx cpplibs)
61 $(use_enable ogg)
62 --disable-examples
63 )
64 autotools-multilib_src_configure
65 }
66
67 src_test() {
68 if [[ ${UID} != 0 ]]; then
69 autotools-multilib_src_test -j1
70 else
71 ewarn "Tests will fail if ran as root, skipping."
72 fi
73 }
74
75 src_install() {
76 autotools-multilib_src_install \
77 docdir=/usr/share/doc/${PF}/html
78 }

  ViewVC Help
Powered by ViewVC 1.1.20