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-video/mkvtoolnix/mkvtoolnix-4.9.1.ebuild,v 1.4 2012/04/16 21:20:03 ranger Exp $ |
4 |
|
5 |
EAPI=4 |
6 |
|
7 |
inherit wxwidgets autotools |
8 |
|
9 |
DESCRIPTION="Tools to create, alter, and inspect Matroska files" |
10 |
HOMEPAGE="http://www.bunkus.org/videotools/mkvtoolnix" |
11 |
SRC_URI="http://www.bunkus.org/videotools/mkvtoolnix/sources/${P}.tar.bz2" |
12 |
|
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
15 |
KEYWORDS="amd64 ppc ~ppc64 x86 ~x86-fbsd" |
16 |
IUSE="bzip2 debug lzo pch wxwidgets" |
17 |
|
18 |
RDEPEND=" |
19 |
>=dev-libs/libebml-1.2.0 |
20 |
>=media-libs/libmatroska-1.1.0 |
21 |
>=dev-libs/boost-1.36.0 |
22 |
dev-libs/expat |
23 |
media-libs/flac |
24 |
media-libs/libogg |
25 |
media-libs/libvorbis |
26 |
sys-apps/file |
27 |
sys-libs/zlib |
28 |
bzip2? ( app-arch/bzip2 ) |
29 |
lzo? ( dev-libs/lzo ) |
30 |
wxwidgets? ( x11-libs/wxGTK:2.8[X] ) |
31 |
" |
32 |
DEPEND="${RDEPEND} |
33 |
dev-ruby/rake |
34 |
" |
35 |
|
36 |
src_prepare() { |
37 |
# Disable automagic curl dep used for online update checking |
38 |
sed -i -e '/curl/d' configure.in |
39 |
export CURL_CFLAGS="" CURL_LIBS="" |
40 |
|
41 |
eautoreconf |
42 |
} |
43 |
|
44 |
src_configure() { |
45 |
local myconf |
46 |
|
47 |
use pch || myconf="${myconf} --disable-precompiled-headers" |
48 |
|
49 |
if use wxwidgets ; then |
50 |
WX_GTK_VER="2.8" |
51 |
need-wxwidgets unicode |
52 |
myconf="${myconf} --with-wx-config=${WX_CONFIG}" |
53 |
fi |
54 |
|
55 |
econf \ |
56 |
$(use_enable lzo) \ |
57 |
$(use_enable bzip2 bz2) \ |
58 |
$(use_enable wxwidgets) \ |
59 |
$(use_enable debug) \ |
60 |
--disable-qt \ |
61 |
${myconf} \ |
62 |
--with-boost-regex=boost_regex \ |
63 |
--with-boost-filesystem=boost_filesystem \ |
64 |
--with-boost-system=boost_system |
65 |
} |
66 |
|
67 |
src_compile() { |
68 |
rake || die "rake failed" |
69 |
} |
70 |
|
71 |
src_install() { |
72 |
# Don't run strip while installing stuff, leave to portage the job. |
73 |
DESTDIR="${D}" rake install || die |
74 |
|
75 |
dodoc AUTHORS ChangeLog README TODO |
76 |
doman doc/man/*.1 |
77 |
} |