[tracker] tracker-extract: Make PS extractor optional, using --enable-ps
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Make PS extractor optional, using --enable-ps
- Date: Thu, 11 Jul 2013 10:49:44 +0000 (UTC)
commit 648e3b0ca9366c243de89ff56a714832e4006872
Author: Jonatan PĂ„lsson <jonatan palsson pelagicore com>
Date: Tue Jul 9 10:09:41 2013 +0200
tracker-extract: Make PS extractor optional, using --enable-ps
configure.ac | 21 +++++++++++++++++++++
src/tracker-extract/Makefile.am | 7 +++++--
2 files changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index dffaaa4..218494c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2239,6 +2239,26 @@ fi
AM_CONDITIONAL(HAVE_MP3, test "x$have_mp3" = "xyes")
####################################################################
+# Check for tracker-extract: ps
+####################################################################
+
+AC_ARG_ENABLE(ps,
+ AS_HELP_STRING([--enable-ps],
+ [enable PS support [[default=auto]]]),,
+ [enable_ps=auto])
+
+if test "x$enable_ps" != "xno"; then
+ AC_SUBST(PS_CFLAGS)
+ AC_SUBST(PS_LIBS)
+ AC_DEFINE(HAVE_PS, [], [Define if we have PS extractor])
+ have_ps=yes
+else
+ have_ps="no (disabled)"
+fi
+
+AM_CONDITIONAL(HAVE_PS, test "x$have_ps" = "xyes")
+
+####################################################################
# Check for tracker-extract, tracker-writeback: totem-pl-parser
####################################################################
@@ -2517,6 +2537,7 @@ Metadata Extractors:
Support AbiWord document parsing: $have_abiword
Support DVI parsing: $have_dvi
Support MP3 parsing: $have_mp3
+ Support PS parsing: $have_ps
Data Miners:
diff --git a/src/tracker-extract/Makefile.am b/src/tracker-extract/Makefile.am
index b13110a..639cb7d 100644
--- a/src/tracker-extract/Makefile.am
+++ b/src/tracker-extract/Makefile.am
@@ -54,13 +54,11 @@ rules_in_files = \
# We don't always link with libtracker-common, we only link
# against it if we directly use functions in the .so
modules_LTLIBRARIES = \
- libextract-ps.la \
libextract-text.la \
libextract-icon.la
rules_DATA = \
10-ico.rule \
- 10-ps.rule \
90-text-generic.rule
if HAVE_LIBVORBIS
@@ -168,6 +166,11 @@ modules_LTLIBRARIES += libextract-mp3.la
rules_DATA += 10-mp3.rule
endif
+if HAVE_PS
+modules_LTLIBRARIES += libextract-ps.la
+rules_DATA += 10-ps.rule
+endif
+
# ABW
libextract_abw_la_SOURCES = tracker-extract-abw.c
libextract_abw_la_CFLAGS = $(TRACKER_EXTRACT_MODULES_CFLAGS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]