diff options
Diffstat (limited to 'media-video/mediainfo/mediainfo-0.7.58.ebuild')
-rw-r--r-- | media-video/mediainfo/mediainfo-0.7.58.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/media-video/mediainfo/mediainfo-0.7.58.ebuild b/media-video/mediainfo/mediainfo-0.7.58.ebuild new file mode 100644 index 000000000000..c9a0735b9ab7 --- /dev/null +++ b/media-video/mediainfo/mediainfo-0.7.58.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/mediainfo/mediainfo-0.7.58.ebuild,v 1.1 2012/05/31 10:22:48 radhermit Exp $ + +EAPI="4" +WX_GTK_VER="2.8" + +inherit eutils autotools-utils 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" + +LICENSE="LGPL-3" +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" + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +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 + autotools-utils_autoreconf + done +} + +src_configure() { + local target + for target in ${TARGETS}; do + ECONF_SOURCE="${S}/Project/GNU/${target}" + [[ ${target} == "GUI" ]] && local myeconfargs=( --with-wxwidgets --with-wx-gui ) + autotools-utils_src_configure + done +} + +src_compile() { + local target + for target in ${TARGETS}; do + ECONF_SOURCE="${S}/Project/GNU/${target}" + autotools-utils_src_compile + done +} +src_install() { + local target + for target in ${TARGETS}; do + ECONF_SOURCE="${S}/Project/GNU/${target}" + autotools-utils_src_install + 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 +} |