/rules
Makefile | 3133 lines | 2515 code | 293 blank | 325 comment | 166 complexity | 9115ea07ade6e5734c2c80f94d52e9be MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception
Large files files are truncated, but you can click here to view the full file
- #!/usr/bin/make -f
- ################################################################################
- # LibreOffice source package rules file
- #
- # Please see debian/README for detailed documentation about the build system, and
- # how to build LibreOffice.
- ################################################################################
- # Authors:
- # Chris Halls <halls@debian.org>
- # Rene Engelhard <rene@debian.org>
- # Copyright 2002-2011 Software in the Public Interest, Inc.
- # Portions Copyright 2010 Canonical Ltd. Author: Matthias Klose
- # Licensed under the GNU General Public License, version 2. See the file
- # /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
- ################################################################################
- vafilt = $(subst $(2)=,,$(filter $(2)=%,$(1)))
- include /usr/share/dpkg/pkg-info.mk
- CURDIR ?= $(realpath $(dir $(firstword $(MAKEFILE_LIST)))/..)
- BASE_VERSION:=$(shell echo $(DEB_VERSION) | cut -d: -f1):$(DEB_VERSION_UPSTREAM)
- BINARY_VERSION=$(DEB_VERSION)
- #HELP_L10N_VIRTUAL_VERSION:=$(shell echo $(DEB_VERSION_UPSTREAM) | cut -d: -f2 | tr [~] [\\-])
- HELP_L10N_VIRTUAL_VERSION:=3.5
- #VER:=3
- OOVER:=3.5
- NEXT_OOVER:=$(shell echo "$(OOVER) + 0.1" | bc)
- ARCH_INDEP_PACKAGES := $(shell dh_listpackages -i)
- ARCH_DEP_PACKAGES := $(shell dh_listpackages -s)
- PACKAGES := $(ARCH_INDEP_PACKAGES) $(ARCH_DEP_PACKAGES)
- include /usr/share/dpkg/architecture.mk
- include /usr/share/dpkg/vendor.mk
- DISTREL := $(shell lsb_release -cs)
- SHELL:=/bin/bash
- SYSTEM_GCC_VERSION = $(shell gcc --version | sed -n '/^gcc/s/.*\(.\..\)\..$$/\1/p')
- # Debian buildds run as user `buildd', other are using /CurrentlyBuilding
- ON_BUILDD := $(shell if [ "`whoami`" = buildd -o -f /CurrentlyBuilding ] || echo $(CURDIR) | grep -q \/build\/buildd; then echo y; else echo n; fi)
- PKGDIR:=debian/libreoffice$(VER)
- OODIRNAME=libreoffice$(VER)
- OODIR:=usr/lib/$(OODIRNAME)
- OOUREDIR:=usr/lib/ure
- OOSDKDIR:=$(OODIR)/sdk
- # Figure out who's building this package.
- OOO_VENDOR:=The Document Foundation/Debian
- ifeq "$(DEB_VENDOR)" "Ubuntu"
- OOO_VENDOR=The Document Foundation, Debian and Ubuntu
- endif
- export OOO_VENDOR
- # debhelper
- export DH_OPTIONS
- export DH_ALWAYS_EXCLUDE=CVS:.svn:.bzr:.git
- #export DH_VERBOSE=1
- # quilt
- export QUILT_PATCHES=debian/patches
- export QUILT_OPTIONS="-p1 -F0"
- SOURCE_TREE=.
- STAMP_DIR=debian/stampdir
- TARFILE_LOCATION=$(CURDIR)/src
- export TARFILE_LOCATION
- USE_SOURCE_TARBALLS=y
- USE_GIT_TARBALLS=n
- ifeq "$(USE_GIT_TARBALLS)" "y"
- GIT_BASEURL:=git://anongit.freedesktop.org/libreoffice
- lo_sources_ver=3.5.4.2
- # NOT in proper libreoffice-3-5 branch
- # use ./g checkout -b tag-libreoffice-3.5.4.2 libreoffice-3.5.4.2
- GIT_TAG=libreoffice-$(lo_sources_ver)
- GIT_BRANCH=tag-libreoffice-$(lo_sources_ver)
- endif
- ifeq "$(USE_SOURCE_TARBALLS)" "y"
- lo_sources_ver=$(shell cat $(CURDIR)/sources.ver | cut -d= -f2)
- endif
- ifeq "$(DISTREL)" "squeeze"
- SQUEEZE_BACKPORT=y
- endif
- #########
- # Default package configuration
- #
- OOO_ARCHS = alpha amd64 armel armhf hppa i386 ia64 mips mipsel powerpc powerpcspe ppc64 s390 s390x sparc kfreebsd-amd64 kfreebsd-i386
- PATCHSET=$(DEB_VENDOR)
- BUILD_DEPS=
- # These are components which can be built from internal copies, or used from the
- # distribution. See configure --help for valid values (--with-system-<value>).
- SYSTEM_STUFF = dicts
- BUILD_PYUNO=y
- ENABLE_PYTHON3=y
- ifeq "$(BUILD_PYUNO)" "y"
- ENABLE_SCRIPT_PROVIDER_PYTHON=y
- endif
- # THIS IS ONLY FOR TESTING. When building against a specified pythonX.Y
- # this will work inside OOo but *not* from outside OOo unless the user
- # uses pythonX.Y directly (and the dh_pycentral-created dependencies allow
- # also the non-working default python then) - see e.g. #587402. Also
- # note we are NOT working with python < 2.6 anymore!
- PYTHON_VERSION=current
- ifeq "$(PYTHON_VERSION)" "current"
- PYTHON=python (>= 2.6)
- export PYTHON=python
- else
- PYTHON=python$(PYTHON_VERSION)
- export PYTHON=python$(PYTHON_VERSION)
- endif
- ifeq "$(ENABLE_PYTHON3)" "y"
- PYTHON3_VERSION=current
- ifeq "$(PYTHON3_VERSION)" "current"
- PYTHON3=python3
- else
- PYTHON3=python$(PYTHON3_VERSION)
- endif
- endif
- PACKAGE_TTF_OPENSYMBOL=y
- BUILD_BINFILTERS=y
- BUILD_ONLY_EN_US=n
- ENABLE_JAVA=y
- ifeq "$(ENABLE_JAVA)" "y"
- JDK=openjdk
- JAVA_MAINVER=6
- ifneq (,$(filter hppa kfreebsd%, $(DEB_HOST_ARCH)))
- JDK=gcj-jdk
- endif
- endif
- JAVAHELPER_MIN_VERSION= (>= 0.37~)
- SYSTEM_STUFF += hunspell
- HUNSPELL_MIN_VER= (>= 1.1.5-2)
- SYSTEM_STUFF += altlinuxhyph
- USE_LIBHYPHEN=y
- LIBALTLINUXHYPH_MINVER= (>= 0.1.1-11)
- LIBHYPHEN_MINVER= (>= 2.4)
- SYSTEM_STUFF += boost
- BOOST_VERSION=default
- ifeq "$(BOOST_VERSION)" "default"
- BOOST_MINVER= (>= 1.38)
- endif
- ifeq "$(BOOST_VERSION)" "1.39"
- BOOST_MINVER= (>= 1.39.0-2)
- endif
- SYSTEM_STUFF += mdds
- SYSTEM_STUFF += vigra
- USE_EXTERNAL_CXXLIBS=y
- #SYSTEM_STUFF += sablot
- SYSTEM_STUFF += mythes
- SYSTEM_STUFF += icu
- ICU_MINVER= (>= 4.0)
- SYSTEM_STUFF += libwpd libwpg libwps
- SYSTEM_STUFF += libvisio
- #SYSTEM_STUFF += xmlsec
- BUILD_CAIROCANVAS=y
- SYSTEM_STUFF += cairo
- CAIRO_FONTS_PATCH=y
- BUILD_KDE=y
- # not ported to KDE 4
- ENABLE_KDEAB=n
- ifeq "$(SYSTEM_GCC_VERSION)" "4.7"
- # < 4.8 fails with gcc 4.7, see #667911
- QT_MINVER= (>= 4:4.8)
- else
- QT_MINVER= (>= 4:4.5)
- endif
- KDELIBS_MINVER= (>= 4:4.3.4)
- BUILD_DBG_PACKAGE=y
- ifeq "$(BUILD_DBG_PACKAGE)" "y"
- ENABLE_SYMBOLS=y
- SMALL_SYMBOLS=y
- endif
- ifeq "$(ENABLE_JAVA)" "y"
- # NOTE: If you change this while gcj/ant multiarch combo is still broken
- # you need to disable bsh scripting engine completely (see disable-rhino.diff)
- # See http://lists.debian.org/debian-java/2011/06/msg00108.html and replies
- SYSTEM_STUFF += beanshell
- SYSTEM_STUFF += hsqldb
- HSQLDB_MINVER= (>> 1.8.0.10)
- HSQLDB_TOONEWVER=1.8.1
- # disabled because system-saxon breaks all kinds exports using XSLT transforms
- # (e.g. M$ Word/Excel 2003 XML, Mediawiki, XHTML, UOF, ...)
- # It does *NOT* fail with _plain_ saxon 9.0.0.8 built with OOos build.xml
- # for UOF, but still for e.g. M$.
- #SYSTEM_STUFF += saxon
- SYSTEM_STUFF += lucene
- endif
- SYSTEM_STUFF += lpsolve
- USE_SHARED_LPSOLVE=y
- LPSOLVE_MIN_VERSION= (>= 5.5.0.13-5+b1)
- USE_DBUS=y
- USE_GSTREAMER=y
- SYSTEM_STUFF += neon
- NEON_SECTYPE=gnutls
- NEONSONR=27
- SYSTEM_STUFF += redland
- PACKAGE_SDK=y
- ifeq "$(ENABLE_JAVA)" "y"
- ifeq "$(JDK)" "openjdk"
- RUN_MAKE_CHECK=y
- ENABLE_JUNIT4=y
- endif
- else
- RUN_MAKE_CHECK=n
- ENABLE_JUNIT4=n
- endif
- ifeq "$(ENABLE_JUNIT4)" "y"
- JUNIT_MIN_VER= (>= 4.8.2-2)
- endif
- USE_LIBCURL4=y
- CURL_SECTYPE=gnutls
- USE_SYSTEM_DMAKE=y
- USE_LIBSUITESPARSE=y
- SUITESPARSE_MIN_VERSION= (>= 1:3.4.0)
- PARALLEL_BUILD=y
- ENABLE_LDAP=y
- USE_OPENLDAP=y
- ENABLE_OPENGL=y
- SYSTEM_STUFF += openssl
- NEW_DPKG_SHLIBDEPS=y
- ifeq "$(ENABLE_JAVA)" "y"
- ENABLE_REPORTDESIGN=y
- SYSTEM_STUFF += jfreereport
- ENABLE_MEDIAWIKI=y
- SYSTEM_STUFF += apache-commons
- ENABLE_SCRIPT_PROVIDER_BSH=y
- ENABLE_SCRIPT_PROVIDER_JS=y
- else
- ENABLE_REPORTDESIGN=n
- ENABLE_MEDIAWIKI=n
- ENABLE_SCRIPT_PROVIDER_BSH=n
- ENABLE_SCRIPT_PROVIDER_JS=n
- endif
- ENABLE_SDBC_POSTGRESQL=y
- ENABLE_MINIMIZER=y
- ENABLE_PRESENTER_CONSOLE=y
- ENABLE_PDFIMPORT=y
- BUILD_GTK=y
- #ifeq "$(DEB_DISTRIBUTION)" "experimental"
- BUILD_GTK3=y
- #endif
- ENABLE_EVO2=y
- ENABLE_GVFS=n
- ENABLE_GCONF=y
- ENABLE_GIO=y
- ENABLE_RANDR=y
- ifeq "$(BUILD_GTK)" "y"
- PACKAGE_NSPLUGIN=n
- ifeq "$(PACKAGE_NSPLUGIN)" "y"
- SYSTEM_STUFF += mozilla-headers
- endif
- endif
- PACKAGE_BASE=y
- ENABLE_GRAPHITE=y
- SYSTEM_STUFF += graphite
- ALLOC=system
- SYSTEM_STUFF += libexttextcat
- SYSTEM_STUFF += cppunit
- ENABLE_LIBRSVG=y
- SYSTEM_LIBRSVG=y
- # when we have a package we want to have to be installed on older things with some older
- # C++ ABI (like it was the case with libreoffice2), we need to set this. Don't touch
- # otherwise
- SYSTEM_STUFF += stdlibs
- DEFAULT_IMAGE=galaxy
- IMAGES:=$(DEFAULT_IMAGE) crystal hicontrast tango oxygen
- ENABLE_MYSQLNATIVE=y
- # cannot be disabled, unless you have a internal MySQL/PostgreSQL somewhere :-)
- SYSTEM_STUFF += mysql mysql-cppconn
- MYSQLCPPCONN_MINVER= (>= 1.1.0~r791)
- SYSTEM_STUFF += postgresql
- DICT_DIR=/usr/share/hunspell
- HYPH_DIR=/usr/share/hyphen
- THES_DIR=/usr/share/mythes
- SYSTEM_STUFF += libcmis
- SYSTEM_STUFF += jpeg
- SYSTEM_STUFF += libxml
- SYSTEM_STUFF += expat
- SYSTEM_STUFF += odbc
- SYSTEM_STUFF += curl
- SYSTEM_STUFF += sane
- SYSTEM_STUFF += xextensions-headers
- SYSTEM_STUFF += mesa-headers
- SYSTEM_STUFF += db
- SYSTEM_STUFF += poppler
- SYSTEM_STUFF += libpng
- SYSTEM_STUFF += nss
- SYSTEM_STUFF += sampleicc
- PACKAGE_UNOWINREG_DLL=y
- ifeq "$(DEB_VENDOR)" "Debian"
- BUILD_UNOWINREG_DLL=y
- endif
- # Default flags to pass to configure
- CONFIGURE_FLAGS= \
- --with-vendor='$(OOO_VENDOR)' \
- --with-install-dirname=$(OODIRNAME) \
- --prefix=/usr --mandir=/usr/share/man \
- --docdir=/usr/share/doc/libreoffice \
- --disable-strip-solver \
- --enable-lockdown \
- --libdir=/usr/lib \
- --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
- --enable-extension-integration \
- --disable-online-update \
- --disable-fetch-external \
- --enable-release-build \
- --without-fonts \
- --without-myspell-dicts
- ifneq ($(ON_BUILDD),y)
- CONFIGURE_FLAGS += --enable-verbose
- endif
- CONFIGURE_FLAGS += --with-alloc=$(ALLOC)
- #############
- # Architecture-specific changes
- # helper to generate no_archs macros (pass name of source macro)
- define gen_no_archs
- _no_arch_macro = $(subst OOO_,OOO_NO_,$1)
- _no_arch_tmp_$1 = $$(foreach _a,$$(filter-out $$(call $1),$(OOO_ARCHS)),!$$(_a))
- $$(_no_arch_macro) = $$(if $$(_no_arch_tmp_$1),$$(_empty) [$$(_no_arch_tmp_$1)])
- endef
- PLATFORMID := $(shell grep PLATFORMID debian/vars.$(DEB_HOST_ARCH) | cut -d"=" -f2)
- # ./configure defaults to STLport on i386 and we should keep it for
- # ABI-compatability
- OOO_STLPORT_ARCHS= i386
- ifeq "$(DEB_HOST_ARCH)" "i386"
- LINK_TO_STLPORT=y
- endif
- ifneq (,$(findstring mips,$(OOO_ARCHS)))
- BUILD_DEPS += , gcc-4.4 [mips mipsel], g++-4.4 [mips mipsel]
- ifneq (,$(findstring mips,$(DEB_HOST_ARCH)))
- GCC_VERSION := 4.4
- endif
- endif
- ifeq "$(ENABLE_OPENGL)" "y"
- # doesn't make that much sense on armel and mips(el), does it? :)
- OOO_OGLTRANS_ARCHS = $(filter-out armel mips%, $(OOO_ARCHS))
- ifeq (,$(filter $(DEB_HOST_ARCH),$(OOO_OGLTRANS_ARCHS)))
- ENABLE_OPENGL=n
- endif
- $(eval $(call gen_no_archs,OOO_OGLTRANS_ARCHS))
- endif
- ifneq (,$(findstring arm,$(DEB_HOST_ARCH)))
- ifneq (stdlibs,$(findstring stdlibs,$(SYSTEM_STUFF)))
- $(error sal does not build on arm with internal stdlibs!)
- endif
- endif
- OOO_64BIT_ARCHS = $(filter alpha amd64 ia64 kfreebsd-amd64 ppc64 s390x, $(OOO_ARCHS))
- # Java...
- OOO_JAVA_ARCHS = $(OOO_ARCHS)
- $(eval $(call gen_no_archs,OOO_JAVA_ARCHS))
- OOO_GCJ_ARCHS = $(filter-out $(OOO_OPENJDK_ARCHS), $(OOO_JAVA_ARCHS))
- $(eval $(call gen_no_archs,OOO_GCJ_ARCHS))
- OOO_GCJ_JDK_ARCHS := hppa kfreebsd-i386 kfreebsd-amd64
- OOO_OPENJDK_ARCHS := $(filter-out $(OOO_GCJ_JDK_ARCHS),$(OOO_JAVA_ARCHS))
- $(eval $(call gen_no_archs,OOO_OPENJDK_ARCHS))
- OOO_UNOWINREG_DLL_ARCHS := i386 amd64
- ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),$(OOO_UNOWINREG_DLL_ARCHS)))
- PACKAGE_UNOWINREG_DLL=n
- endif
- OOO_ARCH_DEP_EXTENSIONS_ARCHS := $(OOO_ARCHS)
- OOO_EXTENSIONS_ARCHS := $(OOO_ARCH_DEP_EXTENSIONS_ARCHS)
- OOO_BASE_ARCHS := $(OOO_JAVA_ARCHS)
- $(eval $(call gen_no_archs,OOO_BASE_ARCHS))
- OOO_REPORTDESIGN_ARCHS := $(filter-out $(OOO_GCJ_JDK_ARCHS),$(OOO_JAVA_ARCHS))
- $(eval $(call gen_no_archs,OOO_REPORTDESIGN_ARCHS))
- ifneq (,$(findstring $(DEB_HOST_ARCH),$(OOO_NO_BASE_ARCHS)))
- ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),$(OOO_BASE_ARCHS)))
- PACKAGE_BASE=n
- ENABLE_SDBC_POSTGRESQL=n
- ENABLE_MYSQLNATIVE=n
- ENABLE_EVO2=n
- ENABLE_KDEAB=n
- ENABLE_REPORTDESIGN=n
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-base libreoffice$(VER)-base-core
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-evolution -Nlibreoffice$(VER)-kab
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-sdbc-postgresql -Nlibreoffice$(VER)-mysql-connector
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-report-builder-bin -Nlibreoffice$(VER)-report-builder
- endif
- endif
- ifeq (,$(findstring $(DEB_HOST_ARCH),$(OOO_ARCH_DEP_EXTENSIONS_ARCHS)))
- ENABLE_MINIMIZER=n
- ENABLE_PDFIMPORT=n
- ENABLE_PRESENTER_CONSOLE=n
- ENABLE_MYSQLNATIVE=n
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-mysql-connector
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-report-builder-bin -Nlibreoffice$(VER)-report-builder
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-pdfimport -Nlibreoffice$(VER)-presentation-minimizer
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-presenter-console
- endif
- ifeq (,$(findstring $(DEB_HOST_ARCH),$(OOO_EXTENSIONS_ARCHS)))
- ENABLE_MEDIAWIKI=n
- ENABLE_REPORTDESIGN=n
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-report-builder-bin -Nlibreoffice$(VER)-report-builder
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-wiki-publisher -Nlibreoffice$(VER)-script-provider-python
- endif
- ifeq (,$(filter $(DEB_HOST_ARCH),$(OOO_JAVA_ARCHS)))
- ENABLE_JAVA=n
- ENABLE_REPORTDESIGN=n
- ENABLE_MEDIAWIKI=n
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-wiki-publisher
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-report-builder-bin -Nlibreoffice$(VER)-report-builder
- endif
- ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),$(OOO_GCJ_JDK_ARCHS)))
- ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),$(OOO_OPENJDK_ARCHS)))
- ENABLE_REPORTDESIGN=n
- SYSTEM_STUFF := $(filter-out jfreereport, $(SYSTEM_STUFF))
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-report-builder-bin -Nlibreoffice$(VER)-report-builder
- endif
- endif
- # disable SRB on ia64 when building with internal jfreereport.
- # fails to build. ("The system is out of resources."). FIXME.
- ifeq (ia64,$(findstring ia64,$(OOO_OPENJDK_ARCHS)))
- ifeq (,$(findstring jfreereport,$(SYSTEM_STUFF)))
- OOO_REPORTDESIGN_ARCHS := $(filter-out ia64,$(OOO_REPORTDESIGN_ARCHS))
- ifeq "$(DEB_HOST_ARCH)" "ia64"
- ENABLE_REPORTDESIGN=n
- endif
- endif
- endif
- ifneq (,$(filter $(DEB_HOST_ARCH),$(OOO_GCJ_ARCHS)))
- BUILD_JARS_NATIVE=y
- endif
- ifeq "$(PACKAGE_NSPLUGIN)" "y"
- OOO_NSPLUGIN_ARCHS = $(OOO_ARCHS)
- else
- OOO_NSPLUGIN_ARCHS=
- endif
- $(eval $(call gen_no_archs,OOO_NSPLUGIN_ARCHS))
- # builds long and is for legacy filters. probably not needed on {arm,mips}{,el}
- ifneq (,$(filter arm% mips% m68k, $(DEB_HOST_ARCH)))
- BUILD_BINFILTERS=n
- endif
- OOO_BINFILTER_ARCHS:=$(filter-out arm% mips% m68k, $(OOO_ARCHS))
- #############
- # Distro-specific overrides
- # Debian
- ifeq "$(DEB_VENDOR)" "Debian"
- # we don't need to build all languages and the thesaurus on the buildds;
- # they do binary-only builds anyway
- ifeq ($(ON_BUILDD),y)
- BUILD_ONLY_EN_US=y
- endif
- CONFIGURE_FLAGS += --with-intro-progressbar-color=215,7,81
- endif
- # Debian Squeeze
- ifeq "$(SQUEEZE_BACKPORT)" "y"
- BUGS=mailto:debian-backports@lists.debian.org
- SYSTEM_STUFF := $(filter-out libwpd libwpg libwps mythes mdds libexttextcat graphite jfreereport libvisio poppler libcmis, $(SYSTEM_STUFF))
- JUNIT_MIN_VER=
- PARALLEL_BUILD=n
- ENABLE_PDFIMPORT=n
- endif
- CONFIGURE_FLAGS += $(foreach i, $(SYSTEM_STUFF),--with-system-$(i))
- CC_PREFIX:=$(shell gcc -dumpmachine)-
- ifneq "$(GCC_VERSION)" ""
- ifneq "$(SYSTEM_GCC_VERSION)" "$(GCC_VERSION)"
- BUILD_DEPS += , gcc-$(GCC_VERSION), g++-$(GCC_VERSION)
- endif
- endif
- BUILDDEB_OPTIONS = -- -Zxz
- ifneq "$(OOO_OGLTRANS_ARCHS)" ""
- ifneq (,$(findstring mesa-headers,$(SYSTEM_STUFF)))
- BUILD_DEPS += , libgl1-mesa-dev$(OOO_NO_OGLTRANS_ARCHS), libglu1-mesa-dev$(OOO_NO_OGLTRANS_ARCHS)
- endif
- endif
- ifneq "$(ENABLE_OPENGL)" "y"
- CONFIGURE_FLAGS += --disable-opengl
- endif
- ifneq "$(PACKAGE_SDK)" "y"
- CONFIGURE_FLAGS += --disable-odk
- endif
- ifneq "$(ENABLE_MINIMIZER)" "y"
- CONFIGURE_FLAGS += --disable-ext-presenter-minimizer
- endif
- ifneq "$(ENABLE_PRESENTER_CONSOLE)" "y"
- CONFIGURE_FLAGS += --disable-ext-presenter-console
- endif
- ifeq "$(ENABLE_PDFIMPORT)" "y"
- BUILD_DEPS += , libpoppler-dev (>= 0.8.0), libpoppler-private-dev, libpoppler-cpp-dev
- else
- CONFIGURE_FLAGS += --disable-ext-pdfimport
- endif
- # fails their tests
- ifeq "$(DEB_HOST_ARCH)" "alpha"
- ENABLE_GRAPHITE=n
- SYSTEM_STUFF := $(filter-out graphite, $(SYSTEM_STUFF))
- endif
- ifeq "$(DEB_HOST_ARCH)" "armel"
- ENABLE_GRAPHITE=n
- SYSTEM_STUFF := $(filter-out graphite, $(SYSTEM_STUFF))
- endif
- ifeq "$(DEB_HOST_ARCH)" "sparc"
- ENABLE_GRAPHITE=n
- SYSTEM_STUFF := $(filter-out graphite, $(SYSTEM_STUFF))
- endif
- ifeq "$(ENABLE_GRAPHITE)" "y"
- ifneq (,$(filter graphite, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libgraphite2-dev (>= 0.9.3) [!alpha !armel !sparc]
- endif
- else
- CONFIGURE_FLAGS += --disable-graphite
- endif
- ifneq (,$(filter libexttextcat, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libexttextcat-dev (>= 3.1.1)
- TEXTCAT_DATA_RECOMMENDS := libexttextcat-data
- endif
- ifneq (,$(filter jpeg, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libjpeg-dev
- endif
- ifneq (,$(filter libxml, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libxml2-dev
- BUILD_DEPS += , libxslt1-dev
- DBG_DBG_SUGGESTS+= , libxslt1-dbg
- endif
- ifneq (,$(filter expat, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libexpat1-dev
- endif
- ifneq (,$(filter odbc, $(SYSTEM_STUFF)))
- BUILD_DEPS += , unixodbc-dev (>= 2.2.11)
- endif
- ifneq (,$(filter sane, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libsane-dev
- endif
- ifneq (,$(filter xextensions-headers, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libxrender-dev
- endif
- ifneq (,$(filter libpng, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libpng12-dev
- endif
- ifeq (,$(filter curl, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libcurl4-$(CURL_SECTYPE)-dev
- endif
- ifneq (,$(filter openssl, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libssl-dev
- ifeq "$(SQUEEZE_BACKPORT)" "y"
- DBG_DBG_SUGGESTS += , libssl$(shell readlink /usr/lib/libssl.so | cut -d"." -f3,4,5)-dbg
- else
- DBG_DBG_SUGGESTS += , libssl$(shell readlink /usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`/libssl.so | cut -d"." -f3,4,5)-dbg
- endif
- endif
- ifneq "$(ENABLE_RSVG)" "y"
- ifeq "$(SYSTEM_LIBRSVG)" "y"
- BUILD_DEPS += , librsvg2-dev
- CONFIGURE_FLAGS += --enable-librsvg=auto
- else
- CONFIGURE_FLAGS += --enable-librsvg=internal
- endif
- else
- CONFIGURE_FLAGS += --enable-librsvg=no
- endif
- ifneq (,$(findstring db,$(SYSTEM_STUFF)))
- BUILD_DEPS += , libdb-dev
- DBG_DBG_SUGGESTS += , $(shell dpkg -s libdb-dev | grep Depends | awk '{ print $$2 }' | sed -e s/dev/dbg/)
- endif
- ifeq "$(BUILD_DBG_PACKAGE)" "y"
- ifneq (,$(findstring i386,$(DEB_HOST_ARCH)))
- SMALL_SYMBOLS = n
- else
- ifneq (,$(findstring amd64,$(DEB_HOST_ARCH)))
- SMALL_SYMBOLS = n
- endif
- endif
- DBG_DBG_SUGGESTS+= , libc6.1-dbg [alpha ia64], libc0.1-dbg [kfreebsd-i386 kfreebsd-amd64], libc0.3-dbg [hurd-i386], libc6-dbg [!ia64 !alpha !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libatk1.0-dbg, libglib2.0-0-dbg, libgnomevfs2-0-dbg, libstdc++6-$(SYSTEM_GCC_VERSION)-dbg, libx11-6-dbg, libxext6-dbg, libxaw7-dbg, libxml2-dbg, libgtk2.0-0-dbg, libxau6-dbg, libice6-dbg, libsm6-dbg, libxinerama1-dbg, libfontconfig1-dbg, libhunspell-$(shell pkg-config --modversion hunspell | cut -d. -f1,2)-0-dbg, libcurl4-dbg
- endif
- ifeq "$(ENABLE_SYMBOLS)" "y"
- # Small symbols?
- ifeq "$(SMALL_SYMBOLS)" "y"
- CONFIGURE_FLAGS += --enable-symbols=SMALL
- CFLAGS := $(shell echo $(CFLAGS) | sed -e "s/-g/-g1/")
- CXXFLAGS := $(shell echo $(CXXFLAGS) | sed -e "s/-g/-g1/")
- export CFLAGS CXXFLAGS
- else
- CONFIGURE_FLAGS += --enable-symbols
- endif
- endif
- ifeq (debug,$(findstring debug,$(DEB_BUILD_OPTIONS)))
- CONFIGURE_FLAGS += --enable-debug
- endif
- # Build python depends from current python version
- PYMAJOR:=$(shell python -c "import sys; print sys.version_info[0]")
- PYMINOR:=$(shell python -c "import sys; print sys.version_info[1]")
- PYMINORPLUS1:=$(shell python -c "import sys; print sys.version_info[1]+1")
- PYTHON_SITE:=debian/python-uno/$(shell python -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
- PY3MAJOR:=$(shell python3 -c "import sys; print (sys.version_info[0])")
- PY3MINOR:=$(shell python3 -c "import sys; print (sys.version_info[1])")
- PY3MINORPLUS1:=$(shell python3 -c "import sys; print (sys.version_info[1]+1)")
- PYTHON3_SITE:=debian/python3-uno/$(shell python3 -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
- ifeq "$(BUILD_PYUNO)" "y"
- BUILD_DEPS += , python (>= 2.6.6-3+squeeze4)
- DBG_DBG_SUGGESTS+= , python-dbg
- BUILD_DEPS += , $(PYTHON)-dev (>= 2.6)
- ifeq "$(ENABLE_PYTHON3)" "y"
- BUILD_DEPS += , $(PYTHON3)-dev (>= 3.2)
- endif
- else
- BUILD_DEPS += , python
- endif
- BUILD_DEPS += , debhelper (>= 7.2.3~)
- ifeq "$(ENABLE_JAVA)" "y"
- ifeq "$(BUILD_JARS_NATIVE)" "y"
- STAMP_NATIVE_JARS = $(STAMP_DIR)/native-jars
- JAVA_GCJ_DEPENDS = libgcj-common (>= 1:4.1.1-14)
- endif
- endif
- ifeq "$(RUN_TESTTOOL)" "y"
- CONFIGURE_FLAGS += --enable-hids
- endif
- ifneq (,$(filter cppunit, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libcppunit-dev (>= 1.12)
- endif
- ifeq "$(RUN_MAKE_CHECK)" "y"
- BUILD_DEPS += , gdb
- ifeq "$(ENABLE_JUNIT4)" "y"
- BUILD_DEPS += , junit4 $(JUNIT_MIN_VER)
- else
- CONFIGURE_FLAGS += --without-junit
- endif
- else
- CONFIGURE_FLAGS += --without-junit
- endif
- ifneq "$(BUILD_ONLY_EN_US)" "y"
- ifeq (lang=,$(findstring lang=,$(DEB_BUILD_OPTIONS)))
- ISOS=$(shell echo "$(DEB_BUILD_OPTIONS) " | sed -n 's/^.*lang=\([^\s].*\)\s.*/\1/p' | awk '{ print $$1 }' | sed -e 's/,/ /g')
- HELPISOS=$(shell echo "$(DEB_BUILD_OPTIONS) " | sed -n 's/^.*lang=\([^\s].*\)\s.*/\1/p' | awk '{ print $$1 }' | sed -e 's/,/ /g')
- LANGPACKISOS=$(shell echo "$(DEB_BUILD_OPTIONS) " | sed -n 's/^.*lang=\([^\s].*\)\s.*/\1/p' | awk '{ print $$1 }' | sed -e 's/,/ /g')
- else
- # Note that the first one here *has to be* en-US. the first one gets
- # gid_Module_Root as filelist later and the rest gid_Module_Root.$iso
- # but we can't/shouldn't do dynamic switching, so let en-US be the first
- # one to that gid_Module_Root always is english and the other langpacks
- # have gid_Module_Root.$iso
- #ISOS=$(shell $(SOURCE_TREE)/bin/lo-xlate-lang -i all')
- ISOS:=en-US af ar as ast be bg bn br bs ca ca-XV cs cy da de dz el \
- en-GB en-ZA eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja \
- ka km ko ku lt lv mk mn ml mr nb ne nl nn nr nso oc om or \
- pa-IN pl pt pt-BR ro ru rw si sk sl sr ss st sv \
- ta te tg th tn tr ts ug uk uz ve vi xh zh-CN zh-TW zu
- #HELPISOS:=$(shell $(SOURCE_TREE)/bin/lo-xlate-lang -i all')
- HELPISOS:=en-US ca ca-XV cs da de dz el en-GB es et eu fi fr gl hi hu it \
- ja km ko nl om pl pt pt-BR ru sk sl sv zh-CN zh-TW
- #LANGPACKISOS:=$(shell $(SOURCE_TREE)/bin/lo-xlate-lang -i all')
- LANGPACKISOS:=en-US af ar as ast be bg bn br bs ca ca-XV cs cy da de dz el \
- en-GB en-ZA eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja \
- ka km ko ku lt lv mk mn ml mr nb ne nl nn nr nso oc om or \
- pa-IN pl pt pt-BR ro ru rw si sk sl sr ss st sv \
- ta te tg th tn tr ts ug uk uz ve vi xh zh-CN zh-TW zu
- endif
- else
- ISOS=en-US
- HELPISOS=en-US
- LANGPACKISOS=en-US
- endif
- BUILD_ISOS = $(ISOS)
- ifneq "$(BUILD_ONLY_EN_US)" "y"
- ifneq "$(BUILD_ISOS)" "en-US"
- CONFIGURE_FLAGS += --with-lang="$(BUILD_ISOS)"
- endif
- endif
- ifeq "$(ENABLE_JAVA)" "y"
- ifeq "$(JDK)" "default"
- JAVA_HOME=/usr/lib/jvm/default-java
- BUILD_DEPS += , default-jdk$(OOO_NO_JAVA_ARCHS)
- endif
- ifeq "$(JDK)" "java-gcj-compat"
- JAVA_HOME=/usr/lib/jvm/java-gcj
- ifneq (,$(findstring armel,$(OOO_JAVA_ARCHS)))
- BUILD_DEPS += , gcj-4.3 (>= 4.3.1-2) [armel]
- endif
- endif
- ifeq "$(JDK)" "gcj-jdk"
- JAVA_HOME=/usr/lib/jvm/java-gcj
- BUILD_DEPS += , gcj-jdk$(OOO_NO_JAVA_ARCHS)
- endif
- ifeq "$(JDK)" "openjdk"
- ifeq "$(SQUEEZE_BACKPORT)" "y"
- BUILD_DEPS += , openjdk-$(JAVA_MAINVER)-jdk [$(filter-out $(OOO_GCJ_JDK_ARCHS),$(OOO_JAVA_ARCHS))]
- JAVA_HOME=/usr/lib/jvm/java-$(JAVA_MAINVER)-openjdk
- else
- ifeq "$(JAVA_MAINVER)" "6"
- BUILD_DEPS += , openjdk-$(JAVA_MAINVER)-jdk (>= 6b23~pre8-2) [$(filter-out ia64,$(filter-out $(OOO_GCJ_JDK_ARCHS),$(OOO_JAVA_ARCHS))])
- BUILD_DEPS += , openjdk-7-jdk [ia64]
- ifeq "$(DEB_HOST_ARCH)" "ia64"
- JAVA_MAINVER=7
- endif
- else
- BUILD_DEPS += , openjdk-$(JAVA_MAINVER)-jdk [$(filter-out $(OOO_GCJ_JDK_ARCHS),$(OOO_JAVA_ARCHS))]
- endif
- JAVA_HOME=/usr/lib/jvm/java-$(JAVA_MAINVER)-openjdk-$(DEB_HOST_ARCH)
- endif
- CONFIGURE_FLAGS += --with-java-target-version=1.5
- endif
- TEST_JAVA_HOME=$(JAVA_HOME)
- ifneq "$(OOO_GCJ_JDK_ARCHS)" ""
- BUILD_DEPS += , gcj-jdk [$(OOO_GCJ_JDK_ARCHS)]
- BUILD_DEPS += , gcj-native-helper [$(OOO_GCJ_ARCHS)], libgcj-common (>= 1:4.4.1) [$(OOO_GCJ_ARCHS)]
- endif
- ifeq "$(ENABLE_MEDIAWIKI)" "y"
- BUILD_DEPS += , ant (>= 1.7.0)$(OOO_NO_JAVA_ARCHS), ant-optional (>= 1.7.0)$(OOO_NO_JAVA_ARCHS)
- else
- BUILD_DEPS += , ant (>= 1.6.5)$(OOO_NO_JAVA_ARCHS)
- endif
- GCJ_VERSION = $(shell basename `readlink $(JAVA_HOME)/bin/gcj` | sed -e s/gcj-//)
- ifeq "$(SQUEEZE_BACKPORT)" "y"
- GCJ_JAWT_DEPENDS= $(shell dpkg -S /usr/lib/`readlink /usr/lib/libgcj_bc.so.1` | cut -d: -f1 | sed -e s/$$/-awt/)
- else
- GCJ_JAWT_DEPENDS= $(shell dpkg -S /usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`/gcj-$(GCJ_JDK_VERSION)-*/libgcj_bc.so.1 | cut -d: -f1 | sed -e s/$$/-awt/)
- endif
- DBG_DBG_SUGGESTS+= , $(shell echo $(GCJ_AWT_DEPENDS) | sed -e s/awt/dbg/)
- JAVA_RUNTIME_DEPENDS = default-jre | gcj-jre | java-gcj-compat
- # ifneq (,$(GCJ_JAWT_DEPENDS))
- # JAVA_RUNTIME_DEPENDS += | $(GCJ_JAWT_DEPENDS)
- # endif
- ifneq (,$(filter $(DEB_HOST_ARCH), $(OOO_OPENJDK_ARCHS)))
- ifneq "$(DEB_HOST_ARCH)" "ia64"
- JAVA_RUNTIME_DEPENDS += | openjdk-6-jre | openjdk-7-jre
- else
- JAVA_RUNTIME_DEPENDS += | openjdk-7-jre
- endif
- endif
- ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386))
- JAVA_RUNTIME_DEPENDS += | sun-java5-jre | sun-java6-jre
- endif
- JAVA_RUNTIME_DEPENDS += | java5-runtime
- # Suns Java "packages"
- JAVA_RUNTIME_DEPENDS += | jre
- GCJ_JAWT_DIR=$(shell dirname `dpkg -L $(GCJ_JAWT_DEPENDS) | grep libjawt.so | head -n 1`)
- export JAVA_HOME
- CONFIGURE_FLAGS += --with-jdk-home=$(JAVA_HOME)
- JAVA_COMMON_DEPENDS= , libreoffice$(VER)-java-common
- JAVA_COMMON_DEPENDS_VERSION:= (>= $(BASE_VERSION)~)
- ifneq (,$(filter saxon, $(SYSTEM_STUFF)))
- CONFIGURE_FLAGS += --with-system-saxon --with-saxon-jar=/usr/share/java/saxonb.jar
- BUILD_DEPS += , libsaxonb-java$(OOO_NO_JAVA_ARCHS)
- endif
- ifeq "$(PACKAGE_SDK)" "y"
- ifeq "$(PACKAGE_UNOWINREG_DLL)" "y"
- ifeq "$(BUILD_UNOWINREG_DLL)" "y"
- CONFIGURE_FLAGS += --enable-build-unowinreg
- ifeq "$(SQUEEZE_BACKPORT)" "y"
- BUILD_DEPS += , gcc-mingw32 [$(OOO_UNOWINREG_DLL_ARCHS)], mingw32-runtime[$(OOO_UNOWINREG_DLL_ARCHS)]
- CONFIGURE_FLAGS += --with-mingw-cross-compiler=i586-mingw32msvc-g++
- else
- BUILD_DEPS += , g++-mingw-w64-i686 [$(OOO_UNOWINREG_DLL_ARCHS)]
- CONFIGURE_FLAGS += --with-mingw-cross-compiler=i686-w64-mingw32-g++
- endif
- endif
- endif
- endif
- ifeq "$(ENABLE_MEDIAWIKI)" "y"
- CONFIGURE_FLAGS += --enable-ext-wiki-publisher
- ifneq (,$(filter apache-commons, $(SYSTEM_STUFF)))
- MEDIAWIKI_BUILD_DEPS += , libcommons-codec-java$(OOO_NO_JAVA_ARCHS), libcommons-httpclient-java$(OOO_NO_JAVA_ARCHS), libcommons-lang-java$(OOO_NO_JAVA_ARCHS), libcommons-logging-java$(OOO_NO_JAVA_ARCHS)
- MEDIAWIKI_JAR_DEPENDS := , libcommons-codec-java, libcommons-httpclient-java, libcommons-lang-java, libcommons-logging-java
- BUILD_DEPS += $(MEDIAWIKI_BUILD_DEPS)
- CONFIGURE_FLAGS += --with-commons-codec-jar=/usr/share/java/commons-codec.jar --with-commons-lang-jar=/usr/share/java/commons-lang.jar --with-commons-httpclient-jar=/usr/share/java/commons-httpclient.jar --with-commons-logging-jar=/usr/share/java/commons-logging.jar
- CONFIGURE_FLAGS += --with-system-servlet-api
- ifeq "$(SQUEEZE_BACKPORT)" "y"
- BUILD_DEPS += (<< 1.1.1-9), $(shell dpkg -s libcommons-logging-java | grep Suggests | cut -d"," -f1 | sed -e s/^\ // | awk '{ print $$2 }')
- CONFIGURE_FLAGS += --with-servlet-api-jar=$(shell dpkg -L `dpkg -s libcommons-logging-java | grep Suggests | cut -d"," -f1 | sed -e s/^\ // | awk '{ print $$2 }'` | grep servlet-api.*\.jar$ | head -n 1)
- else
- BUILD_DEPS += (>= 1.1.1-9), $(shell dpkg -s libcommons-logging-java | grep Suggests | cut -d"," -f5 | sed -e s/^\ // | awk '{ print $$1 }')
- CONFIGURE_FLAGS += --with-servlet-api-jar=$(shell dpkg -L `dpkg -s libcommons-logging-java | grep Suggests | cut -d"," -f5 | sed -e s/^\ // | awk '{ print $$1 }'` | grep servlet-api.*\.jar$ | head -n 1)
- endif
- endif
- endif
- ifeq "$(ENABLE_REPORTDESIGN)" "y"
- # report-builder
- ifneq (,$(filter jfreereport, $(SYSTEM_STUFF)))
- REPORT_BUILDER_BUILD_DEPS += , libbase-java$(OOO_NO_REPORTDESIGN_ARCHS), libsac-java$(OOO_NO_REPORTDESIGN_ARCHS), libxml-java (>= 1.1.6)$(OOO_NO_REPORTDESIGN_ARCHS), libflute-java (>= 1.1.6)$(OOO_NO_REPORTDESIGN_ARCHS), libpentaho-reporting-flow-engine-java (>= 0.9.4)$(OOO_NO_REPORTDESIGN_ARCHS), liblayout-java (>= 0.2.10)$(OOO_NO_REPORTDESIGN_ARCHS), libloader-java (>= 1.1.6)$(OOO_NO_REPORTDESIGN_ARCHS), libformula-java (>= 1.1.7)$(OOO_NO_REPORTDESIGN_ARCHS), librepository-java (>= 1.1.6)$(OOO_NO_REPORTDESIGN_ARCHS), libfonts-java (>= 1.1.6)$(OOO_NO_REPORTDESIGN_ARCHS), libserializer-java (>= 1.1.6)$(OOO_NO_REPORTDESIGN_ARCHS)
- REPORT_BUILDER_JAR_DEPENDS := , libbase-java, libsac-java, libxml-java (>= 1.1.6), libflute-java (>= 1.1.6), libpentaho-reporting-flow-engine-java (>= 0.9.4), liblayout-java (>= 0.2.10), libloader-java (>= 1.1.6), libformula-java (>= 1.1.7), librepository-java (>= 1.1.6), libfonts-java (>= 1.1.6), libserializer-java (>= 1.1.6)
- BUILD_DEPS += $(REPORT_BUILDER_BUILD_DEPS)
- CONFIGURE_FLAGS += --with-libbase-jar=/usr/share/java/libbase.jar --with-libxml-jar=/usr/share/java/libxml.jar --with-flute-jar=/usr/share/java/flute.jar --with-jfreereport-jar=/usr/share/java/flow-engine.jar --with-liblayout-jar=/usr/share/java/liblayout.jar --with-libloader-jar=/usr/share/java/libloader.jar --with-libformula-jar=/usr/share/java/libformula.jar --with-librepository-jar=/usr/share/java/librepository.jar --with-libfonts-jar=/usr/share/java/libfonts.jar --with-libserializer-jar=/usr/share/java/libserializer.jar
- endif
- ifneq (,$(filter apache-commons, $(SYSTEM_STUFF)))
- REPORT_BUILDER_BUILD_DEPS += , libcommons-logging-java$(OOO_NO_JAVA_ARCHS)
- REPORT_BUILDER_JAR_DEPENDS += , libcommons-logging-java
- CONFIGURE_FLAGS += --with-commons-logging-jar=/usr/share/java/commons-logging.jar
- ifeq "$(SQUEEZE_BACKPORT)" "y"
- BUILD_DEPS += (<< 1.1.1-9), $(shell dpkg -s libcommons-logging-java | grep Suggests | cut -d"," -f1 | sed -e s/^\ // | awk '{ print $$2 }')
- CONFIGURE_FLAGS += --with-servlet-api-jar=$(shell dpkg -L `dpkg -s libcommons-logging-java | grep Suggests | cut -d"," -f1 | sed -e s/^\ // | awk '{ print $$2 }'` | grep servlet-api.*\.jar$ | head -n 1)
- else
- BUILD_DEPS += (>= 1.1.1-9), $(shell dpkg -s libcommons-logging-java | grep Suggests | cut -d"," -f5 | sed -e s/^\ // | awk '{ print $$1 }')
- CONFIGURE_FLAGS += --with-servlet-api-jar=$(shell dpkg -L `dpkg -s libcommons-logging-java | grep Suggests | cut -d"," -f5 | sed -e s/^\ // | awk '{ print $$1 }'` | grep servlet-api.*\.jar$ | head -n 1)
- endif
- endif
- else
- CONFIGURE_FLAGS += --disable-ext-report-builder
- endif
- OOO_OFFICEBEAN_DEP = libreoffice$(VER)-officebean
- BUILD_DEPS += , javahelper $(JAVAHELPER_MIN_VERSION)
- else
- CONFIGURE_FLAGS += --without-java
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-officebean -Nlibreoffice$(VER)-java-common -Nlibreoffice$(VER)-filter-mobiledev -Nlibreoffice$(VER)-gcj -Nlibreoffice$(VER)-script-provider-bsh -Nlibreoffice$(VER)-script-provider-js
- endif
- ifneq (,$(filter nss, $(SYSTEM_STUFF)))
- BUILD_DEPS+= , libnss3-dev (>= 3.12.3)
- DBG_DBG_SUGGESTS+= , libnss3-1d-dbg
- endif
- ifneq (,$(filter mozilla-headers, $(SYSTEM_STUFF)))
- BUILD_DEPS+= , xulrunner-dev$(OOO_NO_NSPLUGIN_ARCHS)
- endif
- CONFIGURE_FLAGS += --disable-build-mozilla --disable-mozilla
- ifeq (,$(findstring $(DEB_HOST_ARCH),$(OOO_NSPLUGIN_ARCHS)))
- PACKAGE_NSPLUGIN=n
- CONFIGURE_FLAGS += --disable-nsplugin
- endif
- ifeq "$(USE_SYSTEM_DMAKE)" "y"
- BUILD_DEPS += , dmake (>= 1:4.11)
- endif
- ifneq (,$(filter hunspell, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libhunspell-dev $(HUNSPELL_MIN_VER)
- endif
- CONFIGURE_FLAGS += --with-external-dict-dir=$(DICT_DIR)
- ifneq (,$(filter altlinuxhyph, $(SYSTEM_STUFF)))
- ifeq "$(USE_LIBHYPHEN)" "y"
- BUILD_DEPS += , libhyphen-dev $(LIBHYPHEN_MINVER)
- else
- BUILD_DEPS += , libaltlinuxhyph-dev $(LIBALTLINUXHYPH_MINVER)
- endif
- endif
- CONFIGURE_FLAGS += --with-external-hyph-dir=$(HYPH_DIR)
- ifneq "$(OOO_STLPORT_ARCHS)" ""
- LIBSTLPORT_MINVER= (>= 4.6.2-3)
- BUILD_DEPS += , libstlport4.6-dev $(LIBSTLPORT_MINVER) [$(OOO_STLPORT_ARCHS)]
- CONFIGURE_FLAGS += --without-stlport
- endif
- ifneq (,$(filter boost, $(SYSTEM_STUFF)))
- ifeq "$(BOOST_VERSION)" "1.34"
- ifeq "$(SYSTEM_GCC_VERSION)" "4.4"
- BUILD_DEPS += , libboost-dev (>= 1.34.1-15)
- else
- BUILD_DEPS += , libboost-dev
- endif
- ifeq "$(SYSTEM_GCC_VERSION)" "4.6"
- BUILD_DEPS += , g++-4.6 (>= 4.6.2-12)
- endif
- else
- ifneq "$(BOOST_VERSION)" "default"
- BUILD_DEPS += , libboost$(BOOST_VERSION)-dev $(BOOST_MINVER)
- #BUILD_DEPS += , libboost-thread$(BOOST_VERSION)-dev, libboost-program-options$(BOOST_VERSION)-dev
- else
- BUILD_DEPS += , libboost-dev $(BOOST_MINVER)
- #BUILD_DEPS += , libboost-thread-dev, libboost-program-options-dev
- endif
- endif
- endif
- ifneq (,$(filter mdds, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libmdds-dev (>= 0.5.0)
- endif
- ifneq (,$(filter vigra, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libvigraimpex-dev
- endif
- ifneq (,$(filter sampleicc, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libsampleicc-dev, libicc-utils-dev
- endif
- ifeq "$(USE_EXTERNAL_CXXLIBS)" "y"
- ifneq (,$(filter libwpd, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libwpd-dev (>= 0.9.0)
- endif
- ifneq (,$(filter sablot, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libsablot0-dev (>= 1.0.2-4)
- endif
- ifneq (,$(filter mythes, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libmythes-dev (>= 2:1.2)
- endif
- ifneq (,$(filter libwps, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libwps-dev (>= 0.2.0)
- endif
- ifneq (,$(filter libwpg, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libwpg-dev (>= 0.2.0)
- endif
- ifneq (,$(filter libvisio, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libvisio-dev
- endif
- ifneq (,$(filter libcmis, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libcmis-dev
- endif
- endif
- CONFIGURE_FLAGS += --with-external-thes-dir=$(THES_DIR)
- ifneq (,$(filter icu, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libicu-dev $(ICU_MINVER)
- endif
- ifneq (,$(filter xmlsec, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libxmlsec1-dev (>= 1.2.9), libxmlsec1-nss (>= 1.2.9), libxmlsec1-openssl (>= 1.2.9)
- endif
- ifeq "$(BUILD_CAIROCANVAS)" "y"
- ifneq (,$(filter cairo, $(SYSTEM_STUFF)))
- BUILD_DEPS+= , libcairo2-dev
- endif
- else
- CONFIGURE_FLAGS+= --disable-cairo
- endif
- ifeq "$(BUILD_KDE)" "n"
- CONFIGURE_FLAGS+= --disable-kde
- CONFIGURE_FLAGS-= --disable-kde4
- CONFIGURE_FLAGS+= --with-theme="$(patsubst $(DEFAULT_IMAGE),default,$(IMAGES))"
- else
- CONFIGURE_FLAGS += --disable-kde
- CONFIGURE_FLAGS += --enable-kde4
- KDE_ICONSET_DEP=libreoffice$(VER)-style-oxygen
- BUILD_DEPS += , kdelibs5-dev $(KDELIBS_MINVER)
- BUILD_DEPS += , libqt4-dev $(QT_MINVER)
- DBG_DBG_SUGGESTS+= , kdelibs5-dbg, libqt4-dbg
- ifeq "$(ENABLE_KDEAB)" "y"
- ADDITIONAL_SECTIONS += KDE4Experimental
- BUILD_DEPS += , kdepimlibs5-dev$(OOO_NO_BASE_ARCHS)
- else
- CONFIGURE_FLAGS+= --disable-kdeab
- endif
- endif
- ifeq "$(ENABLE_MYSQLNATIVE)" "y"
- CONFIGURE_FLAGS += --enable-ext-mysql-connector
- ifneq (,$(filter mysql, $(SYSTEM_STUFF)))
- ifneq (,$(filter mysql-cppconn, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libmysqlclient-dev
- else
- BUILD_DEPS += , libmysqlclient-dev (>= 5.5~)
- endif
- endif
- ifneq (,$(filter mysql-cppconn, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libmysqlcppconn-dev $(MYSQLCPPCONN_MINVER)
- endif
- endif
- ifeq "$(BUILD_GTK)" "n"
- CONFIGURE_FLAGS+= --disable-gtk
- DEBHELPER_OPTIONS+= -Nlibreoffice$(VER)-gtk -Nlibreoffice$(VER)-gnome
- CONFIGURE_FLAGS+= --with-theme="$(patsubst galaxy,default,$(IMAGES))"
- else
- BUILD_DEPS += , libgtk2.0-dev (>= 2.10)
- endif
- ifeq "$(BUILD_GTK3)" "y"
- BUILD_DEPS += , libgtk-3-dev (>= 3.2~)
- CONFIGURE_FLAGS+= --enable-gtk3
- ifneq (cairo,$(findstring cairo,$(SYSTEM_STUFF)))
- $(error GTK3 build fails without system-cairo!!)
- endif
- else
- DEBHELPER_OPTIONS+= -Nlibreoffice$(VER)-gtk3
- endif
- ifeq "$(ENABLE_EVO2)" "n"
- CONFIGURE_FLAGS += --disable-evolution2
- DEBHELPER_OPTIONS += -Nlibreoffice-evolution
- else
- CONFIGURE_FLAGS += --enable-evolution2
- BUILD_DEPS += , libebook1.2-dev$(OOO_NO_BASE_ARCHS)
- endif
- ifeq "$(ENABLE_SDBC_POSTGRESQL)" "y"
- BUILD_DEPS += , libpq-dev (>= 9.0~)
- else
- CONFIGURE_FLAGS += --disable-postgresql-sdbc
- endif
- ifeq "$(ENABLE_RANDR)" "y"
- BUILD_DEPS += , libxrandr-dev
- else
- CONFIGURE_FLAGS += --disable-randr
- endif
- ifeq "$(BUILD_BINFILTERS)" "y"
- CONFIGURE_FLAGS+= --enable-binfilter
- OOO_BINFILTER_DEP = libreoffice$(VER)-filter-binfilter
- endif
- ifneq "$(BUILD_PYUNO)" "y"
- DEBHELPER_OPTIONS+= -Npython-uno -Npython3-uno -Nlibreoffice-script-provider-python
- CONFIGURE_FLAGS += --disable-python
- endif
- ifeq "$(ENABLE_JAVA)" "y"
- ifneq (,$(filter lucene, $(SYSTEM_STUFF)))
- BUILD_DEPS += , liblucene2-java (>= 2.3.2)$(OOO_NO_JAVA_ARCHS)
- LUCENE_DEPENDS = liblucene2-java (>= 2.3.2)
- # safety measure; e.g. lucene 2.9 index cannot be handled by lucene 2.4
- LUCENE_CONFLICTS = liblucene2-java (<< $(shell dpkg -l liblucene2-java | grep ^ii | awk '{ print $$3 }' | cut -d. -f1,2)~)
- CONFIGURE_FLAGS += --with-lucene-core-jar=/usr/share/java/lucene-core.jar --with-lucene-analyzers-jar=/usr/share/java/lucene-analyzers.jar
- endif
- ifneq (,$(filter hsqldb, $(SYSTEM_STUFF)))
- BUILD_DEPS += , libhsqldb-java $(HSQLDB_MINVER)$(OOO_NO_JAVA_ARCHS)
- BASE_HSQLDB_DEPENDS = libhsqldb-java $(HSQLDB_MINVER), libhsqldb-java (<< $(HSQLDB_TOONEWVER)~)
- JAVA_GCJ_DEPENDS += , libhsqldb-java-gcj [$(OOO_GCJ_ARCHS)]
- else
- ifneq "$(JDK)" "openjdk"
- # hsqldb with jdk7 buildfix from jdk7.diff fails with gcj
- $(error hsqldb with jdk7 buildfix from jdk7.diff fails with gcj)
- endif
- endif
- ifeq "$(ENABLE_SCRIPT_PROVIDER_BSH)" "y"
- ifneq (,$(filter beanshell, $(SYSTEM_STUFF)))
- BUILD_DEPS += , bsh (>= 2.0b4)$(OOO_NO_JAVA_ARCHS)
- BSH_DEPENDS = bsh (>= 2.0b4)
- JAVA_GCJ_DEPENDS += , bsh-gcj [$(OOO_GCJ_ARCHS)]
- endif
- CONFIGURE_FLAGS += --enable-ext-scripting-beanshell
- else
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-script-provider-bsh
- endif
- ifeq "$(ENABLE_SCRIPT_PROVIDER_JS)" "y"
- CONFIGURE_FLAGS += --enable-ext-scripting-javascript
- else
- DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-script-provider-js
- endif
- endif
- ifneq (,$(filter lpsolve, $(SYSTEM_STUFF)))
- ifeq "$(USE_SHARED_LPSOLVE)" "y"
- BUILD_DEPS += , liblpsolve55-dev $(LPSOLVE_MIN_VERSION), lp-solve $(LPSOLVE_MIN_VERSION)
- LPSOLVE_DEP = lp-solve $(LPSOLVE_MIN_VERSION)
- else
- BUILD_DEPS += , liblpsolve55-dev $(LPSOLVE_MIN_VERSION)
- endif
- ifeq "$(USE_LIBSUITESPARSE)" "y"
- DBG_DBG_SUGGESTS+= , libsuitesparse-dbg
- BUILD_DEPS += , libsuitesparse-dev $(SUITESPARSE_MIN_VERSION)
- else
- DBG_DBG_SUGGESTS+= , libufsparse-dbg
- BUILD_DEPS += , libufsparse-dev
- endif
- endif
- ifeq "$(USE_DBUS)" "y"
- BUILD_DEPS += , libdbus-glib-1-dev (>= 0.70)
- CONFIGURE_FLAGS += --enable-dbus
- endif
- ifeq "$(USE_GSTREAMER)" "y"
- BUILD_DEPS += , libgstreamer-plugins-base0.10-dev
- GSTREAMER_PLUGINS_SUGGESTS += , gstreamer0.10-plugins-base, gstreamer0.10-plugins-good, gstreamer0.10-plugins-ugly, gstreamer0.10-plugins-bad, gstreamer0.10-ffmpeg
- DBG_DBG_SUGGESTS+= , libgstreamer0.10-0-dbg
- else
- CONFIGURE_FLAGS += --disable-gstreamer
- endif
- ifneq (,$(filter neon, $(SYSTEM_STUFF)))
- ifneq "$(NEON_SECTYPE)" "openssl"
- BUILD_DEPS += , libneon$(NEONSONR)-$(NEON_SECTYPE)-dev
- DBG_DBG_SUGGESTS+= , libneon$(NEONSONR)-$(NEON_SECTYPE)-dbg
- else
- BUILD_DEPS += , libneon$(NEONSONR)-dev
- DBG_DBG_SUGGESTS+= , libneon$(NEONSONR)-dbg
- endif
- endif
- ifeq "$(HELPISOS)" ""
- CONFIGURE_FLAGS += --without-helppack-integration
- endif
- ifneq (,$(filter redland, $(SYSTEM_STUFF)))
- BUILD_DEPS += , librdf0-dev (>= 1.0.8)
- SHLIBS_OVERRIDE += -Xunordf
- endif
- ifeq "$(ENABLE_GIO)" "y"
- CONFIGURE_FLAGS += --enable-gio --disable-gnome-vfs
- BUILD_DEPS += , libglib2.0-dev (>= 2.15.0)
- endif
- ifeq "$(ENABLE_GVFS)" "y"
- BUILD_DEPS += , libgnomevfs2-dev
- else
- CONFIGURE_FLAGS += --disable-gnome-vfs
- endif
- ifeq "$(ENABLE_GCONF)" "y"
- BUILD_DEPS += , libgconf2-dev, liborbit2-dev
- else
- CONFIGURE_FLAGS += --disable-gconf
- endif
- BUILD_DEPS += , gettext
- ifeq "$(PACKAGE_TTF_OPENSYMBOL)" "y"
- BUILD_DEPS_INDEP += , fontforge
- endif
- # Use compiler cache? Include ccache in DEB_BUILD_OPTIONS for much faster rebuild times
- # A complete build uses about 9G of compiler cache.
- ifneq (ccache,$(findstring ccache,$(DEB_BUILD_OPTIONS)))
- CONFIGURE_FLAGS += --disable-ccache
- endif
- ## Build n projects in parallel?
- ## DEB_BUILD_OPTIONS=parallel=<n>
- ## if not specified LibreOffices configure tries to find it out itself
- NUM_CPUS=$(shell echo "$(DEB_BUILD_OPTIONS) " | sed -n 's/^\(.* \)\?parallel=\([0-9]\+\).*$$/\2/p')
- AVAIL_CPUS := $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
- ifeq "$(PARALLEL_BUILD)" "y"
- # http://bugs.debian.org/622644
- BUILD_DEPS += , make (>= 3.81-8.2)
- ifneq "$(NUM_CPUS)" "$(AVAIL_CPUS)"
- CONFIGURE_FLAGS += --with-num-cpus=$(NUM_CPUS)
- endif
- else
- CONFIGURE_FLAGS += --with-num-cpus=1
- endif
- ifeq ($(GCC_VERSION),)
- BUILD_PATH = /usr/lib/jvm/java-gcj/bin:$$PATH
- else
- ifeq ($(GCC_VERSION),snapshot)
- BUILD_PATH = /usr/lib/jvm/java-gcj/bin:/usr/lib/gcc-snapshot/bin:$$PATH
- BUILD_LD_LIBRARY_PATH = /usr/lib/gcc-snapshot/lib:$$LD_LIBRARY_PATH
- BUILD_DEPS += , gcc-snapshot
- else
- BUILD_PATH = /usr/lib/jvm/java-gcj/bin:$(CURDIR)/debian/usr/bin:$$PATH
- endif
- endif
- BUILD_PATH := $(CURDIR)/debian/usr/bin:$(BUILD_PATH)
- BUILD_LD_LIBRARY_PATH := $(BUILD_LD_LIBRARY_PATH):$(GCJ_JAWT_DIR)
- ifeq "$(ENABLE_LDAP)" "y"
- ifeq "$(USE_OPENLDAP)" "y"
- BUILD_DEPS += , libldap2-dev
- LDAP_LIB := $(shell echo libldap-`grep LDAP_VENDOR_VERSION_M /usr/include/ldap_features.h | cut -d: -f2 | awk '{ print $$3 }' | xargs | sed -e "s/ /\./"`-`grep LDAP_VENDOR_VERSION_MAJOR /usr/include/ldap_features.h | cut -d: -f2 | awk '{ print $$3 }'`)
- CONFIGURE_FLAGS += --with-openldap
- endif
- else
- CONFIGURE_FLAGS += --disable-ldap
- endif
- # Because of the stampdir magic, when you actually want to run a rule
- # over, you would have to remove the stamp manually. Now, just do
- # 'debian/rules <target> <target> ... FORCE=1', and the stamp files
- # that match the given targets will be removed automagically.
- stampdir_targets=files.backup icons.scale patch.apply build.prepare.artwork
- stampdir_targets+=build.prepare configure
- stampdir_targets+=setupins setup install install-arch install-indep
- stampdir_targets+=langpacks binary-common binary-arch binary-indep
- ifdef FORCE
- DUMMY:=$(shell rm -f $(patsubst %,$(STAMP_DIR)/%,$(filter $(stampdir_targets),$(MAKECMDGOALS))))
- endif
- # If this is defined, then none of the 'long' commands will be run. Useful
- # for testing.
- # test_rules=1
- # Since the final stages use up a large amount of diskspace, provide targets to
- # remove them without needing a full rebuild
- # Clean up the package directories (about 830M)
- clean-debdir:
- dh_testdir
- rm -f debian/*.postinst debian/*.postrm debian/*.preinst debian/*.prerm debian/*.triggers
- dh_clean
- clean:
- dh_testroot
- dh_testdir
- # remove generated symlinks / java wrappers
- rm -rf debian/usr
- if [ -f config.status ]; then \
- $(MAKE) distclean; \
- rm -f config.status; \
- fi
- find $(SOURCE_TREE)/solenv/gdb -name "*.pyc" -exec rm {} \;
- rm -rf */*.pro.obsolete
- rm -rf $(SOURCE_TREE)/file-lists
- rm -rf $(SOURCE_TREE)/pyuno-py3
- rm -f configure aclocal.m4
- rm -f build_error.log
- ifeq "$(HELPISOS)" ""
- rm -rf images*
- endif
- # Files created in debian directory
- $(MAKE) -f debian/rules clean-debdir
- find debian -name "*.links" -exec rm {} \;
- if [ -d "$(STAMP_DIR)" ]; then rm -rf "$(STAMP_DIR)"; fi
- rm -f debian/shlibs.override.stdlibs
- rm -f debian/*.bug-script
- rm -f debian/scripts/aotcompile.py*
- rm -f l10n.fdupes
- rm -f debian/shlibs.local
- rm -f debian/*.templates
- rm -f debian/libreoffice-dev-doc.doc-base.*
- rm -f debian/*.menu
- for i in base calc core common draw impress math writer; do \
- rm -f debian/libreoffice-$$i.lintian-overrides; \
- done
- rm -f debian/*.install debian/*.dirs debian/*.changelog
- rm -f debian/catalog.xml
- rm -f debian/openoffice.org-dtd-officedocument1.0.xmlcatalogs
- rm -f download.list
- $(MAKE) -f debian/rules control
- # Generate control file, because we have so many different languages
- # Based on script by Martin Quinson <Martin.Quinson@tuxfamily.org>
- control: debian/control
- debian/control: $(wildcard debian/control*in) $(SOURCE_TREE)/bin/lo-xlate-lang debian/rules
- chmod 755 $(SOURCE_TREE)/bin/lo-xlate-lang
- sed -e "s#libreofficeVER#libreoffice$(VER)#g" \
- -e "s#libreofficeVER#libreoffice$(VER)#g" \
- -e "s#%$(DEB_VENDOR)=\([^%]*\)%#, \1#g#" \
- -e "s#%[A-Za-z]*=[^%]*%##g#" \
- -e "s#%BUILD_DEPS%#$(strip $(BUILD_DEPS))#g" \
- -e "s#%BUILD_DEPS_INDEP%#$(strip $(BUILD_DEPS_INDEP))#g" \
- -e "s#@PYTHON_VERSION@#$(PYTHON_VERSION)#g" \
- -e "s#@BUGS@#$(BUGS)#g" \
- < debian/control.in > debian/control
- ifeq "$(ENABLE_LDAP)" "y"
- # build-depends might not be satified when running debian/rules control. prevent bad subsitition with
- # nothing (libldap--)
- if [ ! -f /usr/include/ldap_features.h ]; then \
- echo "/usr/include/ldap_features.h not found. Is libldap2-dev installed?"; \
- echo 'Needed for properly setting $$(LDAP_LIB). Stopping,'; \
- exit 1; \
- fi
- endif
- for LNUM in $(filter-out en-US,$(LANGPACKISOS)) ; do \
- LNAME=`$(SOURCE_TREE)/bin/lo-xlate-lang -l $$LNUM | perl -e 'print ucfirst(<STDIN>);'`; \
- LCODE=`$(SOURCE_TREE)/bin/lo-xlate-lang -i $$LNUM | tr A-Z a-z`; \
- [ "$$LNUM" = ca-XV ] && continue; \
- CCODE=`echo $$LCODE | sed 's/-.*//'`; \
- case "$$LCODE" in \
- bn|gu|pa-in|ml|or|te|ta) \
- FONT_SUGGESTS=", ttf-`echo $$LNAME | tr A-Z a-z`-fonts"; \
- ;; \
- hi-in|ne|mr) \
- FONT_SUGGESTS=", ttf-devanagari-fonts"; \
- ;; \
- he) \
- FONT_SUGGESTS=", culmus"; \
- ;; \
- km) \
- FONT_SUGGESTS=", ttf-khmeros"; \
- ;; \
- ar) \
- FONT_SUGGESTS=", ttf-arabeyes"; \
- ;; \
- fa) \
- FONT_SUGGESTS=", ttf-farsiweb"; \
- ;; \
- dz) \
- FONT_SUGGESTS=", ttf-dzongkha"; \
- ;; \
- th) \
- if [ "$(SQUEEZE_BACKPORT)" != "y" ]; then \
- FONT_SUGGESTS=", fonts-thai-tlwg"; else \
- FONT_SUGGESTS=", ttf-thai-tlwg"; fi; \
- ;; \
- *) \
- FONT_SUGGESTS= ;; \
- esac; \
- case "$$LCODE" in \
- rw) \
- LOCALES_DEPENDS="locales (>= 2.3.6) | belocs-locales-data | locales-all (>= 2.3.6)" \
- ;; \
- ss|ts|km|ns|tn) \
- LOCALES_DEPENDS="locales (>= 2.3.5-12) | belocs-locales-data | locales-all" \
- ;; \
- sr) \
- LOCALES_DEPENDS="locales (>= 2.3.6.ds1-5) | belocs-locales-data | locales-all" \
- ;; \
- as|or|nr) \
- LOCALES_DEPENDS="locales (>= 2.3.6.ds1-1) | locales-all (>= 2.3.6.ds1-1)" \
- ;; \
- sw) \
- LOCALES_DEPENDS="locales (>= 2.13-5) | locales-all (>= 2.13-5)" \
- ;; \
- *) \
- LOCALES_DEPENDS="locales | belocs-locales-data | locales-all" \
- ;; \
- esac; \
- sed -e "s|@LNAME@|$$LNAME|g" -e "s|@LCODE@|$$LCODE|g" \
- -e "s|@CCODE@|$$CCODE|g" \
- -e "s|@FONT_SUGGESTS@|$$FONT_SUGGESTS|g" \
- -e "s:@LOCALES_DEPENDS@:$$LOCALES_DEPENDS:g" \
- -e "s|libreofficeVER|libreoffice$(VER)|g" \
- -e "s|@LDAP_LIB@|$(LDAP_LIB)|g" \
- >> debian/control < debian/control.lang.in; \
- done
- ifneq "$(HELPISOS)" ""
- for LNUM in $(HELPISOS) ; do \
- LNAME=`$(SOURCE_TREE)/bin/lo-xlate-lang -l $$LNUM | perl -e 'print ucfirst(<STDIN>);'`; \
- LCODE=`$(SOURCE_TREE)/bin/lo-xlate-lang -i $$LNUM | tr A-Z a-z`; \
- [ "$$LNUM" = ca-XV ] && continue; \
- CCODE=`echo $$LCODE | sed 's/-.*//'`; \
- sed -e "s|@LNAME@|$$LNAME|g" -e "s|@LCODE@|$$LCODE|g" \
- -e "s|@CCODE@|$$CCODE|g" \
- -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.help.in; \
- done
- # en_US is in -common
- perl -pi -e 's|(Depends: libreoffice$(VER)-writer \| language-support-translations-en), libreoffice$(VER)-l10n-en-us|\1|' \
- debian/control
- perl -pi -e 's|(Depends: libreoffice$(VER)-writer, libreoffice$(VER)-l10n-en-us)|\1, ttf-devanagari-fonts|' \
- debian/control
- endif
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.ure.in
- ifeq "$(ENABLE_JAVA)" "y"
- ifneq "$(OOO_GCJ_JDK_ARCHS)" ""
- # ifeq "$(BUILD_JARS_NATIVE)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.gcj.in
- # endif
- endif
- endif
- ifneq "$(OOO_NSPLUGIN_ARCHS)" ""
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.mozilla.in
- endif
- ifneq "$(OOO_OGLTRANS_ARCHS)" ""
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.ogltrans.in
- endif
- ifeq "$(ENABLE_JAVA)" "y"
- ifeq "$(ENABLE_MEDIAWIKI)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.mediawiki.in
- endif
- ifeq "$(ENABLE_REPORTDESIGN)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.reportdesign.in
- endif
- endif
- ifeq "$(ENABLE_MINIMIZER)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.minimizer.in
- endif
- ifeq "$(ENABLE_PRESENTER_CONSOLE)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.presenter.in
- endif
- ifeq "$(ENABLE_PDFIMPORT)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.pdfimport.in
- endif
- ifeq "$(PACKAGE_TTF_OPENSYMBOL)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.fonts.in
- endif
- ifeq "$(BUILD_DBG_PACKAGE)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.debug.in
- endif
- ifeq "$(PACKAGE_SDK)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.sdk.in
- endif
- ifeq "$(BUILD_KDE)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.kde.in
- perl -pi -e 's/ libreoffice$(VER)-gnome,/ libreoffice-gnome | libreoffice$(VER)-kde,/' debian/control
- endif
- ifeq "$(ENABLE_SDBC_POSTGRESQL)" "y"
- sed -e "s|libreofficeVER|libreoffice$(VER)|g" \
- >> debian/control < debian/control.postgresql.in
- endif
- ifeq "$(ENABLE_MYSQLNATIVE)" "y"
- sed -e "s|lib…
Large files files are truncated, but you can click here to view the full file