/[gentoo-x86]/media-video/mkvtoolnix/mkvtoolnix-2.2.0.ebuild
Gentoo

Contents of /media-video/mkvtoolnix/mkvtoolnix-2.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Sep 8 06:21:04 2008 UTC (10 years, 3 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
remove old
(Portage version: 2.2_rc8/cvs/Linux 2.6.26.3 x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/mkvtoolnix/mkvtoolnix-2.2.0.ebuild,v 1.4 2008/07/26 21:36:25 carlo Exp $
4
5 EAPI="1"
6 inherit eutils wxwidgets flag-o-matic qt4 autotools
7
8 DESCRIPTION="Tools to create, alter, and inspect Matroska files"
9 HOMEPAGE="http://www.bunkus.org/videotools/mkvtoolnix"
10 SRC_URI="http://www.bunkus.org/videotools/mkvtoolnix/sources/${P}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
15 IUSE="wxwindows flac bzip2 lzo qt4 debug unicode"
16
17 DEPEND=">=dev-libs/libebml-0.7.7
18 >=media-libs/libmatroska-0.8.1
19 media-libs/libogg
20 media-libs/libvorbis
21 dev-libs/expat
22 dev-libs/libpcre
23 sys-libs/zlib
24 wxwindows? ( =x11-libs/wxGTK-2.6* )
25 flac? ( media-libs/flac )
26 bzip2? ( app-arch/bzip2 )
27 lzo? ( dev-libs/lzo )
28 qt4? ( || ( x11-libs/qt-gui:4 =x11-libs/qt-4.3* ) )"
29
30 pkg_setup() {
31 WX_GTK_VER="2.6"
32 if use wxwindows; then
33 use unicode && need-wxwidgets unicode || need-wxwidgets ansi
34 fi
35
36 if ! built_with_use --missing true dev-libs/libpcre cxx; then
37 eerror "To build ${PN} you need the C++ bindings for pcre."
38 eerror "Please enable the cxx USE flag for dev-libs/libpcre"
39 die "Missing PCRE C++ bindings."
40 fi
41 }
42
43 src_unpack() {
44 unpack ${A}
45 cd "${S}"
46 eautoreconf
47 }
48
49 src_compile() {
50 use wxwindows && myconf="--with-wx-config=${WX_CONFIG}"
51 econf \
52 $(use_enable lzo) \
53 $(use_enable bzip2 bz2) \
54 $(use_enable wxwindows wxwidgets) \
55 $(use_enable debug) \
56 $(use_with flac) \
57 $(use_enable qt4 qt) \
58 ${myconf} \
59 || die "./configure died"
60
61 # Don't run strip while installing stuff, leave to portage the job.
62 emake STRIP="true" || die "make failed"
63 }
64
65 src_install() {
66 emake DESTDIR="${D}" STRIP="true" install || die "make install failed"
67 dodoc AUTHORS ChangeLog README TODO
68 dohtml doc/mkvmerge-gui.html doc/images/*
69 docinto examples
70 dodoc examples/*
71 }

  ViewVC Help
Powered by ViewVC 1.1.20