/[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.1 - (show annotations) (download)
Mon Sep 26 00:33:24 2011 UTC (3 years ago) by radhermit
Branch: MAIN
Version bump. Update to EAPI 4 and add static-libs use flag (bug #381663).

(Portage version: 2.2.0_alpha59/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="4"
6
7 inherit flag-o-matic eutils 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 ~x86-fbsd"
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=/usr \
36 LIBEBML_INCLUDE_DIR=/usr/include/ebml \
37 LIBEBML_LIB_DIR=/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="${D}/usr" libdir="${D}/usr/$(get_libdir)" ${targets}
48 dodoc "${WORKDIR}/${P}/ChangeLog"
49 }

  ViewVC Help
Powered by ViewVC 1.1.20