/[gentoo-x86]/media-libs/libextractor/libextractor-0.6.3.ebuild
Gentoo

Contents of /media-libs/libextractor/libextractor-0.6.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Aug 5 08:58:21 2012 UTC (23 months, 2 weeks ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)

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-libs/libextractor/libextractor-0.6.3.ebuild,v 1.4 2012/05/05 08:02:42 jdhore Exp $
4
5 EAPI=4
6 inherit flag-o-matic multilib toolchain-funcs
7
8 DESCRIPTION="A library used to extract metadata from files of arbitrary type"
9 HOMEPAGE="http://www.gnu.org/software/libextractor/"
10 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~sparc x86"
15 IUSE="ffmpeg gsf qt4" # test
16
17 RDEPEND="app-arch/bzip2
18 app-text/iso-codes
19 app-text/poppler[cairo]
20 >=dev-libs/glib-2
21 media-gfx/exiv2
22 media-libs/flac
23 media-libs/libmpeg2
24 media-libs/libogg
25 media-libs/libvorbis
26 >=sys-devel/libtool-2.2.6b
27 sys-libs/zlib
28 virtual/libintl
29 x11-libs/gtk+:2
30 ffmpeg? ( >=virtual/ffmpeg-0.6.90 )
31 gsf? ( >=gnome-extra/libgsf-1.14.21 )
32 qt4? (
33 x11-libs/qt-gui:4
34 x11-libs/qt-svg:4
35 )"
36 DEPEND="${RDEPEND}
37 virtual/pkgconfig
38 sys-devel/gettext"
39 # test? ( app-forensics/zzuf )
40
41 RESTRICT="test"
42
43 DOCS="AUTHORS ChangeLog NEWS README TODO"
44
45 src_prepare() {
46 sed -i \
47 -e 's:CODEC_TYPE_VIDEO:AVMEDIA_TYPE_VIDEO:' \
48 src/plugins/thumbnailffmpeg_extractor.c || die
49 }
50
51 src_configure() {
52 local myconf
53
54 if use qt4; then
55 append-cppflags "$($(tc-getPKG_CONFIG) --cflags-only-I QtGui QtSvg)"
56 append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-L QtGui QtSvg)"
57 else
58 myconf="--without-qt"
59 fi
60
61 econf \
62 --enable-glib \
63 $(use_enable gsf) \
64 --disable-gnome \
65 $(use_enable ffmpeg) \
66 ${myconf}
67 }
68
69 src_compile() {
70 emake -j1
71 }
72
73 src_install() {
74 default
75 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
76 }

  ViewVC Help
Powered by ViewVC 1.1.20