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

Contents of /media-libs/libmatroska/libmatroska-1.3.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Sep 6 04:14:53 2012 UTC (22 months, 2 weeks ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +6 -6 lines
added ~x86-linux

(Portage version: 2.2.0_alpha124/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libmatroska/libmatroska-1.3.0.ebuild,v 1.8 2012/08/19 15:56:14 armin76 Exp $
4
5 EAPI="4"
6
7 inherit flag-o-matic eutils multilib toolchain-funcs
8
9 DESCRIPTION="Extensible multimedia container format based on EBML"
10 HOMEPAGE="http://www.matroska.org/"
11 SRC_URI="http://www.bunkus.org/videotools/mkvtoolnix/sources/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-linux"
16 IUSE="static-libs"
17 RESTRICT="test"
18
19 DEPEND=">=dev-libs/libebml-1.2.1"
20 RDEPEND="${DEPEND}"
21
22 S="${WORKDIR}/${P}/make/linux"
23
24 src_prepare() {
25 epatch "${FILESDIR}/${PN}-1.0.0-respectflags.patch"
26 }
27
28 src_compile() {
29 local targets="sharedlib"
30 use static-libs && targets+=" staticlib"
31
32 #fixes locale for gcc3.4.0 to close bug 52385
33 append-flags $(test-flags -finput-charset=ISO8859-15)
34
35 emake PREFIX="${EPREFIX}"/usr \
36 LIBEBML_INCLUDE_DIR="${EPREFIX}"/usr/include/ebml \
37 LIBEBML_LIB_DIR="${EPREFIX}"/usr/$(get_libdir) \
38 CXX="$(tc-getCXX)" \
39 AR="$(tc-getAR)" \
40 ${targets}
41 }
42
43 src_install() {
44 local targets="install_sharedlib install_headers"
45 use static-libs && targets+=" install_staticlib"
46
47 emake prefix="${ED}/usr" libdir="${ED}/usr/$(get_libdir)" ${targets}
48 dodoc "${WORKDIR}/${P}/ChangeLog"
49 }

  ViewVC Help
Powered by ViewVC 1.1.20