[Libreoffice-commits] .: Branch 'libreoffice-3-4' - configure.in Makefile.in solenv/bin
Petr Mladek
pmladek at kemper.freedesktop.org
Wed Apr 20 06:37:56 PDT 2011
Makefile.in | 10 +++++++---
configure.in | 22 ++++++++++++++++++++++
solenv/bin/ooinstall | 6 +++---
3 files changed, 32 insertions(+), 6 deletions(-)
New commits:
commit c612724331a3d66d2ee488d91161a54f4d3576bd
Author: Hanno Meyer-Thurow <h.mth at web.de>
Date: Wed Apr 20 15:30:08 2011 +0200
make the installation dir better configurable
install to %libdir% intead of %prefix% as it is usual for other projects;
use the usual DESTDIR instead of OODESTDIR
Note that the default installation path is /usr/local/lib/libreoffice;
it can be redefined by --prefix, --libdir, --with-install-dirname
configure options
Some of these changes contributed by Petr Mladek <pmladek at suse.cz>
diff --git a/Makefile.in b/Makefile.in
index 54e93cf..37c1389 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -8,6 +8,10 @@ else
GBUILD_OPT:=--gmake
endif
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+libdir = @libdir@
+
all: Makefile dmake/dmake at EXEEXT@ src.downloaded
@. ./*[Ee]nv.[Ss]et.sh && \
@@ -16,11 +20,11 @@ all: Makefile dmake/dmake at EXEEXT@ src.downloaded
install:
@. ./*[Ee]nv.[Ss]et.sh && \
- echo "Installing in $${prefix:- at prefix@}..." && \
- ooinstall "$${prefix:- at prefix@}" && \
+ echo "Installing in $${libdir:- at libdir@}/@INSTALL_DIRNAME at ..." && \
+ ooinstall "$${libdir:- at libdir@}/@INSTALL_DIRNAME@" && \
echo "" && \
echo "Installation finished, you can now execute:" && \
- echo "$${prefix:- at prefix@}/program/soffice"
+ echo "$${libdir:- at libdir@}/@INSTALL_DIRNAME@/program/soffice"
dev-install:
@. ./*[Ee]nv.[Ss]et.sh && \
diff --git a/configure.in b/configure.in
index 18de3ff..8cbcd74 100755
--- a/configure.in
+++ b/configure.in
@@ -1207,6 +1207,20 @@ AC_ARG_WITH(vendor,
],
,)
+AC_ARG_WITH(install-dirname,
+ AS_HELP_STRING([--with-install-dirname],
+ [Specify the directory name of the core LibO install dir. The final
+ installation path is defined by <libdir>/<install-dirname>.
+ The default value is "libreoffice" and the default installation
+ patch is /usr/lib/libreoffice.
+
+ FIXME: It affects only the installation by "make install" and not the
+ generated installation sets.])
+ [
+ Usage: --with-install-dirname=lo-3.4.2
+ ],
+,)
+
AC_ARG_WITH(unix-wrapper,
AS_HELP_STRING([--with-unix-wrapper],
[Redefines the name of the UNIX wrapper that will be used in the desktop
@@ -7817,6 +7831,14 @@ else
fi
AC_SUBST(UNIXWRAPPERNAME)
+INSTALL_DIRNAME=libreoffice
+AC_MSG_CHECKING([for install dirname])
+if test -n "$with_install_dirname" -a "$with_install_dirname" != "no" -a "$with_install_dirname" != "yes" ; then
+ INSTALL_DIRNAME="$with_install_dirname"
+fi
+AC_MSG_RESULT([$INSTALL_DIRNAME])
+AC_SUBST(INSTALL_DIRNAME)
+
AC_MSG_CHECKING([whether to statically link to Gtk])
if test -n "$enable_static_gtk" && test "$enable_static_gtk" != "no"; then
ENABLE_STATIC_GTK="TRUE"
diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall
index 2a2d2ad..83717fa 100755
--- a/solenv/bin/ooinstall
+++ b/solenv/bin/ooinstall
@@ -67,9 +67,9 @@ my @larr = grep { $_ ne '' } split(/ /, $langs);
$langs = join (",", @larr);
$destdir='';
-if ( defined $ENV{OODESTDIR} &&
- $ENV{OODESTDIR} ne "" ) {
- $destdir = "-destdir \"$ENV{OODESTDIR}\"";
+if ( defined $ENV{DESTDIR} &&
+ $ENV{DESTDIR} ne "" ) {
+ $destdir = "-destdir \"$ENV{DESTDIR}\"";
}
$strip='';
More information about the Libreoffice-commits
mailing list