[tracker/tracker-0.16] tracker-extract: Make PS extractor optional, using --enable-ps



commit 1dbc980e5c181accc9ab9ad29d33dc21ce16d0bb
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 0393ae4..63b22c0 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]