blob: 9c77cfa4b3cf9017641f58d595226bd9add98ccc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/mediainfo/mediainfo-0.7.36.ebuild,v 1.5 2010/12/02 12:50:42 hwoarang Exp $
EAPI="2"
WX_GTK_VER="2.8"
inherit autotools wxwidgets multilib
DESCRIPTION="MediaInfo supplies technical and tag information about media files"
HOMEPAGE="http://mediainfo.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/source/${PN}/${PV}/${PN}_${PV}.tar.bz2"
S="${WORKDIR}/MediaInfo"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="curl debug libmms static wxwidgets"
RDEPEND="
sys-libs/zlib
!static? (
media-libs/libzen
~media-libs/lib${P}[curl=,libmms=]
)
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
static? (
media-libs/libzen[static-libs]
~media-libs/lib${P}[curl=,libmms=,static-libs]
)"
pkg_setup() {
TARGETS="CLI"
use wxwidgets && TARGETS+=" GUI"
}
src_prepare() {
for x in ${TARGETS}; do
cd "${S}/Project/GNU/${x}"
eautoreconf
done
}
src_configure() {
for target in ${TARGETS}; do
cd "${S}/Project/GNU/${target}"
local myconf=""
[[ ${target} == "GUI" ]] && myconf="${myconf} --with-wxwidgets --with-wx-gui"
econf \
${myconf} \
--disable-dependency-tracking \
$(use_enable debug) \
$(use_enable !static shared) \
$(use_enable static static) \
$(use_enable static staticlibs)
done
}
src_compile() {
for x in ${TARGETS}; do
cd "${S}/Project/GNU/${x}"
emake || die "emake failed for ${x}"
done
}
src_install() {
for x in ${TARGETS}; do
cd "${S}/Project/GNU/${x}"
emake DESTDIR="${D}" install || die "emake install failed"
dodoc "${S}/History_${x}.txt" || die
if [[ "${x}" = "GUI" ]]; then
newicon "${S}/Source/Ressource/Image/MediaInfo.png" "${PN}.png"
make_desktop_entry "${PN}-gui" "MediaInfo" "${PN}" "AudioVideo;GTK;"
fi
done
dodoc "${S}/"*.html || die
}
|