You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ji...@apache.org on 2023/02/08 16:40:10 UTC

svn commit: r1907524 - in /openoffice/devtools/build-scripts/4.1.14: unxlngi6/build_aoo32bit_on_centos5.sh unxlngix6/build_aoo64bit_on_centos5.sh unxmacos/build_aoo64bit_on_macos.sh

Author: jim
Date: Wed Feb  8 16:40:10 2023
New Revision: 1907524

URL: http://svn.apache.org/viewvc?rev=1907524&view=rev
Log:
Build scripts for macOS and Linux (CentOS5)

Added:
    openoffice/devtools/build-scripts/4.1.14/unxlngi6/build_aoo32bit_on_centos5.sh   (with props)
    openoffice/devtools/build-scripts/4.1.14/unxlngix6/build_aoo64bit_on_centos5.sh   (with props)
    openoffice/devtools/build-scripts/4.1.14/unxmacos/build_aoo64bit_on_macos.sh   (with props)

Added: openoffice/devtools/build-scripts/4.1.14/unxlngi6/build_aoo32bit_on_centos5.sh
URL: http://svn.apache.org/viewvc/openoffice/devtools/build-scripts/4.1.14/unxlngi6/build_aoo32bit_on_centos5.sh?rev=1907524&view=auto
==============================================================================
--- openoffice/devtools/build-scripts/4.1.14/unxlngi6/build_aoo32bit_on_centos5.sh (added)
+++ openoffice/devtools/build-scripts/4.1.14/unxlngi6/build_aoo32bit_on_centos5.sh Wed Feb  8 16:40:10 2023
@@ -0,0 +1,84 @@
+#!/usr/bin/env bash
+
+#
+# Parse options
+#
+AOO_SKIP_CONFIG=
+AOO_JUST_CONFIG=
+AOO_VERBOSE_BUILD=
+AOO_BUILD_TYPE=
+AOO_BUILD_VERSION=
+AOO_BUILD_BETA=
+AOO_BUILD_DEV=
+AOO_BUILD_SRC=
+
+while true; do
+	case "$1" in
+		"--verbose" ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;;
+		"--skip-config" ) AOO_SKIP_CONFIG="yes"; shift ;;
+		"--just-config" ) AOO_JUST_CONFIG="yes"; shift ;;
+		"--build-src" ) AOO_BUILD_SRC="yes"; shift ;;
+		"--dev" ) AOO_BUILD_TYPE="Apache OpenOffice Test Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes"; AOO_BUILD_BETA=""; shift ;;
+		"--beta" ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes"; AOO_BUILD_DEV=""; shift ;;
+		"--" ) shift; break ;;
+		"" ) break ;;
+		* ) echo "unknown option: $1"; shift ;;
+	esac
+done
+
+if [ ! -d ../main -o ! -d sal ] ; then
+	echo "CHDIR into AOO's main/ directory first!"
+	exit 1
+fi
+
+wget -O external/unowinreg/unowinreg.dll http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll
+
+LANGS="ast bg ca ca-XR ca-XV cs da de el en-GB en-US es eu fi fr gd gl he hi hu it ja km ko lt nb nl pl pt pt-BR ru sk sl sr sv ta th tr vi zh-CN zh-TW"
+
+if [ ! -e configure -o configure.in -nt configure ] ; then
+	echo "Running autoconf..."
+	autoconf || exit 1
+fi
+./configure   \
+	--with-build-version="$(date +"%Y-%m-%d %H:%M") - `uname -sm`${AOO_BUILD_VERSION}" \
+	${AOO_VERBOSE_BUILD} \
+	--with-system-stdlibs \
+	--enable-crashdump=yes \
+	--enable-category-b \
+	--enable-wiki-publisher \
+	--enable-bundled-dictionaries \
+	--enable-opengl  \
+	--enable-dbus  \
+	--enable-gstreamer \
+	--without-junit \
+	--without-stlport \
+	--with-ant-home=$HOME/ant \
+	--with-package-format="rpm deb" \
+	--with-lang="${LANGS}" \
+	--with-dmake-url=http://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2 \
+	--with-epm-url=http://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz \
+	| tee config.out || exit 1
+
+source ./LinuxX86Env.Set.sh || exit 1 
+./bootstrap || exit 1
+cd instsetoo_native
+time perl "$SOLARENV/bin/build.pl" --all -- -P6 || exit 1
+cd util
+if [ "$AOO_BUILD_BETA" = "yes" ]; then
+	dmake -P6 openofficebeta  || exit 1
+	dmake -P6 sdkoobeta_en-US || exit 1
+	dmake -P6 ooobetalanguagepack || exit 1
+elif [ "$AOO_BUILD_DEV" = "yes" ]; then
+	dmake -P6 openofficedev  || exit 1
+	dmake -P6 sdkoodev_en-US || exit 1
+	dmake -P6 ooodevlanguagepack || exit 1
+else
+	dmake -P6 ooolanguagepack || exit 1
+	dmake -P6 sdkoo_en-US || exit 1 
+fi
+if [ "$AOO_BUILD_SRC" = "yes" ]; then
+	dmake aoo_srcrelease || exit 1
+fi
+
+date "+Build ended at %H:%M:%S"
+

Propchange: openoffice/devtools/build-scripts/4.1.14/unxlngi6/build_aoo32bit_on_centos5.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: openoffice/devtools/build-scripts/4.1.14/unxlngix6/build_aoo64bit_on_centos5.sh
URL: http://svn.apache.org/viewvc/openoffice/devtools/build-scripts/4.1.14/unxlngix6/build_aoo64bit_on_centos5.sh?rev=1907524&view=auto
==============================================================================
--- openoffice/devtools/build-scripts/4.1.14/unxlngix6/build_aoo64bit_on_centos5.sh (added)
+++ openoffice/devtools/build-scripts/4.1.14/unxlngix6/build_aoo64bit_on_centos5.sh Wed Feb  8 16:40:10 2023
@@ -0,0 +1,84 @@
+#!/usr/bin/env bash
+
+#
+# Parse options
+#
+AOO_SKIP_CONFIG=
+AOO_JUST_CONFIG=
+AOO_VERBOSE_BUILD=
+AOO_BUILD_TYPE=
+AOO_BUILD_VERSION=
+AOO_BUILD_BETA=
+AOO_BUILD_DEV=
+AOO_BUILD_SRC=
+
+while true; do
+	case "$1" in
+		"--verbose" ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;;
+		"--skip-config" ) AOO_SKIP_CONFIG="yes"; shift ;;
+		"--just-config" ) AOO_JUST_CONFIG="yes"; shift ;;
+		"--build-src" ) AOO_BUILD_SRC="yes"; shift ;;
+		"--dev" ) AOO_BUILD_TYPE="Apache OpenOffice Test Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes"; AOO_BUILD_BETA=""; shift ;;
+		"--beta" ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes"; AOO_BUILD_DEV=""; shift ;;
+		"--" ) shift; break ;;
+		"" ) break ;;
+		* ) echo "unknown option: $1"; shift ;;
+	esac
+done
+
+if [ ! -d ../main -o ! -d sal ] ; then
+	echo "CHDIR into AOO's main/ directory first!"
+	exit 1
+fi
+
+wget -O external/unowinreg/unowinreg.dll http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll
+
+LANGS="ast bg ca ca-XR ca-XV cs da de el en-GB en-US es eu fi fr gd gl he hi hu it ja km ko lt nb nl pl pt pt-BR ru sk sl sr sv ta th tr vi zh-CN zh-TW"
+
+if [ ! -e configure -o configure.in -nt configure ] ; then
+	echo "Running autoconf..."
+	autoconf || exit 1
+fi
+./configure   \
+	--with-build-version="$(date +"%Y-%m-%d %H:%M") - `uname -sm`${AOO_BUILD_VERSION}" \
+	${AOO_VERBOSE_BUILD} \
+	--with-system-stdlibs \
+	--enable-crashdump=yes \
+	--enable-category-b \
+	--enable-wiki-publisher \
+	--enable-bundled-dictionaries \
+	--enable-opengl  \
+	--enable-dbus  \
+	--enable-gstreamer \
+	--without-junit \
+	--without-stlport \
+	--with-ant-home=$HOME/ant \
+	--with-package-format="rpm deb" \
+	--with-lang="${LANGS}" \
+	--with-dmake-url=http://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2 \
+	--with-epm-url=http://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz \
+	| tee config.out || exit 1
+
+source ./LinuxX86-64Env.Set.sh || exit 1 
+./bootstrap || exit 1
+cd instsetoo_native
+time perl "$SOLARENV/bin/build.pl" --all -- -P6 || exit 1
+cd util
+if [ "$AOO_BUILD_BETA" = "yes" ]; then
+	dmake -P6 openofficebeta  || exit 1
+	dmake -P6 sdkoobeta_en-US || exit 1
+	dmake -P6 ooobetalanguagepack || exit 1
+elif [ "$AOO_BUILD_DEV" = "yes" ]; then
+	dmake -P6 openofficedev  || exit 1
+	dmake -P6 sdkoodev_en-US || exit 1
+	dmake -P6 ooodevlanguagepack || exit 1
+else
+	dmake -P6 ooolanguagepack || exit 1
+	dmake -P6 sdkoo_en-US || exit 1 
+fi
+if [ "$AOO_BUILD_SRC" = "yes" ]; then
+	dmake aoo_srcrelease || exit 1
+fi
+
+date "+Build ended at %H:%M:%S"
+

Propchange: openoffice/devtools/build-scripts/4.1.14/unxlngix6/build_aoo64bit_on_centos5.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: openoffice/devtools/build-scripts/4.1.14/unxmacos/build_aoo64bit_on_macos.sh
URL: http://svn.apache.org/viewvc/openoffice/devtools/build-scripts/4.1.14/unxmacos/build_aoo64bit_on_macos.sh?rev=1907524&view=auto
==============================================================================
--- openoffice/devtools/build-scripts/4.1.14/unxmacos/build_aoo64bit_on_macos.sh (added)
+++ openoffice/devtools/build-scripts/4.1.14/unxmacos/build_aoo64bit_on_macos.sh Wed Feb  8 16:40:10 2023
@@ -0,0 +1,217 @@
+#!/usr/bin/env bash
+#
+# Build-script for AOO 4.1.x on OSX 10.13
+#
+# OS:
+#   o OSX 10.13.6 (High Sierra)
+#   o jdk1.7.0_80.jdk
+#   o jdk1.8.0_181.jdk
+#   o XCode 7 w/ 10.11 SDK
+#
+# Local Changes:
+#   MacPorts:
+#     o gnutar (1.29) (symlinked gnutar to gtar) (symlinked to ~/bin)
+#     o perl5 (perl5.22) (symlinked to ~/bin)
+#     o p5-archive-*
+#     o p5-lwp-*
+#     o p5-xml-parser
+#     o autoconf (symlinked to ~/bin)
+#     o getopt (symlinked to ~/bin)
+#     o subversion
+#     o git
+##
+#   /usr/local:
+#   o Apache ant 1.9.13 / 1.10.4
+#   o dmake 4.12.3 (https://github.com/jimjag/dmake/archive/dmake-4.12.3.tar.gz)
+#   o epm 4.4.2 (https://github.com/jimjag/epm/archive/epm-4.4.2.tar.gz)
+#   o openssl (1.0.2t)
+#         https://www.openssl.org/source/openssl-1.0.2t.tar.gz
+#         $ export MACOSX_DEPLOYMENT_TARGET=10.7
+#         $ ./Configure darwin64-x86_64-cc no-shared --prefix=/usr/local --openssldir=/usr/local ; make install
+#   o libxml2-2.9.9 (--prefix=/usr/local --enable-shared=no --without-iconv)
+#   o libxslt-1.1.33 (--prefix=/usr/local --enable-shared=no)
+#   o pkg-config 0.29.2 (--prefix=/usr/local)
+#   o GNU patch 2.7.6 (--prefix=/usr/local)
+#
+#   Env:
+#     LC_CTYPE=en_US.UTF-8
+#     LANG=en_US.UTF-8
+#     LIBRARY_PATH=/usr/local/lib
+#     C_INCLUDE_PATH=/usr/local/include
+#     CPLUS_INCLUDE_PATH=/usr/local/include:/Applications/Xcode7.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
+#     MACOSX_DEPLOYMENT_TARGET=10.7
+#     PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:.
+#
+#   Notes:
+#     o openssl required for serf; we build non-shared so all
+#       linkings are to the static libs
+#
+#     o JDK 1.7 seems to work better; and it's always best to
+#       have just *one* version of the JDK installed.
+#
+
+#
+# Build options
+#
+AOO_MACOS_TARGET=10.7
+AOO_JAVA_VERSION=1.7
+AOO_ANT_VERSION=1.9
+
+#
+# Parse options
+#
+AOO_SKIP_CONFIG=
+AOO_JUST_CONFIG=
+AOO_VERBOSE_BUILD=
+AOO_BUILD_TYPE=
+AOO_BUILD_VERSION=
+AOO_BUILD_BETA=
+AOO_BUILD_DEV=
+AOO_BUILD_SRC=
+AOO_BUILD_ALL="yes"
+
+$(xcode-select -p | grep "Xcode7" -q)
+if [ $? != 0 ]; then
+    echo "xcode-select must point to Xcode7."
+    exit 1
+fi
+
+AOPTS=`getopt -o vsjdtbqa:j:m: --long verbose,skip-config,just-config,build-src,dev,beta,quick,ant-version:,java-version:,macos-target: -n 'parse-options' -- "$@"`
+if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi
+#echo "$AOPTS"
+eval set -- "$AOPTS"
+
+while true; do
+  case "$1" in
+    -v | --verbose ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;;
+    -s | --skip-config ) AOO_SKIP_CONFIG="yes"; shift ;;
+    -j | --just-config ) AOO_JUST_CONFIG="yes"; shift ;;
+    -q | --quick ) AOO_BUILD_ALL="no"; shift ;;
+    -t | --build-src ) AOO_BUILD_SRC="yes"; shift ;;
+    -a | --ant-version ) AOO_ANT_VERSION=$2; shift 2 ;;
+    -j | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;;
+    -m | --macos-target ) AOO_MACOS_TARGET=$2; shift 2 ;;
+    -d | --dev ) AOO_BUILD_TYPE="Apache OpenOffice Test Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_DEV="yes"; AOO_BUILD_BETA=""; shift ;;
+    -b | --beta ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes"; AOO_BUILD_DEV=""; shift ;;
+    -- ) shift; break ;;
+    * ) echo "unknown option: $1"; shift ;;
+  esac
+done
+
+if [ ! -d ../main -o ! -d sal ] ; then
+	echo "CHDIR into AOO's main/ directory first!"
+	exit 1
+fi
+
+
+JAVA_HOME=$(/usr/libexec/java_home -v ${AOO_JAVA_VERSION})
+if [ ! -d "$JAVA_HOME" ] ; then
+    echo "JAVA_HOME not found: $JAVA_HOME"
+    exit 1
+fi
+export JAVA_HOME
+echo "JAVA_HOME is: $JAVA_HOME..."
+
+ANT_HOME=/usr/local/share/java/apache-ant-${AOO_ANT_VERSION}
+if [ ! -d "$ANT_HOME" ] ; then
+    echo "ANT_HOME not found: $ANT_HOME"
+    exit 1
+fi
+export ANT_HOME
+ANT_CLASSPATH=${ANT_HOME}/lib
+export ANT_CLASSPATH
+echo "ANT_HOME is: $ANT_HOME..."
+echo "ANT_CLASSPATH is: $ANT_CLASSPATH..."
+
+if [ -z "$JUNIT_PATH" ] ; then
+	JUNIT_PATH=/usr/local/share/java/junit.jar
+fi
+if [ ! -e "$JUNIT_PATH" ] ; then
+    echo "JUNIT_PATH not found: $JUNIT_PATH"
+    exit 1
+fi
+export JUNIT_PATH
+echo "JUNIT_PATH is: $JUNIT_PATH..."
+
+
+echo "Building for ${AOO_BUILD_TYPE}: min macOS ${AOO_MACOS_TARGET}, Java $(echo ${AOO_JAVA_VERSION} | sed -e s/..//) : Ant ${AOO_ANT_VERSION}"
+echo "---"
+echo "Starting build:"
+echo ""
+sleep 5
+#Setup build Env
+export MACOSX_DEPLOYMENT_TARGET=${AOO_MACOS_TARGET}
+export LIBRARY_PATH=/usr/local/lib
+export C_INCLUDE_PATH=/usr/local/include
+#export CPLUS_INCLUDE_PATH=/usr/local/include:/Applications/Xcode7.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
+#export GXX_INCLUDE_PATH=/Applications/Xcode7.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
+
+if [ ! -e external/unowinreg/unowinreg.dll ] ; then
+	echo "Downloading unowinreg.dll..."
+	curl -o external/unowinreg/unowinreg.dll http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll
+fi
+
+LANGS="ast bg ca ca-XR ca-XV cs da de el en-GB en-US es eu fi fr gd gl he hi hu it ja km ko lt nb nl pl pt pt-BR ru sk sl sr sv ta th tr vi zh-CN zh-TW"
+#LANGS="en-US"
+
+if [ -e configure.in ]; then
+    AOO_CONF_T="configure.in"
+else
+    AOO_CONF_T="configure.ac"
+fi
+
+rm -rf ./solenv/inc/reporevision.lst
+
+if [ ! -e configure -o $AOO_CONF_T -nt configure ] ; then
+	echo "Running autoconf..."
+	autoconf || exit 1
+fi
+
+if [ "$AOO_SKIP_CONFIG" != "yes" ]; then
+    ( ./configure   \
+	--with-build-version="$(date +"%Y-%m-%d %H:%M:%S (%a, %d %b %Y)") - `uname -sm`${AOO_BUILD_VERSION}" \
+	${AOO_VERBOSE_BUILD} \
+	--with-openldap \
+	--enable-category-b \
+	--enable-bundled-dictionaries \
+	--enable-wiki-publisher \
+	--with-jdk-home="$JAVA_HOME" \
+	--with-ant-home="$ANT_HOME" \
+	--with-junit="$JUNIT_PATH" \
+	--with-epm=/usr/local/bin/epm \
+	--with-dmake-path=/usr/local/bin/dmake \
+	--without-stlport \
+	--with-package-format="dmg" \
+	--disable-systray \
+	--with-macosx-target=${AOO_MACOS_TARGET} \
+	--with-alloc=internal \
+	--with-lang="${LANGS}" \
+	| tee config.out ) || exit 1
+fi
+
+if [ "$AOO_JUST_CONFIG" = "yes" ]; then
+    exit
+fi
+./bootstrap || exit 1
+source ./MacOSXX64Env.Set.sh || exit 1
+cd instsetoo_native
+time perl "$SOLARENV/bin/build.pl" --all -- -P8 || exit 1
+
+cd util
+if [ "$AOO_BUILD_BETA" = "yes" ]; then
+    dmake -P8 openofficebeta  || exit 1
+	dmake -P8 sdkoobeta_en-US || exit 1
+	dmake -P8 ooobetalanguagepack || exit 1
+elif [ "$AOO_BUILD_DEV" = "yes" ]; then
+    dmake -P8 openofficedev  || exit 1
+	dmake -P8 sdkoodev_en-US || exit 1
+	dmake -P8 ooodevlanguagepack || exit 1
+elif [ "$AOO_BUILD_ALL" = "yes" ]; then
+	dmake -P8 ooolanguagepack || exit 1
+	dmake -P8 sdkoo_en-US || exit 1 
+fi
+if [ "$AOO_BUILD_SRC" = "yes" ]; then
+	dmake aoo_srcrelease || exit 1
+fi
+
+date "+Build ended at %H:%M:%S"

Propchange: openoffice/devtools/build-scripts/4.1.14/unxmacos/build_aoo64bit_on_macos.sh
------------------------------------------------------------------------------
    svn:executable = *