summaryrefslogtreecommitdiffstats
path: root/audio-libs/raptor/CONFIGURE
diff options
context:
space:
mode:
Diffstat (limited to 'audio-libs/raptor/CONFIGURE')
-rwxr-xr-xaudio-libs/raptor/CONFIGURE43
1 files changed, 43 insertions, 0 deletions
diff --git a/audio-libs/raptor/CONFIGURE b/audio-libs/raptor/CONFIGURE
new file mode 100755
index 0000000000..08673aed6f
--- /dev/null
+++ b/audio-libs/raptor/CONFIGURE
@@ -0,0 +1,43 @@
+config_query RAPTOR_PARSELIST "Enable all parsers?" y
+
+if [ "$RAPTOR_PARSELIST" == "y" ]; then
+ persistent_add RAPTOR_LIST &&
+ RAPTOR_LIST="all"
+else
+ config_query_option RAPTOR_LIST "Enable RDF XML?" y "rdfxml" ""
+ config_query_option RAPTOR_LIST "Enable N-Triples?" y "ntriples" ""
+ config_query_option RAPTOR_LIST "Enable Turtle?" y "turtle" ""
+ message "${MESSAGE_COLOR}RSS Tag Soup requires libxml2${DEFAULT_COLOR}" &&
+ config_query_option RAPTOR_LIST "Enable RSS TagSoup?" y "rss-tag-soup" ""
+ RAPTOR_LIST="${RAPTOR_LIST/# /}"
+fi &&
+
+config_query_list RAPTOR_XMLVERSION \
+ "Which version of XML checking do you want?" \
+ "1.0" "1.1"
+
+#
+# RSS Tag Soup requires libxml2
+#
+if echo $RAPTOR_LIST | grep -q "rss-tag-soup" ||
+ [ "$RAPTOR_PARSELIST" == "y" ]; then
+ persistent_add RAPTOR_WWWLIB &&
+ RAPTOR_WWWLIB="xml"
+else
+ config_query_list RAPTOR_WWWLIB \
+ "Which WWW library do you want to use?" \
+ xml curl libwww none
+fi &&
+
+#
+# RSS Tag Soup requires libxml2
+#
+if echo $RAPTOR_LIST | grep -q "rss-tag-soup" ||
+ [ "$RAPTOR_PARSELIST" == "y" ]; then
+ persistent_add RAPTOR_PARSER &&
+ RAPTOR_PARSER="libxml"
+else
+ config_query_list RAPTOR_PARSER \
+ "Which XML parser do you want to use?" \
+ libxml expat
+fi