[Libreoffice-commits] .: autogen.sh distro-configs/LibreOfficeMacOSX.conf

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Wed Dec 1 04:22:38 PST 2010


 autogen.sh                            |   18 ++++++++++++++++--
 distro-configs/LibreOfficeMacOSX.conf |   13 +++++++++++++
 2 files changed, 29 insertions(+), 2 deletions(-)

New commits:
commit 2ab75b99ce88f599e420553ff0ca26a2a04597fc
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Wed Dec 1 06:20:29 2010 -0600

    add support for --with-distro

diff --git a/autogen.sh b/autogen.sh
index 6509b40..cd54c90 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,7 +18,6 @@ requote()
         echo "$*"
 }
 
-
 old_args=""
 if test $# -eq 0 && test -f autogen.lastrun; then
     old_args=$(cat autogen.lastrun)
@@ -34,6 +33,20 @@ if test "z`uname -s`" != "zDarwin" ; then
     AUTOMAKE_EXTRA_FLAGS=--warnings=no-portability
 fi
 
+conf_args=$(requote "$@")
+distro_name=$(requote "$@" | sed -n -e "s/.*'--with-distro=\([^']*\)'.*/\1/p")
+if test "z${distro_name}" != "z" ; then
+    cumul=""
+    if test -f "./distro-configs/${distro_name}.conf" ; then
+        IFS=$'\n'
+        for opt in $(cat distro-configs/${distro_name}.conf) ; do cumul="$cumul $opt" ; done ;
+        unset IFS
+        conf_args=$(requote "$@" | sed -e "s/'--with-distro=[^']*'/$cumul/")
+    else
+        echo "Warning: there is no pre-set configuration for ${distro_config}, ignoring --with-distro=${distro_config}"
+    fi
+fi
+
 aclocal $ACLOCAL_FLAGS || exit 1;
 #automake --gnu --add-missing --copy || exit 1;
 #intltoolize --copy --force --automake
@@ -43,7 +56,8 @@ if test "x$NOCONFIGURE" = "x"; then
         eval `echo ./configure $old_args`
     else
         echo "$(requote "$@")" > autogen.lastrun
-        ./configure "$@"
+        echo "./configure ${conf_args}"
+        eval `echo ./configure ${conf_args}`
     fi
 else
     echo "Skipping configure process."
diff --git a/distro-configs/LibreOfficeMacOSX.conf b/distro-configs/LibreOfficeMacOSX.conf
new file mode 100644
index 0000000..70e052a
--- /dev/null
+++ b/distro-configs/LibreOfficeMacOSX.conf
@@ -0,0 +1,13 @@
+--with-vendor=\"The Document Foundation\"
+--enable-opengl
+--enable-hids
+--enable-binfilter
+--with-fonts
+--with-java-target-version=1.5
+--enable-ext-presenter-minimizer
+--enable-ext-presenter-console
+--enable-ext-pdfimport
+--enable-ext-wiki-publisher
+--enable-ext-report-builder
+--with-extension-integration
+--enable-broffice


More information about the Libreoffice-commits mailing list