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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Oct 14 19:01:13 2012 UTC (20 months, 4 weeks ago) by armin76
Branch: MAIN
Changes since 1.7: +2 -2 lines
Drop sparc keywords

(Portage version: 2.1.11.16/cvs/Linux ia64)

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-r1.ebuild,v 1.7 2012/09/15 06:17:20 radhermit Exp $
4
5 EAPI=4
6 inherit eutils 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 x86"
15 IUSE="ffmpeg gsf gtk pdf qt4" # test
16
17 RESTRICT="test"
18
19 RDEPEND="app-arch/bzip2
20 app-text/iso-codes
21 >=dev-libs/glib-2
22 media-gfx/exiv2
23 media-libs/flac
24 media-libs/libmpeg2
25 media-libs/libogg
26 media-libs/libvorbis
27 >=sys-devel/libtool-2.2.6b
28 sys-libs/zlib
29 virtual/libintl
30 ffmpeg? ( >=virtual/ffmpeg-0.10 )
31 gsf? ( >=gnome-extra/libgsf-1.14.21 )
32 gtk? ( x11-libs/gtk+:2 )
33 pdf? ( app-text/poppler[cairo] )
34 qt4? (
35 x11-libs/qt-gui:4
36 x11-libs/qt-svg:4
37 )
38 !app-crypt/pkcrack
39 !sci-biology/glimmer
40 !sci-chemistry/pdb-extract"
41 DEPEND="${RDEPEND}
42 sys-devel/gettext
43 virtual/pkgconfig"
44 # test? ( app-forensics/zzuf )
45
46 DOCS="AUTHORS ChangeLog NEWS README TODO"
47
48 src_prepare() {
49 sed -i \
50 -e 's:CODEC_TYPE_VIDEO:AVMEDIA_TYPE_VIDEO:' \
51 src/plugins/thumbnailffmpeg_extractor.c || die
52
53 # Missing AC_ARG_ENABLE wrt #415447
54 use gtk || { sed -i -e '/min_gtk_version=/s:=.*:=9999:' configure || die; }
55
56 # m4/ax_create_pkgconfig_info.m4 is passing environment LDFLAGS to Libs:
57 sed -i -e '/^ax_create_pkgconfig_ldflags=/s:$LDFLAGS ::' configure || die
58 }
59
60 src_configure() {
61 local myconf
62
63 use pdf && append-cppflags "$($(tc-getPKG_CONFIG) --cflags-only-I poppler)"
64
65 if use qt4; then
66 append-cppflags "$($(tc-getPKG_CONFIG) --cflags-only-I QtGui QtSvg)"
67 append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-L QtGui QtSvg)"
68 else
69 myconf="--without-qt"
70 fi
71
72 # Missing AC_ARG_ENABLE wrt #415447. Both because of private _ZTI9MemStream.
73 local opt
74 for opt in ac_cv_header_poppler_goo_gmem_h ac_cv_lib_poppler__ZTI9MemStream; do
75 export ${opt}=$(usex pdf)
76 done
77
78 econf \
79 --enable-glib \
80 $(use_enable gsf) \
81 --disable-gnome \
82 $(use_enable ffmpeg) \
83 ${myconf}
84 }
85
86 src_compile() {
87 emake -j1
88 }
89
90 src_install() {
91 default
92 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
93 }

  ViewVC Help
Powered by ViewVC 1.1.20