blob: 43ab8bb87c07979041fa39411550aa49e1098057 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/mediainfo/mediainfo-0.7.70.ebuild,v 1.1 2014/09/04 14:43:31 radhermit Exp $
EAPI=5
WX_GTK_VER="3.0"
inherit eutils autotools wxwidgets multilib
DESCRIPTION="MediaInfo supplies technical and tag information about media files"
HOMEPAGE="http://mediaarea.net/mediainfo/"
SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.bz2"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="curl mms wxwidgets"
RDEPEND="sys-libs/zlib
media-libs/libzen
~media-libs/lib${P}[curl=,mms=]
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/MediaInfo
pkg_setup() {
TARGETS="CLI"
use wxwidgets && TARGETS+=" GUI"
}
src_prepare() {
local target
for target in ${TARGETS}; do
cd "${S}"/Project/GNU/${target}
sed -i -e "s:-O2::" configure.ac
eautoreconf
done
}
src_configure() {
local target
for target in ${TARGETS}; do
cd "${S}"/Project/GNU/${target}
local args=""
[[ ${target} == "GUI" ]] && args="--with-wxwidgets --with-wx-gui"
econf ${args}
done
}
src_compile() {
local target
for target in ${TARGETS}; do
cd "${S}"/Project/GNU/${target}
default
done
}
src_install() {
local target
for target in ${TARGETS}; do
cd "${S}"/Project/GNU/${target}
default
dodoc "${S}"/History_${target}.txt
if [[ ${target} == "GUI" ]]; then
newicon "${S}"/Source/Resource/Image/MediaInfo.png ${PN}.png
make_desktop_entry ${PN}-gui MediaInfo ${PN} "AudioVideo;GTK"
fi
done
}
|