~openoffice-pkgs/openoffice/3.2.1-maverick

1 by Chris Halls
Import from old cvs.debian.org
1
#!/usr/bin/make -f
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
2
################################################################################
894 by Mirco Bauer
- fixed typo
3
# OpenOffice.org source package rules file
12 by Chris Halls
Imported openoffice_org-1_0_1-5
4
#
5
# Please see debian/README for detailed documentation about the build system, and
6
# how to build OpenOffice.org.
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
7
################################################################################
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
8
# Authors:
9
# Chris Halls <halls@debian.org>
10
# Rene Engelhard <rene@debian.org>
1022.1.400 by Rene Engelhard
fix PYTHON_SITE for python2.6 (print(sysconfig.get_python_lib())
11
# Copyright 2002-2009 Software in the Public Interest, Inc.
1 by Chris Halls
Import from old cvs.debian.org
12
# Licensed under the GNU General Public License, version 2.  See the file
13
# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
14
################################################################################
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
15
525 by Rene Engelhard
mention fixed mozilla profile detection patch; reorder Suggests; some (minor) Ubuntu merge
16
PKGSOURCE := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2;exit 0}')
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
17
SOURCE_VERSION:=$(shell head -1 debian/changelog | cut -d\( -f2 | cut -d\) -f1)
1115 by Rene Engelhard
update ooo-build; fix dependencies/conflicts
18
UPSTREAM_VERSION:=$(shell echo "$(SOURCE_VERSION)"| cut -d: -f2 | cut -d- -f1)
19
BASE_VERSION:=$(shell echo $(SOURCE_VERSION) | cut -d: -f1):$(UPSTREAM_VERSION)
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
20
BINARY_VERSION=$(SOURCE_VERSION)
1026 by Rene Engelhard
remove obsolete libsndfile1-dev builddep
21
#BINARY_VERSION=1:2.4.0-$(shell dpkg-parsechangelog  | grep urgency \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
22
	| awk '{print $$2}' | sed -e s/"("// -e s/")"// | cut -d"-" -f2)
1022.17.82 by Rene Engelhard
HELP_L10N_VIRTUAL_VERSION:=3.2
23
#HELP_L10N_VIRTUAL_VERSION:=$(shell echo $(UPSTREAM_VERSION) | cut -d: -f2 | tr [~] [\\-])
24
HELP_L10N_VIRTUAL_VERSION:=3.2
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
25
#VER:=3
1022.17.10 by Rene Engelhard
update OOVER and HELP_L10N_VIRTUAL_VERSION
26
OOVER:=3.2
1022.10.207 by Rene Engelhard
make -common conflict against -core having another basisX.Y than -common and introduce new BASIS_VERSION variable
27
BASIS_VERSION:=$(OOVER)
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
28
173 by Rene Engelhard
merge manpage installation fixes from doko@ubuntu.com--2006-pkg-openoffice
29
PACKAGES := $(shell dh_listpackages)
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
30
ARCH_INDEP_PACKAGES := $(shell dh_listpackages -i)
31
ARCH_DEP_PACKAGES := $(shell dh_listpackages -s)
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
32
562 by Rene Engelhard
m5; remove sarge backport conditionals; prepare for etch backport; also extract lingucomponent/inc, remove sarge->etch transitional packages
33
OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
34
ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
35
DIST := $(shell lsb_release -is)
1022.1.394 by Rene Engelhard
base-files got "fixed" - unti~ the next release...
36
DISTREL := $(shell lsb_release -cs)
1058 by Rene Engelhard
explicitely specify --host and --build
37
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
38
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
39
SHELL:=/bin/bash
40
41
PKGDIR:=debian/openoffice.org$(VER)
42
OODIRNAME=openoffice$(VER)
43
OOBRANDDIR:=usr/lib/$(OODIRNAME)
1022.10.207 by Rene Engelhard
make -common conflict against -core having another basisX.Y than -common and introduce new BASIS_VERSION variable
44
OOBASISDIR:=$(OOBRANDDIR)/basis$(BASIS_VERSION)
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
45
OOSDKDIR:=$(OOBASISDIR)/sdk
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
46
OOUREDIR:=usr/lib/ure
47
# compatability
48
OODIR:=$(OOBASISDIR)
1058 by Rene Engelhard
explicitely specify --host and --build
49
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
50
# Figure out who's building this package.
161 by Rene Engelhard
set OOO_VENDOR
51
OOO_VENDOR:=Debian
525 by Rene Engelhard
mention fixed mozilla profile detection patch; reorder Suggests; some (minor) Ubuntu merge
52
ifeq "$(DIST)" "Ubuntu"
53
OOO_VENDOR+= and Ubuntu
54
endif
55
export OOO_VENDOR
1 by Chris Halls
Import from old cvs.debian.org
56
57
# debhelper
58
export DH_OPTIONS
1022.10.126 by Rene Engelhard
ooo-build went git
59
export DH_ALWAYS_EXCLUDE=CVS:.svn:.bzr:.git
33 by Chris Halls
Imported openoffice.org_1.1.4-4
60
#export DH_VERBOSE=1
1022.17.215 by Rene Engelhard
- fix build with 1.0 source format. Add missing uuencode for the extra
61
# quilt
62
export QUILT_PATCHES=debian/patches
1022.17.275 by Rene Engelhard
add -F0 to QUILT_OPTIONS
63
export QUILT_OPTIONS="-p1 -F0"
185 by Rene Engelhard
merge possibility to build -qa-* from Ubuntu, add possibility to build -dbg, disable both per default. fix control.{help,lang}.in
64
89 by Chris Halls
debian/rules fixes (path, rerun target, non-debuild problems)
65
# work around tcsh bugs.debian.org/339034: tcsh: Unknown colorls variable `su'
66
unexport LS_COLORS
1 by Chris Halls
Import from old cvs.debian.org
67
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
68
# Build with -Os apart from ARM to avoid GCC register spill errors
1241 by Matthias Klose
- use macro instead of shell in rules
69
ifneq (,$(filter $(ARCH), arm armel))
1236 by Matthias Klose
* On armel, build the internal copy of icu with -Os instead of -O.
70
	export ICU_ARCH_FLAGS = -Os
1232 by Chris Cheney
openoffice.org (1:3.1.1-1ubuntu2) karmic; urgency=low
71
endif
72
1022.17.35 by Rene Engelhard
OOO320_m1; correct versioning
73
MWS=OOO320
1022.24.41 by Rene Engelhard
prepare for m17 aka 3.2.1rc1 with Suns tarballs; update translations
74
#MILESTONE:=$(shell echo "$(UPSTREAM_VERSION)" | cut -d~ -f2 | sed -e s/$(shell echo $(MWS) | tr A-Z a-z)//)
1022.24.87 by Rene Engelhard
prepare for 3.2.1 final (to be released Friday), update ooo-build
75
MILESTONE=m19
76
#TAG=$(shell echo $(MWS) | tr A-Z a-z)-$(MILESTONE)
77
TAG=$(MWS)_$(MILESTONE)
1022.24.57 by Rene Engelhard
missed OOO_BUILD_VERSION=3.2.1.1 in rules
78
#OOO_BUILD_BRANCH=ooo-build-3-2-1
1022.24.111 by Rene Engelhard
update to ooo-build 3.2.1.4
79
OOO_BUILD_VERSION=3.2.1.4
1022.17.200 by Rene Engelhard
change build version to omit openoffice.org-core but mention ooo-build release instead
80
OOO_BUILD_TAG=OOO_BUILD_$(shell echo $(OOO_BUILD_VERSION) | sed -e 's/\./_/g')
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
81
OOO_BUILD_TREE=ooo-build-$(shell echo $(OOO_BUILD_VERSION) | sed -e 's/\./-/g')
82
SOURCE_TREE=$(OOO_BUILD_TREE)/build/$(TAG)
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
83
STAMP_DIR=debian/stampdir
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
84
# unused yet but will get important for OOo 3.3
1022.17.227 by Rene Engelhard
builds with TARFILE_LOCATION need absoute path set
85
TARFILE_LOCATION=$(CURDIR)/ext-sources
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
86
export TARFILE_LOCATION
1 by Chris Halls
Import from old cvs.debian.org
87
1022.1.267 by Rene Engelhard
lenny backport
88
ifeq "$(DISTREL)" "lenny"
89
 LENNY_BACKPORT=y
388 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-127; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.3--patch-16
90
endif
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
91
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
92
#########
93
# Default package configuration
94
#
500 by Rene Engelhard
add broffice.org package; enable amd64; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.4--patch-15, add persons to changelog
95
BUILD_AMD64=y
1022.10.343 by Rene Engelhard
update ooo-build; add s390x
96
BUILD_IA64=y
774 by Rene Engelhard
some m219 updates, m219 is not yet released, but...
97
BUILD_PPC64=y
1022.10.343 by Rene Engelhard
update ooo-build; add s390x
98
BUILD_S390X=y
1022.10.435 by Rene Engelhard
update ooo-build; reenable sparc
99
BUILD_SPARC=y
1022.17.213 by Rene Engelhard
add ARM bridges fix from issue 105359; reenable armel
100
BUILD_ARMEL=y
1022.10.442 by Rene Engelhard
according to doko Java (gcj-jdk) works on hppa
101
BUILD_HPPA=y
1022.17.230 by Rene Engelhard
add alpha port
102
BUILD_ALPHA=y
1022.17.331 by Rene Engelhard
enable kfreebsd again, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578023#54
103
BUILD_KFREEBSD=y
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
104
PATCHSET=$(DIST)
105
BUILD_DEPS=
106
BUILD_PYUNO=y
1022.10.140 by Rene Engelhard
oops, this wasn't intended to be committed, especially as it doesn't help
107
USE_PYCENTRAL=y
108
USE_PYSUPPORT=n
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
109
# THIS IS ONLY FOR TESTING. When building against a specified pythonX.Y
110
# this will work inside OOo but *not* from outside OOo unless the user
111
# uses pythonX.Y directly (and the dh_pycentral-created dependencies allow
112
# also the non-working default python then) - see e.g. #587402
113
PYTHON_VERSION=current
114
ifeq "$(PYTHON_VERSION)" "current"
115
  PYTHON=python
116
else
117
  PYTHON=python$(PYTHON_VERSION)
118
endif
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
119
PACKAGE_TTF_OPENSYMBOL=y
1022.10.519 by Rene Engelhard
reenable -gcj
120
ifneq "$(ARCH)" "powerpc"
121
  ifneq "$(ARCH)" "ppc64"
122
    BUILD_JARS_NATIVE=y
123
 endif
124
endif
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
125
BUILD_BINFILTERS=y
1022.24.33 by Rene Engelhard
add updated localizations (at least those few available yet on ftp.linux.cz, reenable languages
126
BUILD_ONLY_EN_US=n
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
127
ENABLE_JAVA=y
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
128
ifeq "$(ENABLE_JAVA)" "y"
129
  JDK=openjdk
130
  ifeq "$(ARCH)" "ia64"
131
    JDK=gcj-jdk
132
  endif
133
  ifneq (,$(findstring mips,$(ARCH)))
134
    JDK=gcj-jdk
135
  endif
136
  ifneq (,$(findstring kfreebsd,$(ARCH)))
137
    JDK=gcj-jdk
138
  endif
139
  ifeq "$(ARCH)" "hppa"
140
    JDK=gcj-jdk
141
  endif
1022.10.442 by Rene Engelhard
according to doko Java (gcj-jdk) works on hppa
142
endif
1022.1.244 by Rene Engelhard
reenble Mono packages, remove $TMPD in get-orig-source
143
ENABLE_MONO=y
1022.1.391 by Rene Engelhard
mono 2.0 goes into unstable RSN - so MONO2=y
144
MONO2=y
1022.1.379 by Rene Engelhard
only build-dep on mono 2.0.1 when MONO2=y
145
ifeq "$(MONO2)" "y"
1022.10.461 by Rene Engelhard
mono-csc already exists since the 2.4.2.3 packages
146
  MONO_MINVER= (>= 2.4.2.3)
1022.1.379 by Rene Engelhard
only build-dep on mono 2.0.1 when MONO2=y
147
else
148
  MONO_MINVER= (>= 1.2.3)
149
endif
1052 by Rene Engelhard
reenable system-hunspell, tighten libhyphen0 depends
150
USE_SYSTEM_HUNSPELL=y
755 by Rene Engelhard
honour nocheck; use bzr update; remove some ETCH_BACKPORT stuff and replace it by USE_LIBCURL4 and USE_SHARED_LPSOLVE
151
HUNSPELL_MIN_VER= (>= 1.1.5-2)
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
152
SYSTEM_ALTLINUXHYPH=y
901.1.64 by Rene Engelhard
build against libhyphen-dev
153
USE_LIBHYPHEN=y
611.1.14 by Rene Engelhard
bump libaltlinuxhyph-dev builddep
154
LIBALTLINUXHYPH_MINVER= (>= 0.1.1-11)
1099 by Rene Engelhard
adapt for new libhyphen
155
LIBHYPHEN_MINVER= (>= 2.4)
539.1.20 by Rene Engelhard
USE_AGG=n
156
USE_AGG=n
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
157
SYSTEM_AGG=n
901.2.10 by Rene Engelhard
- update ooo-build
158
USE_STLPORT=n
1022.17.133 by Rene Engelhard
reenable system-stlport
159
USE_SYSTEM_STLPORT=y
877 by Rene Engelhard
use system-boost again; use dpkgs Homepage: field
160
USE_SYSTEM_BOOST=y
1022.10.319 by Rene Engelhard
close #536664; use default boost 1.39 again as it's fixed
161
BOOST_VERSION=default
1022.18.7 by Rene Engelhard
bump boost build-dep
162
ifeq "$(BOOST_VERSION)" "default"
163
  BOOST_MINVER= (>= 1.38)
1022.1.384 by Rene Engelhard
version the boost 1.37 build-dep for safety
164
endif
1022.10.318 by Rene Engelhard
use boost 1.38.0 for now
165
ifeq "$(BOOST_VERSION)" "1.39"
166
  BOOST_MINVER= (>= 1.39.0-2)
167
endif
1022.24.82 by Rene Engelhard
use system mdds
168
USE_SYSTEM_MDDS=y
805 by Rene Engelhard
m222, system-vigra, add libuno_purpenvhelpergcc3 to -cores .shlibs.local; fix changelog, system-boost for etch backport as it has a version which is working
169
USE_SYSTEM_VIGRA=y
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
170
USE_EXTERNAL_CXXLIBS=y
171
LIBWPD8_MINVER= (>= 0.8.3-3)
172
USE_SYSTEM_SABLOT=n
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
173
USE_LIBXSLT=y
1022.24.55 by Rene Engelhard
remove libmythes-dev again, mythes 1.2 is through NEW
174
USE_EXTERNAL_MYTHES=y
901.1.46 by Rene Engelhard
reenable system-icu
175
USE_SYSTEM_ICU=y
1022.10.21 by Rene Engelhard
fix version
176
ICU_MINVER= (>= 4.0)
832 by Rene Engelhard
system-libwpg
177
USE_SYSTEM_LIBWPG=y
643 by Rene Engelhard
rc3; enable system-libwps; fix binfilter substvar; install scsolvers changelog; generalize mono-ooo.pc install; lintian fixes
178
USE_SYSTEM_LIBWPS=y
408 by Rene Engelhard
internal xmlsec again...
179
USE_SYSTEM_XMLSEC=n
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
180
BUILD_CAIROCANVAS=y
181
USE_SYSTEM_CAIRO=y
686 by Rene Engelhard
build against libportaudio2
182
CAIRO_FONTS_PATCH=y
1022.10.263 by Rene Engelhard
- add conditionals for KDE4, enable -kde for KDE4 again (closes: #528487)
183
BUILD_KDE=y
184
KDE_VER=4
1022.1.96 by Rene Engelhard
we only need to build-depend on kdepimlibs when we enable kab
185
ifeq "$(BUILD_KDE)" "y"
1022.10.263 by Rene Engelhard
- add conditionals for KDE4, enable -kde for KDE4 again (closes: #528487)
186
  ifeq "$(KDE_VER)" "3"
187
    ENABLE_KDEAB=y
188
  else
189
    ENABLE_KDEAB=n
190
  endif
191
endif
192
ifeq "$(KDE_VER)" "3"
193
  KDELIBS_MINVER= (>= 4:3.4.3-2)
194
endif
1022.10.269 by Rene Engelhard
the current implemntation needs qt4 >= 4.5
195
ifeq "$(KDE_VER)" "4"
196
  QT_MINVER= (>= 4.5)
1022.10.533 by Rene Engelhard
work around rules setting a kdelibs4-dev (>= 4:4.3.4) build-dep on lenny-backports
197
  # somehow lenny-backport picks this up although
198
  # KDE is 3...
199
  ifneq "$(LENNY_BACKPORT)" "y"
200
    KDELIBS_MINVER= (>= 4:4.3.4)
201
  endif
1022.10.269 by Rene Engelhard
the current implemntation needs qt4 >= 4.5
202
endif  
550 by Rene Engelhard
merge openofficeorg--unstable--2.0.4--patch-87; reenable -dbg; use -g1; wrap/shorten descriptions; fix -l10n-* generation
203
BUILD_DBG_PACKAGE=y
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
204
USE_SYSTEM_BSH=y
1022.10.19 by Rene Engelhard
fixup
205
USE_SYSTEM_HSQLDB=y
1022.10.123 by Rene Engelhard
m7; merge
206
HSQLDB_MINVER= (>> 1.8.0.10)
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
207
HSQLDB_TOONEWVER=1.8.1
1022.1.411 by Rene Engelhard
fix saxon conditional; use internal saxon
208
# disabled because system-saxon breaks all kinds exports using XSLT transforms
209
# (e.g. M$ Word/Excel 2003 XML, Mediawiki, XHTML, UOF, ...)
210
# It does *NOT* fail with _plain_ saxon 9.0.0.8 built with OOos build.xml
211
# for UOF, but still for e.g. M$.
212
USE_SYSTEM_SAXON=n
1022.1.216 by Rene Engelhard
enable system-lucene
213
USE_SYSTEM_LUCENE=y
348 by Rene Engelhard
build against system-lpsolve (and system-colamd)
214
USE_SYSTEM_LPSOLVE=y
755 by Rene Engelhard
honour nocheck; use bzr update; remove some ETCH_BACKPORT stuff and replace it by USE_LIBCURL4 and USE_SHARED_LPSOLVE
215
USE_SHARED_LPSOLVE=y
1022.10.253 by Rene Engelhard
bump LPSOLVE_MIN_VERSION and SUITESPARSE_MIN_VERSION for suitesparse 3.4.0
216
LPSOLVE_MIN_VERSION= (>= 5.5.0.13-5+b1)
498 by Rene Engelhard
remove dbus workaround again, specify --disable-dbus when disabling dbus; enable it again for sid
217
USE_DBUS=y
449 by Rene Engelhard
USE_GSTREAMER=y
218
USE_GSTREAMER=y
373 by Rene Engelhard
m175
219
USE_SYSTEM_NEON=y
1022.10.357 by Rene Engelhard
build with libenon27-gnutls
220
NEON_SECTYPE=gnutls
1022.1.382 by Rene Engelhard
build with boost 1.37
221
NEONSONR=27
1022.17.237 by Rene Engelhard
add patch to allow build against system-redland; update build-dep; enable it and work around dpkg-shlibdeps failing
222
USE_SYSTEM_REDLAND=y
533 by Rene Engelhard
some more Ubuntu merge (ooo-build desktops); Build-Conflict against libstlport5.0-dev (= 5.0.2-10); add README.Debian-source
223
USE_OOO_BUILD_DESKTOPS=n
1022.6.12 by Rene Engelhard
reenable the SDK
224
PACKAGE_SDK=y
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
225
ifeq "$(ENABLE_JAVA)" "y"
226
  ifeq "$(JDK)" "openjdk"
227
    RUN_SMOKETEST=y
228
  else
1022.24.110 by Rene Engelhard
smoketest fixes
229
    ifneq (buildd,$(shell whoami))
230
      RUN_SMOKETEST=n
231
    endif
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
232
  endif
233
else
234
  RUN_SMOKETEST=y
1022.24.110 by Rene Engelhard
smoketest fixes
235
endif
1022.1.272 by Rene Engelhard
add option to run API tests
236
RUN_API_TESTS=n
885 by Rene Engelhard
update ooo-build
237
RUN_UNIT_TESTS=n
755 by Rene Engelhard
honour nocheck; use bzr update; remove some ETCH_BACKPORT stuff and replace it by USE_LIBCURL4 and USE_SHARED_LPSOLVE
238
USE_LIBCURL4=y
1022.17.237 by Rene Engelhard
add patch to allow build against system-redland; update build-dep; enable it and work around dpkg-shlibdeps failing
239
CURL_SECTYPE=gnutls
789 by Rene Engelhard
make system-dmake conditional
240
USE_SYSTEM_DMAKE=y
795 by Rene Engelhard
etch backport fixes
241
USE_LIBSUITESPARSE=y
1022.10.253 by Rene Engelhard
bump LPSOLVE_MIN_VERSION and SUITESPARSE_MIN_VERSION for suitesparse 3.4.0
242
SUITESPARSE_MIN_VERSION= (>= 1:3.4.0)
837 by Rene Engelhard
PARALLEL_BUILD=n
243
PARALLEL_BUILD=n
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
244
USE_COMMON_DOCDIR=n
1022.10.421 by Rene Engelhard
MOZILLA=libxul
245
MOZILLA=libxul
1022.17.15 by Rene Engelhard
remove hardcoded libldap2-dev builddep, move to conditional and suggest the lib
246
ENABLE_LDAP=y
247
USE_OPENLDAP=y
1022.10.86 by Rene Engelhard
reenable OGLTrans
248
ENABLE_OPENGL=y
925 by Rene Engelhard
reenable mips(el) with m238 where cws mipseport02 hopefully will be in, gutls->openssl, no PCVSLib
249
SYSTEM_OPENSSL=y
901.1.57 by Rene Engelhard
fix build with new dpkg-dev
250
NEW_DPKG_SHLIBDEPS=y
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
251
ifeq "$(ENABLE_JAVA)" "y"
1022.10.66 by Rene Engelhard
actually we need to wiat for rptfix04 really as we rely on reportbuilder...
252
  # can be reenabled after cws rptfix04
1022.1.239 by Rene Engelhard
reenable report-builder; fix dependency
253
  ENABLE_REPORTDESIGN=y
974 by Rene Engelhard
update ooo-build; jfreereport is now pentaho; xt not needed; reenable -gcj
254
  USE_SYSTEM_JFREEREPORT=y
1022.10.58 by Rene Engelhard
reenable wiki-publisher and presenter-console as configuretoplevel is integrated; remove obsolete changelog entry
255
  ENABLE_MEDIAWIKI=y
1022.1.43 by Rene Engelhard
update mediawiki conditionals, bump its depends; fix Build-Depends:
256
  USE_SYSTEM_APACHE_COMMONS=y
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
257
else
258
  ENABLE_REPORTDESIGN=n
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
259
  ENABLE_MEDIAWIKI=n
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
260
endif
1292 by Chris Cheney
openoffice.org (1:3.2.0-7ubuntu3) lucid; urgency=low
261
ENABLE_SDBC_POSTGRESQL=y
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
262
ENABLE_MINIMIZER=y
1022.10.58 by Rene Engelhard
reenable wiki-publisher and presenter-console as configuretoplevel is integrated; remove obsolete changelog entry
263
ENABLE_PRESENTER_CONSOLE=y
1022.1.44 by Rene Engelhard
m11
264
ENABLE_PDFIMPORT=y
1022.1.102 by Rene Engelhard
reenable gtk and kde, disable gio
265
BUILD_GTK=y
1022.1.112 by Rene Engelhard
reenable evoab2, fix logic
266
ENABLE_EVO2=y
1202 by Chris Cheney
openoffice.org (1:3.0.1-5ubuntu1) jaunty; urgency=low
267
ENABLE_GVFS=y
1022.15.10 by Rene Engelhard
merge from Ubuntu
268
ENABLE_GCONF=y
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
269
# broken!
1022.1.302 by Rene Engelhard
oops, don't enable gio (yet)
270
ENABLE_GIO=n
1135 by Rene Engelhard
ooo-build update; reenable randr
271
ENABLE_RANDR=y
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
272
ENABLE_LAYOUT=n
1022.1.99 by Rene Engelhard
update for m19; reenable mozilla plugin
273
ifeq "$(BUILD_GTK)" "y"
274
  PACKAGE_NPSOPLUGIN=y
275
endif
1022.24.106 by Rene Engelhard
add missed default PACKAGE_BASE=y
276
PACKAGE_BASE=y
1022.1.202 by Rene Engelhard
some cleanup
277
# "new" source split? This is to be n when to use
278
# Suns tarballs.
1022.24.87 by Rene Engelhard
prepare for 3.2.1 final (to be released Friday), update ooo-build
279
WITH_SPLIT=n
1022.17.2 by Rene Engelhard
prepare for m56 -- graphite support included there
280
ENABLE_GRAPHITE=y
1022.17.122 by Rene Engelhard
use internal stlport and build with system-graphite now (the hack only works with STLport 4.5
281
USE_SYSTEM_GRAPHITE=y
1022.10.116 by Rene Engelhard
- when enabling the report builder, temporarily build with internal
282
ALLOC=system
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
283
DEBSRC_VERSION=3.0
1022.17.329 by Rene Engelhard
use textcat data from libtextcat-data-utf8 if the same with "ours"
284
USE_SYSTEM_TEXTCAT_DATA=y
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
285
286
# when we have a package we want to have to be installed on older things with some older
287
# C++ ABI (like it was the case with openoffice.org2), we need to set this. Don't touch
288
# otherwise
289
INTERNAL_STDLIBS=n
1022.10.272 by Rene Engelhard
more optimisation
290
DEFAULT_IMAGE=galaxy
291
IMAGES:=$(DEFAULT_IMAGE) industrial crystal hicontrast tango oxygen classic
1022.10.344 by Rene Engelhard
update ooo-build; ENABLE_MYSQLNATIVE=y
292
ENABLE_MYSQLNATIVE=y
1022.17.259 by Rene Engelhard
actually system.mysqlcpp.diff does apply...
293
# cannot be disabled, unless you have a internal MySQL somewhere :-)
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
294
USE_SYSTEM_MYSQLCLIENT=y
1022.17.259 by Rene Engelhard
actually system.mysqlcpp.diff does apply...
295
USE_SYSTEM_MYSQLCPPCONN=y
1022.17.87 by Rene Engelhard
bump libmysqlcppconn-dev builddep to rebuild against visibility-fixed one. closes #558240
296
MYSQLCPPCONN_MINVER= (>= 1.1.0~r791)
1022.10.354 by Rene Engelhard
fix lang= again *sigh*; use new external dict dirs
297
DICT_DIR=/usr/share/hunspell
298
HYPH_DIR=/usr/share/hyphen
299
THES_DIR=/usr/share/mythes
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
300
301
# Default flags to pass to configure of ooo-build
302
CONFIGURE_FLAGS= --disable-post-install-scripts \
303
                 --with-tag=$(TAG) \
304
                --with-distro=$(PATCHSET) \
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
305
		--with-vendor='$(OOO_VENDOR)' \
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
306
                --enable-package-directories \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
307
                --with-installed-ooo-dirname=$(OODIRNAME) \
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
308
                --mandir=/usr/share/man \
353 by Rene Engelhard
improve SDK docs install; stop depending on -core from -common
309
                --with-docdir=/usr/share/doc/openoffice.org \
1022.24.65 by Rene Engelhard
merge
310
                --with-build-version="ooo-build $(OOO_BUILD_VERSION), $(DIST) package $(BINARY_VERSION)" \
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
311
                --disable-strip \
793 by Rene Engelhard
update ooo-build
312
                --enable-lockdown \
997 by Rene Engelhard
fix mono install (crashes, though :/); -1
313
		--with-drink=coffee \
1058 by Rene Engelhard
explicitely specify --host and --build
314
		--libdir=/usr/lib \
1022.1.108 by Rene Engelhard
m20
315
		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
1022.17.1 by Rene Engelhard
start 3.2 stuff
316
		--enable-hids \
1022.1.108 by Rene Engelhard
m20
317
		--with-system-dicts \
1022.17.3 by Rene Engelhard
--without-git
318
		--with-additional-sections="$(ADDITIONAL_SECTIONS)" \
1313.1.3 by Martin Pitt
debian/rules: Explicitly configure with --with-openldap, to ensure that we
319
		--with-openldap \
1313.1.5 by Martin Pitt
debian/rules: Configure with --with-use-shell=bash, otherwise it picks
320
		--with-use-shell=bash \
1313.1.7 by Martin Pitt
debian/rules: Configure with --with-system-python, otherwise it now picks
321
		--with-system-python \
1022.17.3 by Rene Engelhard
--without-git
322
		--without-git
1022.10.83 by Rene Engelhard
- only specify --with-lang= when we don't only build en-US. en-US is
323
1022.1.202 by Rene Engelhard
some cleanup
324
ifneq "$(WITH_SPLIT)" "y"
325
	CONFIGURE_FLAGS += --without-split
326
endif
327
759 by Rene Engelhard
--disable-access
328
# distro-configs is too late; it already gets searched in unpack
329
# when we don't do that here, too.
330
CONFIGURE_FLAGS += --disable-access
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
331
1022.10.116 by Rene Engelhard
- when enabling the report builder, temporarily build with internal
332
CONFIGURE_FLAGS += --with-alloc=$(ALLOC)
333
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
334
#############
335
# Distro-specific overrides
336
337
# Debian
338
ifeq "$(DIST)" "Debian"
339
  # we don't need to build all languages and the thesaurus on the buildds;
340
  # they do binary-only builds anyway
1158 by Rene Engelhard
oops
341
  ifeq (buildd,$(shell whoami))
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
342
       BUILD_ONLY_EN_US=y
343
  endif
344
endif
345
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
346
ifeq "$(DIST)" "Ubuntu"
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
347
  # build with --with-distro=CurrentDistro to trigger specific go-oo distro conf
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
348
  PATCHSET=$(DIST)$(shell perl -e 'print ucfirst("$(DISTREL)");')
349
  CONFIGURE_FLAGS += \
1282 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu3) lucid; urgency=low
350
       --with-about-bitmaps=$(CURDIR)/debian/ubuntu/openabout_ubuntu_oracle.bmp \
351
       --with-intro-bitmaps=$(CURDIR)/debian/ubuntu/openintro_ubuntu_oracle.bmp
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
352
1237 by Chris Cheney
openoffice.org (1:3.1.1-2ubuntu1) karmic; urgency=low
353
  BUILD_DEPS += , translate-toolkit (>= 1.1.1)
1164 by Chris Cheney
openoffice.org (1:3.0.0~beta2-1ubuntu2) intrepid; urgency=low
354
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
355
  HUMAN=human
1228 by Chris Cheney
ubuntu update for 3.1.1
356
  IMAGES += $(HUMAN)
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
357
358
  BUILD_DBG_PACKAGE=n
1295 by Chris Cheney
openoffice.org (1:3.2.1~rc2-2ubuntu1) maverick; urgency=low
359
  # GVFS broken - need to test again
1216 by Chris Cheney
openoffice.org (1:3.1.0~rc2-1ubuntu1) karmic; urgency=low
360
  ENABLE_GVFS=n
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
361
  USE_COMMON_DOCDIR=y
1210 by Chris Cheney
openoffice.org (1:3.0.1-9ubuntu1) jaunty; urgency=low
362
  USE_LZMA_COMPRESS=y
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
363
  USE_OOO_BUILD_DESKTOPS=y
1215 by Chris Cheney
Debian merge:
364
  # won't fit on CD
365
  USE_SYSTEM_LUCENE=n
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
366
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
367
  # find extra translations for LPI (GSIDIR is used in bin/localize-ooo)
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
368
  export DEB_GSIDIR=$(CURDIR)/debian/ubuntu/l10n
369
1313.1.2 by Martin Pitt
debian/rules: Copy maverick compiler flags for natty.
370
  ifeq "$(DISTREL)" "natty"
371
    BOOST_VERSION=1.42
372
    BOOST_MINVER=(>= 1.42.0)
373
    # only in maverick and later
374
    USE_SYSTEM_MDDS=n
375
    USE_SYSTEM_TEXTCAT_DATA=n
376
    USE_EXTERNAL_MYTHES=n
377
    GCC_VERSION=4.5
378
    CONFIGURE_FLAGS += --with-linker-hash-style=gnu
379
380
  else ifeq "$(DISTREL)" "maverick"
1295 by Chris Cheney
openoffice.org (1:3.2.1~rc2-2ubuntu1) maverick; urgency=low
381
    BOOST_VERSION=1.42
382
    BOOST_MINVER=(>= 1.42.0)
1300 by Matthias Klose
* debian/rules: Use some internal components to build on lucid.
383
    # only in maverick and later
384
    USE_SYSTEM_MDDS=n
385
    USE_SYSTEM_TEXTCAT_DATA=n
386
    USE_EXTERNAL_MYTHES=n
1305 by Matthias Klose
* Build using gcc-4.5.
387
    GCC_VERSION=4.5
1308 by Matthias Klose
* Fix issue 110881, backport from 3.3 (fix fullscreen mode with compiz
388
    CONFIGURE_FLAGS += --with-linker-hash-style=gnu
1295 by Chris Cheney
openoffice.org (1:3.2.1~rc2-2ubuntu1) maverick; urgency=low
389
390
  else ifeq "$(DISTREL)" "lucid"
1263 by Chris Cheney
openoffice.org (1:3.1.1-5ubuntu2) lucid; urgency=low
391
    BOOST_VERSION=1.40
392
    BOOST_MINVER=(>= 1.40.0)
1284 by Chris Cheney
update for ubuntu changes and add new oracle splash
393
    # in universe and too late in the cycle
394
    USE_SYSTEM_MYSQLCPPCONN=n
1304 by Matthias Klose
* debian/rules: Use some internal components to build on lucid.
395
    # only in maverick and later
396
    USE_SYSTEM_MDDS=n
397
    USE_SYSTEM_TEXTCAT_DATA=n
398
    USE_EXTERNAL_MYTHES=n
1308 by Matthias Klose
* Fix issue 110881, backport from 3.3 (fix fullscreen mode with compiz
399
    CONFIGURE_FLAGS += --with-linker-hash-style=gnu
1263 by Chris Cheney
openoffice.org (1:3.1.1-5ubuntu2) lucid; urgency=low
400
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
401
  else # fallback
402
403
  endif
404
405
endif
406
1022.1.267 by Rene Engelhard
lenny backport
407
# Debian Lenny
408
ifeq "$(LENNY_BACKPORT)" "y"
409
  USE_SYSTEM_LUCENE=n
1022.10.93 by Rene Engelhard
fix getting the -report-builder version;lenny-backport fixes (internal icu, internal jfreereport)
410
  USE_SYSTEM_ICU=n
1182 by Chris Cheney
fixup for mono transition for backports
411
  MONO_MINVER= (>= 1.2.3)
1022.1.304 by Rene Engelhard
generalize
412
  MONO2=n
1022.17.218 by Rene Engelhard
disable system-boost on lenny
413
  USE_SYSTEM_BOOST=n
1022.24.60 by Rene Engelhard
add conditional for system-mdds
414
  USE_SYSTEM_MDDS=n
1022.1.389 by Rene Engelhard
suitesparse 3.2.0 entered sid, so update build-deps again
415
  LPSOLVE_MIN_VERSION= (>= 5.5.0.10-10)
416
  SUITESPARSE_MIN_VERSION= (>= 3.1.0)
1022.10.93 by Rene Engelhard
fix getting the -report-builder version;lenny-backport fixes (internal icu, internal jfreereport)
417
  USE_SYSTEM_JFREEREPORT=n
1022.1.448 by Rene Engelhard
- keep -kde/-kab enabled on lenny-backports
418
  BUILD_KDE=y
1022.1.450 by Rene Engelhard
more lenny backport fixes (wrt kab)
419
ifeq "$(BUILD_KDE)" "y"
420
  ENABLE_KDEAB=y
421
endif
1022.10.263 by Rene Engelhard
- add conditionals for KDE4, enable -kde for KDE4 again (closes: #528487)
422
  KDE_VER=3
1022.1.449 by Rene Engelhard
- build with -openssl flavour of curl on lenny-backports
423
  CURL_SECTYPE=openssl
1022.10.208 by Rene Engelhard
HSQLDB_MINVER= (>> 1.8.0.9) for lenny, thanks Tim Retout
424
  HSQLDB_MINVER= (>> 1.8.0.9)
1022.10.228 by Rene Engelhard
+ * debian/rules:
425
ifeq "$(ARCH)" "ia64"
426
  JDK=java-gcj-compat-dev
427
endif
428
ifneq (,$(findstring mips,$(ARCH)))
429
  JDK=java-gcj-compat-dev
430
endif
1022.10.306 by Rene Engelhard
use gcj-jdk/java-gcj-compat-dev on kfreebsd-*
431
ifneq (,$(findstring kfreebsd,$(ARCH)))
432
  JDK=java-gcj-compat-dev
433
endif
1022.10.354 by Rene Engelhard
fix lang= again *sigh*; use new external dict dirs
434
  DICT_DIR=/usr/share/myspell/dicts
435
  HYPH_DIR=/usr/share/myspell/dicts
436
  THES_DIR=/usr/share/myspell/dicts
1022.10.421 by Rene Engelhard
MOZILLA=libxul
437
  MOZILLA=iceape
1022.17.247 by Rene Engelhard
explain why there's no -mysql-connector on lenny-backports
438
  # only works with system-mysqlcppconn on lenny (the thing has a hardoced
439
  # so.16). And mysql-connector-c++ is not in lenny.
1022.10.450 by Rene Engelhard
disable mysqlnative for lenny-backports
440
  ENABLE_MYSQLNATIVE=n
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
441
  DEBSRC_VERSION=1.0
1022.17.237 by Rene Engelhard
add patch to allow build against system-redland; update build-dep; enable it and work around dpkg-shlibdeps failing
442
  USE_SYSTEM_REDLAND=n
1022.17.329 by Rene Engelhard
use textcat data from libtextcat-data-utf8 if the same with "ours"
443
  USE_SYSTEM_TEXTCAT_DATA=n
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
444
endif
445
1278 by Chris Cheney
Debian merge:
446
ifeq "$(DIST)" "Debian"
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
447
# the archive only accepts bzip2 compressed members on 3.0 (quilt)
448
ifeq "$(DEBSRC_VERSION)" "3.0"
449
  USE_BZIP_COMPRESS=y
450
  PRUNE_OOOBUILD=n
451
else
452
  USE_BZIP_COMPRESS=n
453
  PRUNE_OOOBUILD=y
1022.24.86 by Rene Engelhard
USE_EXTERNAL_MYTHES=n on lenny
454
  USE_EXTERNAL_MYTHES=n
359 by Rene Engelhard
simplify builddeps (fixing for apt-get build-dep), fix -dev/-dev-doc file conflict
455
endif
456
endif
457
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
458
#############
459
# Architecture-specific changes
460
1022.1.11 by Rene Engelhard
fix install, install unopkg.1, disable binfilters
461
LIBSUFFIX := $(shell grep LIBSUFFIX debian/scripts/vars.$(ARCH) | cut -d"=" -f2)
1022.1.32 by Rene Engelhard
add PLATFORMID
462
PLATFORMID := $(shell grep PLATFORMID debian/scripts/vars.$(ARCH) | cut -d"=" -f2)
1022.1.11 by Rene Engelhard
fix install, install unopkg.1, disable binfilters
463
1022.10.57 by Rene Engelhard
prepare for m40
464
# ./configure defaults to STLport on i386 and we should keep it for
1022.10.489 by Rene Engelhard
update STLport comment(s)
465
# ABI-compatability
1022.1.338 by Rene Engelhard
fix -gcjs Architecture:; remove rest (not working anyway right now) of ETCH_BACKPORT stuff
466
OOO_STLPORT_ARCHS= i386
467
ifeq "$(ARCH)" "i386"
901.2.10 by Rene Engelhard
- update ooo-build
468
	USE_STLPORT=y
1187 by Chris Cheney
openoffice.org (1:3.0.1~rc1-2ubuntu1) jaunty; urgency=low
469
endif
1022.10.489 by Rene Engelhard
update STLport comment(s)
470
# graphite and mysqlconnector built against libstc++s STL but OOo wants them
471
# with STLport. Not possible without patch.
1022.10.280 by Rene Engelhard
update graphite conditionals
472
ifeq ($(ARCH),$(findstring $(ARCH),$(OOO_STLPORT_ARCHS)))
1022.17.121 by Rene Engelhard
merge; update ooo-build
473
#	USE_SYSTEM_GRAPHITE=n
1022.17.259 by Rene Engelhard
actually system.mysqlcpp.diff does apply...
474
#	USE_SYSTEM_MYSQLCPPCONN=n
1022.10.280 by Rene Engelhard
update graphite conditionals
475
endif
901.2.10 by Rene Engelhard
- update ooo-build
476
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
477
ifeq "$(ENABLE_OPENGL)" "y"
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
478
# doesn't make that much sense on arm(el) and mips(el), does it? :)
1211 by Chris Cheney
openoffice.org (1:3.0.1-9ubuntu2) jaunty; urgency=low
479
OOO_OGLTRANS_ARCHS= i386 powerpc s390
1022.17.309 by Rene Engelhard
add kFreeBSD port
480
ifeq "$(BUILD_KFREEBSD)" "y"
481
   OOO_OGLTRANS_ARCHS+= kfreebsd-i386
482
endif
1022.10.86 by Rene Engelhard
reenable OGLTrans
483
ifeq "$(BUILD_AMD64)" "y"
484
  OOO_OGLTRANS_ARCHS+= amd64
1022.17.309 by Rene Engelhard
add kFreeBSD port
485
  ifeq "$(BUILD_KFREEBSD)" "y"
486
     OOO_OGLTRANS_ARCHS+= kfreebsd-amd64
487
  endif
1022.10.86 by Rene Engelhard
reenable OGLTrans
488
endif
489
ifeq "$(BUILD_IA64)" "y"
490
  OOO_OGLTRANS_ARCHS+= ia64
491
endif
492
ifeq "$(BUILD_PPC64)" "y"
493
  OOO_OGLTRANS_ARCHS+= ppc64
494
endif
1022.10.343 by Rene Engelhard
update ooo-build; add s390x
495
ifeq "$(BUILD_S390X)" "y"
496
  OOO_OGLTRANS_ARCHS+= s390x
497
endif
1211 by Chris Cheney
openoffice.org (1:3.0.1-9ubuntu2) jaunty; urgency=low
498
ifeq "$(BUILD_SPARC)" "y"
499
  OOO_OGLTRANS_ARCHS+= sparc
500
endif
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
501
ifeq (,$(findstring $(ARCH),$(OOO_OGLTRANS_ARCHS)))
1055 by Rene Engelhard
fix mozilla/ogltrans conditionals, the new java-gcj-compat-dev is now in sid; adapt description
502
       ENABLE_OPENGL=n
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
503
endif
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
504
else
505
  OOO_OGLTRANS_ARCHS=
506
endif
936 by Rene Engelhard
fix neon builddep; temporarily disable qa-tools and mono; use system-hsqldb again; enable OGLTrans for i386
507
1278 by Chris Cheney
Debian merge:
508
OOO_ARCHS= i386 m68k mips mipsel powerpc s390
1022.17.309 by Rene Engelhard
add kFreeBSD port
509
ifeq "$(BUILD_KFREEBSD)" "y"
510
   OOO_ARCHS += kfreebsd-i386
511
endif
1022.17.242 by Rene Engelhard
sort arch lists, patch from Chris Cheney
512
ifeq "$(BUILD_ALPHA)" "y"
513
  OOO_ARCHS += alpha
1022.17.292 by Rene Engelhard
the mozilla plugin is broken on 64 bit archs; (temporarily) disable it on those until fixed
514
  OOO_64BIT_ARCHS += alpha
1022.17.242 by Rene Engelhard
sort arch lists, patch from Chris Cheney
515
endif
391 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-129
516
ifeq "$(BUILD_AMD64)" "y"
517
  OOO_ARCHS += amd64
1022.17.292 by Rene Engelhard
the mozilla plugin is broken on 64 bit archs; (temporarily) disable it on those until fixed
518
  OOO_64BIT_ARCHS += amd64
1022.17.309 by Rene Engelhard
add kFreeBSD port
519
  ifeq "$(BUILD_KFREEBSD)" "y"
520
    OOO_ARCHS += kfreebsd-amd64
521
    OOO_64BIT_ARCHS += kfreebsd-amd64
522
  endif
391 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-129
523
endif
1022.17.242 by Rene Engelhard
sort arch lists, patch from Chris Cheney
524
ifeq "$(BUILD_ARMEL)" "y"
525
  OOO_ARCHS += armel
526
endif
527
ifeq "$(BUILD_HPPA)" "y"
528
  OOO_ARCHS += hppa
529
endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
530
ifeq "$(BUILD_IA64)" "y"
531
  OOO_ARCHS += ia64
1022.17.292 by Rene Engelhard
the mozilla plugin is broken on 64 bit archs; (temporarily) disable it on those until fixed
532
  OOO_64BIT_ARCHS += ia64
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
533
endif
774 by Rene Engelhard
some m219 updates, m219 is not yet released, but...
534
ifeq "$(BUILD_PPC64)" "y"
535
  OOO_ARCHS += ppc64
1022.17.292 by Rene Engelhard
the mozilla plugin is broken on 64 bit archs; (temporarily) disable it on those until fixed
536
  OOO_64BIT_ARCHS += ppc64
774 by Rene Engelhard
some m219 updates, m219 is not yet released, but...
537
endif
1022.10.343 by Rene Engelhard
update ooo-build; add s390x
538
ifeq "$(BUILD_S390X)" "y"
539
  OOO_ARCHS += s390x
1022.17.292 by Rene Engelhard
the mozilla plugin is broken on 64 bit archs; (temporarily) disable it on those until fixed
540
  OOO_64BIT_ARCHS += s390x
1022.10.343 by Rene Engelhard
update ooo-build; add s390x
541
endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
542
ifeq "$(BUILD_SPARC)" "y"
543
  OOO_ARCHS += sparc
1022.10.340 by Rene Engelhard
don't build sparc
544
endif
1022.17.199 by Rene Engelhard
- conditionalize armel build; reenable on lenny-backport - that still
545
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
546
# Java...
1278 by Chris Cheney
Debian merge:
547
OOO_JAVA_ARCHS = i386 mips mipsel powerpc s390
1022.17.309 by Rene Engelhard
add kFreeBSD port
548
ifeq "$(BUILD_KFREEBSD)" "y"
549
   OOO_JAVA_ARCHS+= kfreebsd-i386
550
endif
1283 by Chris Cheney
Debian merge:
551
ifeq "$(BUILD_ALPHA)" "y"
1022.17.242 by Rene Engelhard
sort arch lists, patch from Chris Cheney
552
  OOO_JAVA_ARCHS+= alpha
553
endif
481 by Rene Engelhard
disable lfs support again for now since stlport5 needs an update first; reenable Java on amd64, seems to work on current amd64/sid
554
ifeq "$(BUILD_AMD64)" "y"
555
  OOO_JAVA_ARCHS+= amd64
1022.17.309 by Rene Engelhard
add kFreeBSD port
556
  ifeq "$(BUILD_KFREEBSD)" "y"
557
    OOO_JAVA_ARCHS+= kfreebsd-amd64
558
  endif
774 by Rene Engelhard
some m219 updates, m219 is not yet released, but...
559
endif
1022.17.242 by Rene Engelhard
sort arch lists, patch from Chris Cheney
560
ifeq "$(BUILD_ARMEL)" "y"
561
  OOO_JAVA_ARCHS+= armel
562
endif
563
ifeq "$(BUILD_HPPA)" "y"
564
  OOO_JAVA_ARCHS+= hppa
565
endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
566
ifeq "$(BUILD_IA64)" "y"
567
  OOO_JAVA_ARCHS+= ia64
568
endif
774 by Rene Engelhard
some m219 updates, m219 is not yet released, but...
569
ifeq "$(BUILD_PPC64)" "y"
570
  OOO_JAVA_ARCHS+= ppc64
481 by Rene Engelhard
disable lfs support again for now since stlport5 needs an update first; reenable Java on amd64, seems to work on current amd64/sid
571
endif
1022.10.343 by Rene Engelhard
update ooo-build; add s390x
572
ifeq "$(BUILD_S390X)" "y"
573
  OOO_JAVA_ARCHS+= s390x
574
endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
575
ifeq "$(BUILD_SPARC)" "y"
576
  OOO_JAVA_ARCHS+= sparc
1022.10.340 by Rene Engelhard
don't build sparc
577
endif
1022.17.242 by Rene Engelhard
sort arch lists, patch from Chris Cheney
578
1022.1.338 by Rene Engelhard
fix -gcjs Architecture:; remove rest (not working anyway right now) of ETCH_BACKPORT stuff
579
# gcj does not work on ppc, so no need to build -gcj for it
580
OOO_GCJ_ARCHS := $(filter-out ppc64,$(filter-out powerpc,$(OOO_JAVA_ARCHS)))
581
1022.17.242 by Rene Engelhard
sort arch lists, patch from Chris Cheney
582
OOO_GCJ_JDK_ARCHS := hppa ia64 kfreebsd-i386 kfreebsd-amd64 mips mipsel
1022.17.197 by Rene Engelhard
debian/rules: build-depend on ant1.7 on gij-using archs (see #571532
583
OOO_OPENJDK_ARCHS := $(filter-out $(OOO_GCJ_JDK_ARCHS),$(OOO_JAVA_ARCHS))
1022.10.444 by Rene Engelhard
remove hppa conditionals again as the patch needs the split .mks in 3.2 and I don't bother to port it; update Java conditionals
584
1022.17.343 by Rene Engelhard
update with newest patch also fixing extensions and reenable extensions on armel
585
OOO_ARCH_DEP_EXTENSIONS_ARCHS := $(OOO_ARCHS)
1022.17.293 by Rene Engelhard
GAH, I missed that armel has broken arch-dep extensions, Reintroduce %OOO_ARCH_DEP_EXTENSIONS_ARCHS%
586
1312 by Matthias Klose
* Reenable building packages on armel, which were disabled in the 3.2.1
587
ifeq "$(DIST)" "Ubuntu"
588
OOO_BASE_ARCHS := $(OOO_ARCHS)
589
# broken control file generation
590
OOO_NO_BASE_ARCHS := !hppa
591
OOO_REPORTDESIGN_ARCHS := $(OOO_JAVA_ARCHS)
592
else
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
593
OOO_BASE_ARCHS := $(filter-out armel,$(OOO_ARCHS))
594
OOO_NO_BASE_ARCHS := !armel
595
OOO_REPORTDESIGN_ARCHS := $(filter-out armel,$(OOO_JAVA_ARCHS))
1312 by Matthias Klose
* Reenable building packages on armel, which were disabled in the 3.2.1
596
endif
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
597
598
ifneq (,$(findstring $(ARCH),$(OOO_NO_BASE_ARCHS)))
599
	PACKAGE_BASE=n
600
	ENABLE_SDBC_POSTGRESQL=n
601
	ENABLE_MYSQLNATIVE=n
602
	ENABLE_EVO2=n
603
	ENABLE_KDEAB=n
604
	ENABLE_REPORTDESIGN=n
605
	DEBHELPER_OPTIONS += -Nopenoffice.org$(VER)-base openoffice.org$(VER)-base-core
606
	DEBHELPER_OPTIONS += -Nopenoffice.org$(VER)-evolution -Nopenoffice.org$(VER)-kab
607
	DEBHELPER_OPTIONS += -Nopenoffice.org$(VER)-sdbc-postgresql -Nopenoffice.org$(VER)-mysql-connector
608
	DEBHELPER_OPTIONS += -Nopenoffice.org$(VER)-report-builder-bin -Nopenoffice.org$(VER)-report-builder
609
endif
610
1022.17.313 by Rene Engelhard
* merge from Ubuntu:
611
ifeq (,$(findstring $(ARCH),$(OOO_ARCH_DEP_EXTENSIONS_ARCHS)))
612
	ENABLE_MINIMIZER=n
613
	ENABLE_PDFIMPORT=n
614
	ENABLE_PRESENTER_CONSOLE=n
615
	ENABLE_SDBC_POSTGRESQL=n
616
	ENABLE_MYSQLNATIVE=n
617
endif
618
391 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-129
619
ifeq (,$(findstring $(ARCH),$(OOO_JAVA_ARCHS)))
1034 by Chris Cheney
debian/rules: clean up whitespace
620
	ENABLE_JAVA=n
1085 by Rene Engelhard
+ - explicitely set ENABLE_REPORTDESIGN=n in arch conditonals for
621
	ENABLE_REPORTDESIGN=n
1022.1.38 by Rene Engelhard
merge
622
	ENABLE_MEDIAWIKI=n
1000 by Rene Engelhard
make arm really use --without-java, update ooo-build
623
else
624
	# extra step needed for arm, as the if matches the arm in armel..
625
  ifeq "$(ARCH)" "arm"
1034 by Chris Cheney
debian/rules: clean up whitespace
626
	ENABLE_JAVA=n
1085 by Rene Engelhard
+ - explicitely set ENABLE_REPORTDESIGN=n in arch conditonals for
627
	ENABLE_REPORTDESIGN=n
1022.1.38 by Rene Engelhard
merge
628
	ENABLE_MEDIAWIKI=n
1000 by Rene Engelhard
make arm really use --without-java, update ooo-build
629
  endif
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
630
endif
1084 by Rene Engelhard
correct control.mono.in inclusion regardless of host architecture
631
632
ifeq "$(ENABLE_MONO)" "y"
631 by Rene Engelhard
more mono stuff
633
# mono
1022.10.248 by Rene Engelhard
revert r1576, makes no sense regarding testing migration: OOo would wait
634
# ppc fails (#412967), arm(el), too
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
635
OOO_MONO_ARCHS = i386
1022.17.309 by Rene Engelhard
add kFreeBSD port
636
ifeq "$(BUILD_KFREEBSD)" "y"
637
   OOO_MONO_ARCHS+= kfreebsd-i386
638
endif
1022.1.105 by Rene Engelhard
reenable mono
639
ifeq "$(BUILD_AMD64)" "y"
640
  OOO_MONO_ARCHS += amd64
1022.17.309 by Rene Engelhard
add kFreeBSD port
641
  ifeq "$(BUILD_KFREEBSD)" "y"
642
    OOO_MONO_ARCHS+= kfreebsd-amd64
643
  endif
1022.1.105 by Rene Engelhard
reenable mono
644
endif
975 by Rene Engelhard
+ * debian/rules, debian/scripts/vars.ia64: first preparations for the
645
ifeq "$(BUILD_IA64)" "y"
646
  OOO_MONO_ARCHS += ia64
647
endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
648
ifeq "$(BUILD_SPARC)" "y"
649
  OOO_MONO_ARCHS += sparc
650
endif
636 by Rene Engelhard
actually enable mono package..., simplify logic (like Java)
651
ifeq (,$(findstring $(ARCH),$(OOO_MONO_ARCHS)))
655 by Rene Engelhard
rc4; fix dh_shlibdeps call for glibc 2.5
652
       ENABLE_MONO=n
631 by Rene Engelhard
more mono stuff
653
endif
1084 by Rene Engelhard
correct control.mono.in inclusion regardless of host architecture
654
else
655
OOO_MONO_ARCHS=
656
endif
1069 by Rene Engelhard
Correct control.mozilla.in inclusion regardless of host architecture (merge from Ubuntu)
657
658
ifeq "$(PACKAGE_NPSOPLUGIN)" "y"
1022.17.296 by Rene Engelhard
add patch from issue 110747 to fix the plugin on 64bit archs
659
OOO_NPSOPLUGIN_ARCHS = $(OOO_ARCHS)
1069 by Rene Engelhard
Correct control.mozilla.in inclusion regardless of host architecture (merge from Ubuntu)
660
else
661
OOO_NPSOPLUGIN_ARCHS=
662
endif
964 by Rene Engelhard
disable scsolver for armel
663
1240 by Matthias Klose
* Build the binfilter packages on armel.
664
ifeq "$(DIST)" "Debian"
1022.17.291 by Rene Engelhard
disable binfilter building on mips(el) like we do on arm(el) to save build time
665
# builds long and is for legacy filters. probably not needed on {arm,mips}{,el}
1032 by Rene Engelhard
+ * debian/rules:
666
ifneq (,$(findstring arm,$(ARCH)))
1036 by Rene Engelhard
typo, thanks calc
667
	BUILD_BINFILTERS=n
1032 by Rene Engelhard
+ * debian/rules:
668
endif
1022.17.291 by Rene Engelhard
disable binfilter building on mips(el) like we do on arm(el) to save build time
669
ifneq (,$(findstring mips,$(ARCH)))
670
	BUILD_BINFILTERS=n
671
endif
1022.17.303 by Rene Engelhard
fix OOO_BINFILTER_ARCHS
672
ifneq (,$(findstring m68k,$(ARCH)))
673
	BUILD_BINFILTERS=n
674
endif
675
OOO_BINFILTER_ARCHS:=$(filter-out arm,$(filter-out armel,$(OOO_ARCHS)))
676
OOO_BINFILTER_ARCHS:=$(filter-out mips,$(filter-out mipsel,$(OOO_BINFILTER_ARCHS)))
677
OOO_BINFILTER_ARCHS:=$(filter-out m68k,$(OOO_BINFILTER_ARCHS))
1289 by Chris Cheney
openoffice.org (1:3.2.0-7ubuntu1) lucid; urgency=low
678
else
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
679
	OOO_BINFILTER_ARCHS:=$(OOO_ARCHS)
1032 by Rene Engelhard
+ * debian/rules:
680
endif
681
313 by Rene Engelhard
merge Ubuntus control*in split patch, move GCJ_/GCC_VERSION/CC_PREFIX variables, use gcc/g++ 4.0 on i386
682
ifeq "$(ARCH)-linux-gnu" "sparc-linux-gnu"
683
	# use 32-bit compiler
684
	CC_PREFIX=sparc-linux-gnu-
1022.10.188 by Rene Engelhard
- fix GCC_VERSION handling to work again with OOo build calling
685
else
1022.10.206 by Rene Engelhard
more GCC_VERSION handling fixes
686
	CC_PREFIX=$(shell gcc -dumpmachine)-
313 by Rene Engelhard
merge Ubuntus control*in split patch, move GCJ_/GCC_VERSION/CC_PREFIX variables, use gcc/g++ 4.0 on i386
687
endif
1022.10.188 by Rene Engelhard
- fix GCC_VERSION handling to work again with OOo build calling
688
1022.1.338 by Rene Engelhard
fix -gcjs Architecture:; remove rest (not working anyway right now) of ETCH_BACKPORT stuff
689
ifeq (s390,$(findstring s390,$(OOO_ARCHS)))
1033 by Rene Engelhard
adapt to new default gcc on s390
690
	BUILD_DEPS += , g++ (>> 4.3.0) [s390], gcc (>> 4.3.0) [s390]
1016 by Rene Engelhard
update ooo-build; enable s390
691
endif
1022.10.455 by Rene Engelhard
build-depend on g++-4.4 (>= 4.4.2-5) on armel
692
ifeq "$(shell gcc --version | head -n 1 | awk '{print $$4}' | cut -d. -f1,2)" "4.4"
693
  ifeq (armel,$(findstring armel,$(OOO_ARCHS)))
694
	BUILD_DEPS += , g++-4.4 (>= 4.4.2-5) [armel]
695
  endif
696
endif
257 by Rene Engelhard
fix amd64 logic, call it -3, target to unstable
697
1022.17.292 by Rene Engelhard
the mozilla plugin is broken on 64 bit archs; (temporarily) disable it on those until fixed
698
# Note that this does *NOT* only affect the mozilla plugin but also
699
# stuff like the xmlsecurity (which uses nss). For the plugin only,
700
# change the OOO_NPSOPLUGIN_ARCHS
1278 by Chris Cheney
Debian merge:
701
OOO_MOZILLA_ARCHS=i386 mips mipsel powerpc s390
1022.17.309 by Rene Engelhard
add kFreeBSD port
702
ifeq "$(BUILD_KFREEBSD)" "y"
1022.17.362 by Rene Engelhard
fix variable to not add kfreebsd-i386 to OOO_MONO_ARCHS twice but to actually add it to OOO_MOZILLA_ARCHS
703
   OOO_MOZILLA_ARCHS += kfreebsd-i386
1022.17.309 by Rene Engelhard
add kFreeBSD port
704
endif
1022.17.246 by Rene Engelhard
xulrunner 1.9.1.8-6 is Built on alpha
705
ifeq "$(BUILD_ALPHA)" "y"
706
	OOO_MOZILLA_ARCHS += alpha
707
endif
910 by Rene Engelhard
mipsel
708
ifeq "$(BUILD_AMD64)" "y"
709
	OOO_MOZILLA_ARCHS += amd64
1022.17.309 by Rene Engelhard
add kFreeBSD port
710
  ifeq "$(BUILD_KFREEBSD)" "y"
711
   	OOO_MOZILLA_ARCHS += kfreebsd-amd64
712
  endif
910 by Rene Engelhard
mipsel
713
endif
1022.17.242 by Rene Engelhard
sort arch lists, patch from Chris Cheney
714
ifeq "$(BUILD_ARMEL)" "y"
715
       OOO_MOZILLA_ARCHS += armel
716
endif
717
ifeq "$(BUILD_HPPA)" "y"
718
	OOO_MOZILLA_ARCHS += hppa
719
endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
720
ifeq "$(BUILD_IA64)" "y"
721
	OOO_MOZILLA_ARCHS += ia64
722
endif
910 by Rene Engelhard
mipsel
723
ifeq "$(BUILD_PPC64)" "y"
724
	OOO_MOZILLA_ARCHS += ppc64
725
endif
1022.10.343 by Rene Engelhard
update ooo-build; add s390x
726
ifeq "$(BUILD_S390X)" "y"
727
	OOO_MOZILLA_ARCHS += s390x
728
endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
729
ifeq "$(BUILD_SPARC)" "y"
730
	OOO_MOZILLA_ARCHS += sparc
1022.17.242 by Rene Engelhard
sort arch lists, patch from Chris Cheney
731
endif
910 by Rene Engelhard
mipsel
732
802 by Chris Cheney
merging unobtrusive/unconflicting parts of Ubuntu packaging back into Debian
733
ifeq "$(USE_BZIP_COMPRESS)" "y"
734
	DPKG_DEPENDS = dpkg (>= 1.10.24)
735
	BUILDDEB_OPTIONS = -- -Zbzip2
736
endif
737
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
738
ifeq "$(USE_LZMA_COMPRESS)" "y"
739
	DPKG_DEPENDS = dpkg (>= 1.14.12ubuntu3)
1293 by Chris Cheney
openoffice.org (1:3.2.0-7ubuntu4) lucid; urgency=low
740
  ifneq "$(ARCH)" "armel"
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
741
	BUILDDEB_OPTIONS = -- -Zlzma
1293 by Chris Cheney
openoffice.org (1:3.2.0-7ubuntu4) lucid; urgency=low
742
  endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
743
endif
744
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
745
ifeq "$(DEBSRC_VERSION)" "3.0"
1022.17.215 by Rene Engelhard
- fix build with 1.0 source format. Add missing uuencode for the extra
746
  ifeq "$(LENNY_BACKPORT)" "y"
747
	BUILD_DEPS += , dpkg-dev (>= 1.14.27)
748
  else
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
749
	BUILD_DEPS += , dpkg-dev (>= 1.15.1)
1022.17.215 by Rene Engelhard
- fix build with 1.0 source format. Add missing uuencode for the extra
750
  endif
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
751
else
752
  ifeq "$(NEW_DPKG_SHLIBDEPS)" "y"
901.1.62 by Rene Engelhard
with dpkg 1.4.11 we can live without -ignore-missing-info; work around aot-compiling OOM
753
	# new dpkg-dev whcih works - in contrast to 1.4.9 and .10 -
754
	# without --ignore-missing-info
1089 by Rene Engelhard
* debian/control.in, debian/rules:
755
	BUILD_DEPS += , dpkg-dev (>= 1.14.11)
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
756
  endif
901.1.57 by Rene Engelhard
fix build with new dpkg-dev
757
endif
758
1022.17.215 by Rene Engelhard
- fix build with 1.0 source format. Add missing uuencode for the extra
759
ifeq "$(DEBSRC_VERSION)" "1.0"
760
	BUILD_DEPS += , quilt
761
endif
762
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
763
ifneq "$(OOO_OGLTRANS_ARCHS)" ""
939 by Rene Engelhard
add %OOO_OGLTRANS_ARCHS%
764
	BUILD_DEPS += , libgl1-mesa-dev [$(OOO_OGLTRANS_ARCHS)], libglu1-mesa-dev [$(OOO_OGLTRANS_ARCHS)]
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
765
endif
766
ifeq "$(ENABLE_OPENGL)" "y"
946 by Rene Engelhard
merge; one more OGLTrans installation fix; depend on openoffice.org-writer2latex; move fakeroot hack up; ignore unit tests failures; add arm; update ooo-build and update to m239
767
	CONFIGURE_FLAGS += --enable-opengl
768
endif
769
770
ifneq "$(PACKAGE_SDK)" "y"
771
	CONFIGURE_FLAGS += --disable-odk
772
endif
773
1022.7.2 by Rene Engelhard
m4 updates
774
ifeq "$(ENABLE_MINIMIZER)" "y"
775
	CONFIGURE_FLAGS += --enable-minimizer
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
776
endif
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
777
ifeq "$(ENABLE_PRESENTER_CONSOLE)" "y"
1022.7.2 by Rene Engelhard
m4 updates
778
	CONFIGURE_FLAGS += --enable-presenter-console
901.1.20 by Rene Engelhard
update ooo-build - ooqstart and qstart.desktop apparently are obsolete; fix ln; ENABLE_OPENGL conditional for cws transogl1; revert lib32icu36 change (not working) and build-conflict against the broken libicu36-devs
779
endif
1022.7.2 by Rene Engelhard
m4 updates
780
ifeq "$(ENABLE_PDFIMPORT)" "y"
781
	CONFIGURE_FLAGS += --enable-pdfimport
1022.1.206 by Rene Engelhard
add libpoppler-dev builddep; temporarily disable hu; merge more -report-builder fixes, merge -java-common fixes
782
	BUILD_DEPS += , libpoppler-dev (>= 0.8.0)
1022.1.26 by Rene Engelhard
adapt extension configure switches for changed defaults
783
endif
901.1.20 by Rene Engelhard
update ooo-build - ooqstart and qstart.desktop apparently are obsolete; fix ln; ENABLE_OPENGL conditional for cws transogl1; revert lib32icu36 change (not working) and build-conflict against the broken libicu36-devs
784
1022.10.33 by Rene Engelhard
add conditional for enabling graphite
785
ifeq "$(ENABLE_GRAPHITE)" "y"
786
  ifeq "$(USE_SYSTEM_GRAPHITE)" "y"
1022.17.122 by Rene Engelhard
use internal stlport and build with system-graphite now (the hack only works with STLport 4.5
787
	BUILD_DEPS += , libgraphite-dev [$(OOO_ARCHS)]
1022.10.33 by Rene Engelhard
add conditional for enabling graphite
788
	CONFIGURE_FLAGS += --with-system-graphite
1022.17.122 by Rene Engelhard
use internal stlport and build with system-graphite now (the hack only works with STLport 4.5
789
    ifeq "$(USE_STLPORT)" "y"
790
	ADDITIONAL_SECTIONS += SystemGraphiteWithSTLport
791
    endif
1022.10.33 by Rene Engelhard
add conditional for enabling graphite
792
  endif
1022.17.2 by Rene Engelhard
prepare for m56 -- graphite support included there
793
else
794
	CONFIGURE_FLAGS += --disable-graphite
1022.10.33 by Rene Engelhard
add conditional for enabling graphite
795
endif
796
1022.17.329 by Rene Engelhard
use textcat data from libtextcat-data-utf8 if the same with "ours"
797
ifeq "$(USE_SYSTEM_TEXTCAT_DATA)" "y"
1022.17.336 by Rene Engelhard
move netpbm, fdupes, xml-core and libtextcat-data-utf8 to Build-Depends-Indep, fix overly long changelog line
798
	BUILD_DEPS_INDEP += , libtextcat-data-utf8
1022.17.329 by Rene Engelhard
use textcat data from libtextcat-data-utf8 if the same with "ours"
799
	TEXTCAT_DATA_RECOMMENDS := libtextcat-data-utf8
800
endif
801
890 by Rene Engelhard
remove bogus curl conditional
802
ifeq "$(USE_LIBCURL4)" "y"
1022.1.449 by Rene Engelhard
- build with -openssl flavour of curl on lenny-backports
803
	BUILD_DEPS += , libcurl4-$(CURL_SECTYPE)-dev
890 by Rene Engelhard
remove bogus curl conditional
804
else
1022.1.449 by Rene Engelhard
- build with -openssl flavour of curl on lenny-backports
805
	BUILD_DEPS += , libcurl3-$(CURL_SECTYPE)-dev
925 by Rene Engelhard
reenable mips(el) with m238 where cws mipseport02 hopefully will be in, gutls->openssl, no PCVSLib
806
endif
807
808
ifeq "$(SYSTEM_OPENSSL)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
809
	BUILD_DEPS += , libssl-dev
925 by Rene Engelhard
reenable mips(el) with m238 where cws mipseport02 hopefully will be in, gutls->openssl, no PCVSLib
810
	CONFIGURE_FLAGS += --with-system-openssl
930 by Rene Engelhard
typos, merge error
811
	DBG_DBG_SUGGESTS += , libssl$(shell readlink /usr/lib/libssl.so | cut -d"." -f3,4,5)-dbg
720 by Rene Engelhard
merge 2.2.0-7
812
endif
813
1022.1.380 by Rene Engelhard
build against libdb-dev...
814
	BUILD_DEPS += , libdb-dev
1022.1.385 by Rene Engelhard
oops, missing comma
815
	DBG_DBG_SUGGESTS += , $(shell apt-cache show libdb-dev | grep Depends | awk '{ print $$2 }' | sed -e s/dev/dbg/)
820 by Rene Engelhard
m224, update ooo-build, fix testtoolrc (non)installation, we don't need libdbX.Y-java
816
185 by Rene Engelhard
merge possibility to build -qa-* from Ubuntu, add possibility to build -dbg, disable both per default. fix control.{help,lang}.in
817
ifneq "$(BUILD_DBG_PACKAGE)" "y"
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
818
	# build with small symbols anyway
185 by Rene Engelhard
merge possibility to build -qa-* from Ubuntu, add possibility to build -dbg, disable both per default. fix control.{help,lang}.in
819
	SMALL_SYMBOLS = y
820
else
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
821
  # -g gives a far too big deb (>400M, ca. 1GB I-S)
822
  ifeq (debug,$(findstring debug,$(DEB_BUILD_OPTIONS)))
823
	# ooo-build defaults to --enable-symbols (without SMALL)
824
	SMALL_SYMBOLS = n
825
  else
550 by Rene Engelhard
merge openofficeorg--unstable--2.0.4--patch-87; reenable -dbg; use -g1; wrap/shorten descriptions; fix -l10n-* generation
826
	SMALL_SYMBOLS = y
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
827
  endif
1022.1.433 by Rene Engelhard
fix lintians dbg-package-missing-depends
828
	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-$(shell g++ --version | head -n 1 | cut -d' ' -f3 | cut -d'.' -f1,2)-dbg, libx11-6-dbg, libxext6-dbg, libxaw7-dbg, libxml2-dbg, libgtk2.0-0-dbg, libxau6-dbg, libice6-dbg, libsm6-dbg, libxinerama1-dbg, libfontconfig1-dbg
819 by Chris Cheney
indentation cleanups
829
  ifeq "$(USE_LIBCURL4)" "y"
720 by Rene Engelhard
merge 2.2.0-7
830
	DBG_DBG_SUGGESTS+= , libcurl3-dbg
819 by Chris Cheney
indentation cleanups
831
  else
720 by Rene Engelhard
merge 2.2.0-7
832
	DBG_DBG_SUGGESTS+= , libcurl4-dbg
819 by Chris Cheney
indentation cleanups
833
  endif
185 by Rene Engelhard
merge possibility to build -qa-* from Ubuntu, add possibility to build -dbg, disable both per default. fix control.{help,lang}.in
834
endif
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
835
# Small symbols?
836
ifeq "$(SMALL_SYMBOLS)" "y"
837
	CONFIGURE_FLAGS += --enable-symbols=SMALL
838
endif
185 by Rene Engelhard
merge possibility to build -qa-* from Ubuntu, add possibility to build -dbg, disable both per default. fix control.{help,lang}.in
839
1022.1.377 by Rene Engelhard
support noopt
840
ifeq (noopt,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
841
	ARCH_FLAGS += -O0
842
endif
843
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
844
# Build python depends from current python version
845
PYMAJOR:=$(shell python -c "import sys; print sys.version_info[0]")
846
PYMINOR:=$(shell python -c "import sys; print sys.version_info[1]")
847
PYMINORPLUS1:=$(shell python -c "import sys; print sys.version_info[1]+1")
848
PYTHON_SITE:=debian/python-uno/$(shell python -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
849
343 by Chris Halls
Sarge backport updates
850
ifeq "$(BUILD_PYUNO)" "y"
819 by Chris Cheney
indentation cleanups
851
  ifeq "$(USE_PYCENTRAL)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
852
	BUILD_DEPS += , python-central (>= 0.5)
819 by Chris Cheney
indentation cleanups
853
  endif
1022.10.136 by Rene Engelhard
update ooo-build to 3.0.99.3; add conditional allowing the use of python-support if we ever wanted that
854
  ifeq "$(USE_PYSUPPORT)" "y"
1313.1.7 by Martin Pitt
debian/rules: Configure with --with-system-python, otherwise it now picks
855
    ifeq "$(PYMAJOR).$(PYMINOR)" "2.7"
1022.10.182 by Rene Engelhard
typo
856
	BUILD_DEPS += , python-support (>= 0.90.4)
1022.10.136 by Rene Engelhard
update ooo-build to 3.0.99.3; add conditional allowing the use of python-support if we ever wanted that
857
    else
858
	BUILD_DEPS += , python-support
859
    endif
860
  endif
819 by Chris Cheney
indentation cleanups
861
	DBG_DBG_SUGGESTS+= , python-dbg
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
862
	BUILD_DEPS += , $(PYTHON)-dev
863
	CONFIGURE_FLAGS += PYTHON=$(PYTHON)
1034 by Chris Cheney
debian/rules: clean up whitespace
864
else
1097.1.9 by Rene Engelhard
remove overseen OOO_ARCHS and fix control and maintscripts dependencies
865
	BUILD_DEPS += , python
343 by Chris Halls
Sarge backport updates
866
endif
867
1022.10.516 by Rene Engelhard
migrate bug script installation to dh_bugfiles
868
	BUILD_DEPS += , debhelper (>= 7.2.3~)
998 by Rene Engelhard
fix debhelper build-dep
869
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
870
ifeq "$(ENABLE_JAVA)" "y"
819 by Chris Cheney
indentation cleanups
871
  ifeq "$(BUILD_JARS_NATIVE)" "y"
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
872
    ifneq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
826 by Chris Cheney
* debian/control.2.in:
873
	STAMP_NATIVE_JARS = $(STAMP_DIR)/native-jars
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
874
    endif
901.1.57 by Rene Engelhard
fix build with new dpkg-dev
875
    ifeq "$(NEW_DPKG_SHLIBDEPS)" "n"
315 by Rene Engelhard
make -gcj bin-NMU safe, remove unneeded debhelper builddep; update control (manually)
876
	BUILD_DEPS += , dpkg-dev (>= 1.13.19)
901.1.57 by Rene Engelhard
fix build with new dpkg-dev
877
    endif
523 by Rene Engelhard
Ubuntu merge
878
	JAVA_GCJ_DEPENDS = libgcj-common (>= 1:4.1.1-14)
819 by Chris Cheney
indentation cleanups
879
  endif
304 by Rene Engelhard
merge openofficeorg--unstable--2.0.2--patch-142 - -144; fix grammar error; fix some native jar stuff and enable it for i386 and powerpc; add soffice symlink; add libjava_uno -> libjava_uno.so link; control.mozilla.in fixes
880
endif
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
881
322 by Rene Engelhard
don't build qadevOOo when we don't package the QA tools
882
	CONFIGURE_FLAGS += --disable-qadevooo
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
883
1022.1.272 by Rene Engelhard
add option to run API tests
884
ifeq "$(RUN_API_TESTS)" "y"
885
	BUILD_DEPS += , tcsh
886
endif
605 by Rene Engelhard
"build" in smoketestoo_native
887
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
888
ifneq "$(BUILD_ONLY_EN_US)" "y"
889
  ifeq (lang=,$(findstring lang=,$(DEB_BUILD_OPTIONS)))
1022.10.354 by Rene Engelhard
fix lang= again *sigh*; use new external dict dirs
890
	ISOS=$(shell echo "$(DEB_BUILD_OPTIONS) " | sed -n 's/^.*lang=\([^\s].*\)\s.*/\1/p' | awk '{ print $$1 }' | sed -e 's/,/ /g')
891
	HELPISOS=$(shell echo "$(DEB_BUILD_OPTIONS) " | sed -n 's/^.*lang=\([^\s].*\)\s.*/\1/p' | awk '{ print $$1 }' | sed -e 's/,/ /g')
892
	LANGPACKISOS=$(shell echo "$(DEB_BUILD_OPTIONS) " | sed -n 's/^.*lang=\([^\s].*\)\s.*/\1/p' | awk '{ print $$1 }' | sed -e 's/,/ /g')
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
893
  else
826 by Chris Cheney
* debian/control.2.in:
894
	# Note that the first one here *has to be* en-US. the first one gets
895
	# gid_Module_Root as filelist later and the rest gid_Module_Root.$iso
896
	# but we can't/shouldn't do dynamic switching, so let en-US be the first
897
	# one to that gid_Module_Root always is english and the other langpacks
898
	# have gid_Module_Root.$iso
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
899
	#ISOS=$(shell $(OOO_BUILD_TREE)/bin/openoffice-xlate-lang -i all')
1022.17.107 by Rene Engelhard
enable asturian
900
	ISOS:=en-US af ar as ast be-BY bg bn br bs ca cs cy da de dz el \
1022.17.88 by Rene Engelhard
eo seems to work with the new GSI, re-enable
901
	  en-GB en-ZA eo es et eu fa fi fr ga gl gu he hi-IN hr hu id it ja \
1022.17.79 by Rene Engelhard
disable bo, ast, is
902
	  ka km ko ku lt lv mk mn ml mr nb ne nl nn nr ns oc om or \
1022.17.69 by Rene Engelhard
enable new languages
903
	  pa-IN pl pt pt-BR ro ru rw si sk sl sr ss st sv \
1022.17.74 by Rene Engelhard
xx-IN was (except hi-IN and pa-IN moved to xx upstream...
904
	  ta te tg th tn tr ts ug uk uz ve vi xh zh-CN zh-TW zu
1022.17.226 by Rene Engelhard
fix some minor stuff found by calc, thanks
905
	#HELPISOS:=$(shell $(OOO_BUILD_TREE)/bin/openoffice-xlate-lang -i all') 
1022.10.378 by Rene Engelhard
enable el help
906
	HELPISOS:=en-US ca cs da de dz el en-GB es et eu fi fr gl hi-IN hu it \
1022.17.69 by Rene Engelhard
enable new languages
907
	  ja km ko nl om pl pt pt-BR ru sl sv zh-CN zh-TW
1022.17.226 by Rene Engelhard
fix some minor stuff found by calc, thanks
908
	#LANGPACKISOS:=$(shell $(OOO_BUILD_TREE)/bin/openoffice-xlate-lang -i all')
1022.17.107 by Rene Engelhard
enable asturian
909
	LANGPACKISOS:=en-US af ar as ast be-BY bg bn br bs ca cs cy da de dz el \
1022.17.88 by Rene Engelhard
eo seems to work with the new GSI, re-enable
910
	  en-GB en-ZA eo es et eu fa fi fr ga gl gu he hi-IN hr hu id it ja \
1022.17.79 by Rene Engelhard
disable bo, ast, is
911
	  ka km ko ku lt lv mk mn ml mr nb ne nl nn nr ns oc om or \
1022.17.69 by Rene Engelhard
enable new languages
912
	  pa-IN pl pt pt-BR ro ru rw si sk sl sr ss st sv \
1022.17.74 by Rene Engelhard
xx-IN was (except hi-IN and pa-IN moved to xx upstream...
913
	  ta te tg th tn tr ts ug uk uz ve vi xh zh-CN zh-TW zu
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
914
915
    ifeq "$(DIST)" "Ubuntu"
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
916
	# additional locales built in Ubuntu, having belocs-locales
1266 by root
openoffice.org (1:3.2.0~rc2-1ubuntu1) lucid; urgency=low
917
	ISOS := en-US $(sort $(filter-out en-US, $(ISOS)) kn)
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
918
	HELPISOS := en-US $(sort $(filter-out en-US, $(HELPISOS)) br)
1266 by root
openoffice.org (1:3.2.0~rc2-1ubuntu1) lucid; urgency=low
919
	LANGPACKISOS := en-US $(sort $(filter-out en-US, $(LANGPACKISOS)) kn)
920
	REMOVE_HELP := bs cy lt lv sh-YU sr-CS
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
921
	FILTER_HELP := ga hr pl rw sk th tr vi
922
    endif
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
923
  endif
924
else
826 by Chris Cheney
* debian/control.2.in:
925
	ISOS=en-US
926
	HELPISOS=en-US
927
	LANGPACKISOS=en-US
928
endif
929
BUILD_ISOS = $(ISOS)
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
930
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
931
ifeq "$(DIST)" "Ubuntu"
932
	LANGUAGES := $(ISOS)
933
  ifeq "$(PKGSOURCE)" "openoffice.org$(VER)"
934
	BUILD_ONLY_EN_US=y
935
	ISOS := en-US
936
	LANGPACKISOS := $(ISOS)
937
	HELPISOS := 
938
	OOO_L10N_DIR = $(CURDIR)/debian/l10n
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
939
    ifeq (,$(findstring nogsi, $(DEB_BUILD_OPTIONS)))
940
	  GSI_EXPORT_STAMP = $(STAMP_DIR)/gsi-export
941
    endif
942
	# don't merge and extract for normal ppa builds, use something else if needed for ppa uploads
1252 by Matthias Klose
- don't merge and extract translations for normal ppa builds, use something
943
    ifneq (,$(findstring ppa, $(SOURCE_VERSION)))
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
944
	  GSI_EXPORT_STAMP =
1252 by Matthias Klose
- don't merge and extract translations for normal ppa builds, use something
945
    endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
946
  endif
947
  ifeq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
948
	DEBHELPER_OPTIONS += $(foreach p, $(shell echo $(PACKAGES) | egrep -v l10n) openoffice.org$(VER)-l10n-en-us,-N$(p))
949
  endif
950
endif
951
1022.17.7 by Rene Engelhard
fix --with-lang= passing to configure. Don't do it when we build only en-US
952
ifneq "$(BUILD_ONLY_EN_US)" "y"
953
  ifneq "$(BUILD_ISOS)" "en-US"
954
	CONFIGURE_FLAGS += --with-lang="$(BUILD_ISOS)"
955
  endif
956
endif
957
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
958
ifeq "$(USE_COMMON_DOCDIR)" "y"
959
	HELP_PACKAGES = $(filter-out %-common, $(filter openoffice.org$(VER)-help-%, $(PACKAGES)))
960
	LANG_PACKAGES = $(filter-out %-common, $(filter openoffice.org$(VER)-l10n-%, $(PACKAGES)))
961
endif
962
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
963
ifeq "$(VER)" ""
964
	CONFIGURE_FLAGS += --with-binsuffix=no
965
else
966
	CONFIGURE_FLAGS += --with-binsuffix=$(VER)
967
endif
968
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
969
ifeq "$(ENABLE_JAVA)" "y"
1022.1.36 by Rene Engelhard
- support default-jdk-builddep, begin support of openjdk-6-jdk for
970
  ifeq "$(JDK)" "default"
971
	JAVA_HOME=/usr/lib/jvm/default-java
972
	BUILD_DEPS += , default-jdk-builddep [$(OOO_JAVA_ARCHS)]
973
  endif
974
  ifeq "$(JDK)" "java-gcj-compat"
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
975
	JAVA_HOME=/usr/lib/jvm/java-gcj
1022.1.123 by Rene Engelhard
add gcj-4.3 builddep for armel only only when needed
976
    ifneq (,$(findstring armel,$(OOO_JAVA_ARCHS)))
1022.1.120 by Rene Engelhard
reenable Java for armel
977
	BUILD_DEPS += , gcj-4.3 (>= 4.3.1-2) [armel]
1022.1.123 by Rene Engelhard
add gcj-4.3 builddep for armel only only when needed
978
    endif
1022.1.36 by Rene Engelhard
- support default-jdk-builddep, begin support of openjdk-6-jdk for
979
  endif
1022.10.228 by Rene Engelhard
+ * debian/rules:
980
  ifeq "$(JDK)" "gcj-jdk"
981
	JAVA_HOME=/usr/lib/jvm/java-gcj
982
	BUILD_DEPS += , gcj-jdk [$(OOO_JAVA_ARCHS)]
983
  endif
1022.1.36 by Rene Engelhard
- support default-jdk-builddep, begin support of openjdk-6-jdk for
984
  ifeq "$(JDK)" "openjdk"
1022.10.447 by Rene Engelhard
should be OOO_JAVA_ARCHS...
985
	BUILD_DEPS += , openjdk-6-jdk [$(filter-out $(OOO_GCJ_JDK_ARCHS),$(OOO_JAVA_ARCHS))]
1022.1.36 by Rene Engelhard
- support default-jdk-builddep, begin support of openjdk-6-jdk for
986
	JAVA_HOME=/usr/lib/jvm/java-6-openjdk
1022.1.228 by Rene Engelhard
--with-java-target-version=1.5 for builds with openjdk/cacao-oj6
987
	CONFIGURE_FLAGS += --with-java-target-version=1.5
1022.1.36 by Rene Engelhard
- support default-jdk-builddep, begin support of openjdk-6-jdk for
988
  endif
1022.24.84 by Rene Engelhard
OpenJDK crashes on runtime on armel, run the tests using gcj, still breaks though so disable smoketest on armel for now
989
        TEST_JAVA_HOME=$(JAVA_HOME)
1022.1.36 by Rene Engelhard
- support default-jdk-builddep, begin support of openjdk-6-jdk for
990
  ifeq "$(BUILD_JARS_NATIVE)" "y"
868 by Rene Engelhard
actually install the binfilters...; don't specify --with-java=gij anymore to use javac -> ecj from java-gcj-compat on sid
991
	CONFIGURE_FLAGS += --enable-gcjaot
1224 by Chris Cheney
Debian merge:
992
    ifeq "$(LENNY_BACKPORT)" "y"
1022.1.338 by Rene Engelhard
fix -gcjs Architecture:; remove rest (not working anyway right now) of ETCH_BACKPORT stuff
993
	BUILD_DEPS += , gij [$(OOO_GCJ_ARCHS)], java-gcj-compat-dev (>= 1.0.76-7) [$(OOO_GCJ_ARCHS)], libgcj-bc [$(OOO_GCJ_ARCHS)]
1022.10.228 by Rene Engelhard
+ * debian/rules:
994
    else
1022.10.427 by Rene Engelhard
lintian fixes for stuff new in -7...
995
 	BUILD_DEPS += , gcj-jdk [$(OOO_GCJ_ARCHS)], libgcj-common (>= 1:4.4.1) [$(OOO_GCJ_ARCHS)]
1022.10.225 by Rene Engelhard
add explicit gcj builddep
996
    endif
1022.10.483 by Rene Engelhard
fix conditionals to also add gcj-jdk builddep in non--gcj-build cases
997
  else
998
    ifneq "$(OOO_GCJ_JDK_ARCHS)" ""
999
	BUILD_DEPS += , gcj-jdk [$(OOO_GCJ_JDK_ARCHS)]
1000
    endif
819 by Chris Cheney
indentation cleanups
1001
  endif
1022.1.19 by Rene Engelhard
bump ant builddep ant (>= 1.7.0) to when we build the mediawiki extension
1002
  ifeq "$(ENABLE_MEDIAWIKI)" "y"
1022.17.220 by Rene Engelhard
remove ant1.7 workaround, add build-conflicts against ant 1.8.0-{1,2,3}
1003
	BUILD_DEPS += , ant (>= 1.7.0) [$(OOO_JAVA_ARCHS)], ant-optional (>= 1.7.0) [$(OOO_JAVA_ARCHS)]
1022.1.19 by Rene Engelhard
bump ant builddep ant (>= 1.7.0) to when we build the mediawiki extension
1004
  else
1022.17.220 by Rene Engelhard
remove ant1.7 workaround, add build-conflicts against ant 1.8.0-{1,2,3}
1005
	BUILD_DEPS += , ant (>= 1.6.5) [$(OOO_JAVA_ARCHS)]
1022.1.19 by Rene Engelhard
bump ant builddep ant (>= 1.7.0) to when we build the mediawiki extension
1006
  endif
979 by Rene Engelhard
+ - update for gcj 4.3; detect libgcj package name/libjawt dir automatically
1007
	GCJ_VERSION = $(shell basename `readlink $(JAVA_HOME)/bin/gcj` | sed -e s/gcj-//)
1008
	GCJ_JAWT_DEPENDS= $(shell dpkg -S /usr/lib/`readlink /usr/lib/libgcj_bc.so.1` | cut -d: -f1 | sed -e s/$$/-awt/)
1009
	DBG_DBG_SUGGESTS+= , $(shell echo $(GCJ_AWT_DEPENDS) | sed -e s/awt/dbg/)
1022.10.235 by Rene Engelhard
also add gcj-jre to JAVA_RUNTIME_DEPENDS
1010
	JAVA_RUNTIME_DEPENDS = default-jre | gcj-jre | java-gcj-compat
985 by Rene Engelhard
* ooo-build:
1011
#  ifneq (,$(GCJ_JAWT_DEPENDS))
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1012
#	JAVA_RUNTIME_DEPENDS += | $(GCJ_JAWT_DEPENDS)
985 by Rene Engelhard
* ooo-build:
1013
#  endif
1265 by Chris Cheney
Debian merge:
1014
  ifneq (,$(filter $(ARCH), alpha amd64 i386 m68k mips mipsel powerpc s390 sparc))
1048 by Rene Engelhard
Use openjdk-6-jre instead of icedtea-java7-jre (from Ubuntu)
1015
	JAVA_RUNTIME_DEPENDS += | openjdk-6-jre
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
1016
  endif
1017
  ifneq (,$(filter $(ARCH), amd64 i386))
1034 by Chris Cheney
debian/rules: clean up whitespace
1018
	JAVA_RUNTIME_DEPENDS += | sun-java5-jre | sun-java6-jre
979 by Rene Engelhard
+ - update for gcj 4.3; detect libgcj package name/libjawt dir automatically
1019
  endif
1022.10.230 by Rene Engelhard
add | java5-runtime | jre to JAVA_RUNTIME_DEPENDS (closes: #509690)
1020
	JAVA_RUNTIME_DEPENDS += | java5-runtime
1021
	# Suns Java "packages"
1250 by Matthias Klose
* Work around libgcc3_uno.so runtime failures on armel.
1022
  	JAVA_RUNTIME_DEPENDS += | jre
1022.10.326 by Rail Aliev
Minor fixes
1023
	GCJ_JAWT_DIR=$(shell dirname `dpkg -L $(GCJ_JAWT_DEPENDS) | grep libjawt.so | head -n 1`)
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
1024
export JAVA_HOME
727 by Rene Engelhard
remove sneaked-in --with-java-target-version
1025
	CONFIGURE_FLAGS += --with-jdk-home=$(JAVA_HOME)
1022.17.182 by Rene Engelhard
update ooo-build; make make -base depend on -java-common (>= 1:3.2.0~)
1026
	JAVA_COMMON_DEPENDS= , openoffice.org$(VER)-java-common
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
1027
	JAVA_COMMON_DEPENDS_VERSION:= (>= $(BASE_VERSION)~)
1022.1.411 by Rene Engelhard
fix saxon conditional; use internal saxon
1028
  ifeq "$(USE_SYSTEM_SAXON)" "y"
1022.1.191 by Rene Engelhard
OOO300_m2
1029
	CONFIGURE_FLAGS += --with-system-saxon --with-saxon-jar=/usr/share/java/saxonb.jar
1030
	BUILD_DEPS += , libsaxonb-java [$(OOO_JAVA_ARCHS)]
1031
	JAVA_COMMON_JAVA_DEPENDS+= , libsaxonb-java
152 by Rene Engelhard
initial 2.0.2 stuff
1032
  endif
1022.17.97 by Rene Engelhard
only build-depend on (gcc-)mingw32 when we actually enable the SDK
1033
  ifeq "$(PACKAGE_SDK)" "y"
1034
    ifeq "$(DIST)" "Debian"
1035
      ifeq "$(shell gcc --version | head -n 1 | awk '{print $$4}' | cut -d. -f1,2)" "4.4"
1022.10.520 by Rene Engelhard
add explicit build-dep on mingw32-runtime when using gcc-mingw32
1036
	BUILD_DEPS += , gcc-mingw32 [$(OOO_JAVA_ARCHS)], mingw32-runtime [$(OOO_JAVA_ARCHS)]
1022.10.305 by Rene Engelhard
when building with gcc 4.4 build with gcc-mingw32
1037
      else
1022.17.97 by Rene Engelhard
only build-depend on (gcc-)mingw32 when we actually enable the SDK
1038
        ifeq "$(GCC_VERSION)" "4.4"
1022.10.520 by Rene Engelhard
add explicit build-dep on mingw32-runtime when using gcc-mingw32
1039
          BUILD_DEPS += , gcc-mingw32 [$(OOO_JAVA_ARCHS)], mingw32-runtime [$(OOO_JAVA_ARCHS)]
1022.17.97 by Rene Engelhard
only build-depend on (gcc-)mingw32 when we actually enable the SDK
1040
        else
1041
	  BUILD_DEPS += , mingw32 [$(OOO_JAVA_ARCHS)]
1042
        endif
1022.10.305 by Rene Engelhard
when building with gcc 4.4 build with gcc-mingw32
1043
      endif
1022.17.97 by Rene Engelhard
only build-depend on (gcc-)mingw32 when we actually enable the SDK
1044
	  CONFIGURE_FLAGS += --with-mingwin=i586-mingw32msvc-g++
1022.10.305 by Rene Engelhard
when building with gcc 4.4 build with gcc-mingw32
1045
    endif
444 by Rene Engelhard
use dh_installman; don't give -l10n-en-us to fdupes since it doesn't exist anymore; fix incremental install of -dtd-officedocument1.0; move mingw32 build-dep into a conditional and add --with-mingwin=i586-mingw32msvc-g++ since it will be removed from ooo-build; mention -6 merge since this will be uploaded with/after -6
1046
  endif
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
1047
  ifeq "$(ENABLE_MEDIAWIKI)" "y"
1022.7.2 by Rene Engelhard
m4 updates
1048
	CONFIGURE_FLAGS += --enable-wiki-publisher
1022.1.43 by Rene Engelhard
update mediawiki conditionals, bump its depends; fix Build-Depends:
1049
    ifeq "$(USE_SYSTEM_APACHE_COMMONS)" "y"
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
1050
	MEDIAWIKI_BUILD_DEPS += , libcommons-codec-java [$(OOO_JAVA_ARCHS)], libcommons-httpclient-java [$(OOO_JAVA_ARCHS)], libcommons-lang-java [$(OOO_JAVA_ARCHS)], libcommons-logging-java [$(OOO_JAVA_ARCHS)]
1022.24.16 by Rene Engelhard
fix build with new dpkg 1.15.27
1051
	MEDIAWIKI_JAR_DEPENDS := , libcommons-codec-java, libcommons-httpclient-java, libcommons-lang-java, libcommons-logging-java
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
1052
	BUILD_DEPS += $(MEDIAWIKI_BUILD_DEPS)
1022.1.43 by Rene Engelhard
update mediawiki conditionals, bump its depends; fix Build-Depends:
1053
	CONFIGURE_FLAGS += --with-system-apache-commons --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
1279 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu1) lucid; urgency=low
1054
      ifeq "$(LENNY_BACKPORT)" "y"
1022.17.229 by Rene Engelhard
readd old servlet detection stuff (we need it for lenny-backports)
1055
	CONFIGURE_FLAGS += --with-system-servlet-api --with-servlet-api-jar=$(shell dpkg -L `apt-cache show libcommons-logging-java | grep Depends | cut -d"," -f2 | sed -e s/^\ //` | grep \.jar$$)
1279 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu1) lucid; urgency=low
1056
      else
1057
	CONFIGURE_FLAGS += --with-system-servlet-api --with-servlet-api-jar=$(shell dpkg -L `apt-cache show libcommons-logging-java | grep Suggests | cut -d"," -f1 | sed -e s/^\ // | awk '{ print $$2 }'` | grep servlet-api.*\.jar$ | head -n 1)
1022.17.228 by Rene Engelhard
fix libservlet2.x-java package/jar name detection
1058
 	BUILD_DEPS += , $(shell apt-cache show libcommons-logging-java | grep Suggests | cut -d"," -f1 | sed -e s/^\ // | awk '{ print $$2 }')
1279 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu1) lucid; urgency=low
1059
      endif
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
1060
    endif
1061
  endif
901.1.76 by Rene Engelhard
update ooo-build; add ENABLE_REPORTDESIGN conditional, disable it for etch; remove libsvg conditional; rm -f debian/scripts/aotcompile.py*; -l-base//program
1062
  ifeq "$(ENABLE_REPORTDESIGN)" "y"
901.2.5 by Rene Engelhard
use system jfreereport libs
1063
	# report-builder
965 by Rene Engelhard
OOH680_m2
1064
    ifeq "$(USE_SYSTEM_JFREEREPORT)" "y"
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
1065
	REPORT_BUILDER_BUILD_DEPS += , libbase-java-openoffice.org [$(OOO_REPORTDESIGN_ARCHS)], libsac-java [$(OOO_REPORTDESIGN_ARCHS)], libxml-java-openoffice.org [$(OOO_REPORTDESIGN_ARCHS)], libflute-java-openoffice.org [$(OOO_REPORTDESIGN_ARCHS)], libpentaho-reporting-flow-engine-java-openoffice.org [$(OOO_REPORTDESIGN_ARCHS)], liblayout-java-openoffice.org [$(OOO_REPORTDESIGN_ARCHS)], libloader-java-openoffice.org [$(OOO_REPORTDESIGN_ARCHS)], libformula-java-openoffice.org [$(OOO_REPORTDESIGN_ARCHS)], librepository-java-openoffice.org [$(OOO_REPORTDESIGN_ARCHS)], libfonts-java-openoffice.org [$(OOO_REPORTDESIGN_ARCHS)], libserializer-java-openoffice.org [$(OOO_REPORTDESIGN_ARCHS)]
1022.24.19 by Rene Engelhard
another arch-indep depends fix
1066
	REPORT_BUILDER_JAR_DEPENDS := , libbase-java-openoffice.org, libsac-java, libxml-java-openoffice.org, libflute-java-openoffice.org, libpentaho-reporting-flow-engine-java-openoffice.org, liblayout-java-openoffice.org, libloader-java-openoffice.org, libformula-java-openoffice.org, librepository-java-openoffice.org, libfonts-java-openoffice.org, libserializer-java-openoffice.org
901.2.5 by Rene Engelhard
use system jfreereport libs
1067
	BUILD_DEPS += $(REPORT_BUILDER_BUILD_DEPS)
1022.10.88 by Rene Engelhard
prepare for m4 (reenable SRB, system-jfreereport); merge
1068
	CONFIGURE_FLAGS += --with-system-jfreereport --with-libbase-jar=/usr/share/java/openoffice/libbase.jar --with-libxml-jar=/usr/share/java/openoffice/libxml.jar --with-flute-jar=/usr/share/java/openoffice/flute.jar --with-jfreereport-jar=/usr/share/java/openoffice/flow-engine.jar --with-liblayout-jar=/usr/share/java/openoffice/liblayout.jar --with-libloader-jar=/usr/share/java/openoffice/libloader.jar --with-libformula-jar=/usr/share/java/openoffice/libformula.jar --with-librepository-jar=/usr/share/java/openoffice/librepository.jar --with-libfonts-jar=/usr/share/java/openoffice/libfonts.jar --with-libserializer-jar=/usr/share/java/openoffice/libserializer.jar
1022.10.114 by Rene Engelhard
the SRB also needs commons-logging
1069
    endif
1070
    ifeq "$(USE_SYSTEM_APACHE_COMMONS)" "y"
1071
	REPORT_BUILDER_BUILD_DEPS += , libcommons-logging-java [$(OOO_JAVA_ARCHS)]
1022.24.16 by Rene Engelhard
fix build with new dpkg 1.15.27
1072
	REPORT_BUILDER_JAR_DEPENDS += , libcommons-logging-java
1022.10.114 by Rene Engelhard
the SRB also needs commons-logging
1073
	CONFIGURE_FLAGS += --with-commons-logging-jar=/usr/share/java/commons-logging.jar
1279 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu1) lucid; urgency=low
1074
      ifeq "$(LENNY_BACKPORT)" "y"
1022.17.229 by Rene Engelhard
readd old servlet detection stuff (we need it for lenny-backports)
1075
	CONFIGURE_FLAGS += --with-system-servlet-api --with-servlet-api-jar=$(shell dpkg -L `apt-cache show libcommons-logging-java | grep Depends | cut -d"," -f2 | sed -e s/^\ //` | grep \.jar$$)
1279 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu1) lucid; urgency=low
1076
      else
1077
	CONFIGURE_FLAGS += --with-system-servlet-api --with-servlet-api-jar=$(shell dpkg -L `apt-cache show libcommons-logging-java | grep Suggests | cut -d"," -f1 | sed -e s/^\ // | awk '{ print $$2 }'` | grep servlet-api.*\.jar$ | head -n 1)
1022.17.228 by Rene Engelhard
fix libservlet2.x-java package/jar name detection
1078
 	BUILD_DEPS += , $(shell apt-cache show libcommons-logging-java | grep Suggests | cut -d"," -f1 | sed -e s/^\ // | awk '{ print $$2 }')
1279 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu1) lucid; urgency=low
1079
      endif
1022.10.114 by Rene Engelhard
the SRB also needs commons-logging
1080
    endif
1022.1.239 by Rene Engelhard
reenable report-builder; fix dependency
1081
	CONFIGURE_FLAGS += --enable-report-builder
901.1.76 by Rene Engelhard
update ooo-build; add ENABLE_REPORTDESIGN conditional, disable it for etch; remove libsvg conditional; rm -f debian/scripts/aotcompile.py*; -l-base//program
1082
  endif
1071 by Rene Engelhard
* debian/control.in, debian/rules:
1083
	OOO_OFFICEBEAN_DEP = openoffice.org$(VER)-officebean
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1084
else
1085
	CONFIGURE_FLAGS += --without-java
1097.1.1 by Rene Engelhard
fix -qa-tools' depends, no -gcj when building --without-java, fix comment, udate ooo-build
1086
	DEBHELPER_OPTIONS += -Nopenoffice.org$(VER)-officebean -Nopenoffice.org$(VER)-java-common -Nopenoffice.org$(VER)-filter-mobiledev -Nopenoffice.org$(VER)-gcj
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1087
endif
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
1088
828 by Rene Engelhard
remove debian/rules-increasing/complicating Ubuntu stuff again; update xulrunner conditional for this and a upstream change anyway (simplify), OPENGL_SUPPORT should default to no
1089
ifneq "$(MOZILLA)" ""
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1090
  ifneq "$(OOO_MOZILLA_ARCHS)" ""
1091
    ifeq "$(MOZILLA)" "xulrunner"
1022.17.4 by Rene Engelhard
bump libnss3 build-dep and mediawikis OOo dep
1092
	BUILD_DEPS+= , libxul-dev [$(OOO_MOZILLA_ARCHS)], libnss3-dev (>= 3.12.3) [$(OOO_MOZILLA_ARCHS)]
1019 by Rene Engelhard
suggest libnss-1d-dbg instead of libnss3-0d-dbg
1093
	DBG_DBG_SUGGESTS+= , libnss3-1d-dbg, libnspr4-0d-dbg
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1094
    else
1095
      ifeq "$(MOZILLA)" "libxul"
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
1096
	BUILD_DEPS+= , xulrunner-dev [$(OOO_MOZILLA_ARCHS)], libnss3-dev (>= 3.12.3) [$(OOO_MOZILLA_ARCHS)]
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1097
      else
1098
        ifeq "$(MOZILLA)" "iceape"
1022.17.4 by Rene Engelhard
bump libnss3 build-dep and mediawikis OOo dep
1099
	BUILD_DEPS += , $(MOZILLA)-dev (>= 1.1.9-5) [$(OOO_MOZILLA_ARCHS)], libnss3-dev (>= 3.12.3) [$(OOO_MOZILLA_ARCHS)]
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1100
        else
910 by Rene Engelhard
mipsel
1101
	BUILD_DEPS += , $(MOZILLA)-dev [$(OOO_MOZILLA_ARCHS)]
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1102
        endif
1092 by Rene Engelhard
update for new xulrunner 1.9 packaging using iceape-dev
1103
      endif
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1104
	DBG_DBG_SUGGESTS+= , libnss3-1d-dbg, libnspr4-0d-dbg
1082 by Rene Engelhard
support xulrunner 1.9
1105
    endif
1016 by Rene Engelhard
update ooo-build; enable s390
1106
  endif
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1107
endif
1108
ifneq (,$(findstring $(ARCH),$(OOO_MOZILLA_ARCHS)))
828 by Rene Engelhard
remove debian/rules-increasing/complicating Ubuntu stuff again; update xulrunner conditional for this and a upstream change anyway (simplify), OPENGL_SUPPORT should default to no
1109
	CONFIGURE_FLAGS += --with-system-mozilla=$(MOZILLA)
1110
else
919 by Rene Engelhard
no mozilla buildfixes
1111
	CONFIGURE_FLAGS += --disable-mozilla --without-system-mozilla
1066 by Rene Engelhard
set PACKAGE_NPSOPLUGIN=n when MOZILLA= (--disable-mozilla)
1112
	PACKAGE_NPSOPLUGIN=n
789 by Rene Engelhard
make system-dmake conditional
1113
endif
1114
1115
ifeq "$(USE_SYSTEM_DMAKE)" "y"
1279 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu1) lucid; urgency=low
1116
	BUILD_DEPS += , dmake (>= 1:4.11)
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
1117
endif
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
1118
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1119
ifneq "$(OOO_MONO_ARCHS)" ""
1022.1.304 by Rene Engelhard
generalize
1120
  ifeq "$(MONO2)" "y"
1182 by Chris Cheney
fixup for mono transition for backports
1121
	BUILD_DEPS += , mono-devel $(MONO_MINVER) [$(OOO_MONO_ARCHS)], libmono-dev $(MONO_MINVER) [$(OOO_MONO_ARCHS)], mono-utils $(MONO_MINVER) [$(OOO_MONO_ARCHS)], cli-common-dev (>= 0.5.7) [$(OOO_MONO_ARCHS)]
1122
  else
894 by Mirco Bauer
- fixed typo
1123
	# mono-gmcs for gmcs itself and mkbundle2
1124
	# mono-mcs for mcs itself and al
1022.4.1 by Rene Engelhard
make more compliant with mono policy
1125
	BUILD_DEPS += , mono-mcs $(MONO_MINVER) [$(OOO_MONO_ARCHS)], mono-gmcs $(MONO_MINVER) [$(OOO_MONO_ARCHS)], libmono-dev $(MONO_MINVER) [$(OOO_MONO_ARCHS)], mono-utils $(MONO_MINVER) [$(OOO_MONO_ARCHS)], cli-common-dev (>= 0.5.7) [$(OOO_MONO_ARCHS)], mono-1.0-devel [$(OOO_MONO_ARCHS)], mono-2.0-devel [$(OOO_MONO_ARCHS)]
1182 by Chris Cheney
fixup for mono transition for backports
1126
  endif
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1127
endif
1128
ifeq "$(ENABLE_MONO)" "y"
819 by Chris Cheney
indentation cleanups
1129
	# http://pkg-mono.alioth.debian.org/cli-policy/ch-mono.html#s7.3
1130
	MONO_SHARED_DIR = $(CURDIR)
1131
	export MONO_SHARED_DIR
1132
	CONFIGURE_FLAGS+= --enable-mono
1022.1.304 by Rene Engelhard
generalize
1133
  ifeq "$(MONO2)" "y"
1022.10.460 by Rene Engelhard
oops, actually add mono change
1134
	CONFIGURE_FLAGS += MCS=/usr/bin/mono-csc GMCS=/usr/bin/mono-csc MKBUNDLE2=/usr/bin/mkbundle
1182 by Chris Cheney
fixup for mono transition for backports
1135
  endif
894 by Mirco Bauer
- fixed typo
1136
	DBG_DBG_SUGGESTS += , mono-jit-dbg [$(OOO_MONO_ARCHS)], libmono0-dbg [$(OOO_MONO_ARCHS)], mono-dbg [$(OOO_MONO_ARCHS)]
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
1137
else
819 by Chris Cheney
indentation cleanups
1138
	CONFIGURE_FLAGS+= --disable-mono
1022.17.235 by Rene Engelhard
fix some arch-indep builds (without mono for example)
1139
	DEBHELPER_OPTIONS += -Nlibuno-cli-basetypes1.0-cil -Nlibuno-cli-uretypes1.0-cil -Nlibuno-cli-oootypes1.0-cil -Nlibuno-cli-cppuhelper1.0-cil -Nlibuno-cli-ure1.0-cil
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
1140
endif
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
1141
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
1142
ifeq "$(USE_SYSTEM_HUNSPELL)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1143
	BUILD_DEPS += , libhunspell-dev $(HUNSPELL_MIN_VER)
819 by Chris Cheney
indentation cleanups
1144
	CONFIGURE_FLAGS+= --with-system-hunspell
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
1145
endif
1022.10.354 by Rene Engelhard
fix lang= again *sigh*; use new external dict dirs
1146
	CONFIGURE_FLAGS += --with-external-dict-dir=$(DICT_DIR)
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
1147
152 by Rene Engelhard
initial 2.0.2 stuff
1148
ifeq "$(SYSTEM_ALTLINUXHYPH)" "y"
901.1.64 by Rene Engelhard
build against libhyphen-dev
1149
  ifeq "$(USE_LIBHYPHEN)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1150
	BUILD_DEPS += , libhyphen-dev $(LIBHYPHEN_MINVER)
901.1.64 by Rene Engelhard
build against libhyphen-dev
1151
  else
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1152
	BUILD_DEPS += , libaltlinuxhyph-dev $(LIBALTLINUXHYPH_MINVER)
901.1.64 by Rene Engelhard
build against libhyphen-dev
1153
  endif
152 by Rene Engelhard
initial 2.0.2 stuff
1154
	CONFIGURE_FLAGS += --with-system-altlinuxhyph
81 by Rene Engelhard
merge -1bpo1 and -1bpo2
1155
endif
1022.10.354 by Rene Engelhard
fix lang= again *sigh*; use new external dict dirs
1156
	CONFIGURE_FLAGS += --with-external-hyph-dir=$(HYPH_DIR)
81 by Rene Engelhard
merge -1bpo1 and -1bpo2
1157
381 by Rene Engelhard
add USE_AGG conditional
1158
ifeq "$(USE_AGG)" "y"
819 by Chris Cheney
indentation cleanups
1159
	CONFIGURE_FLAGS+= --with-agg
381 by Rene Engelhard
add USE_AGG conditional
1160
  ifeq "$(SYSTEM_AGG)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1161
	BUILD_DEPS += , libagg-dev (>= 2.3-2)
819 by Chris Cheney
indentation cleanups
1162
	CONFIGURE_FLAGS += --with-system-agg
381 by Rene Engelhard
add USE_AGG conditional
1163
  endif
100 by Rene Engelhard
update to 2.0.1rc2
1164
endif
1165
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1166
ifneq "$(OOO_STLPORT_ARCHS)" ""
1022.17.125 by Rene Engelhard
we don't need to build-depend on libstlport4.6-dev when we use internal STLport :-), fix typo
1167
  ifeq "$(USE_SYSTEM_STLPORT)" "y"
1065 by Rene Engelhard
revert libstlport4.6-dev builddep bump
1168
	LIBSTLPORT_MINVER= (>= 4.6.2-3)
901.2.10 by Rene Engelhard
- update ooo-build
1169
	BUILD_DEPS += , libstlport4.6-dev $(LIBSTLPORT_MINVER) [$(OOO_STLPORT_ARCHS)]
1170
	DEV_STL_DEPENDS=, libstlport4.6-dev $(LIBSTLPORT_MINVER) [$(OOO_STLPORT_ARCHS)]
1022.17.125 by Rene Engelhard
we don't need to build-depend on libstlport4.6-dev when we use internal STLport :-), fix typo
1171
   endif
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1172
endif
1173
ifneq "$(USE_STLPORT)" "y"
1174
	CONFIGURE_FLAGS += --without-stlport
1175
else
1022.10.57 by Rene Engelhard
prepare for m40
1176
        CONFIGURE_FLAGS += --with-stlport
1114 by Rene Engelhard
reenable OGLTrans for non-64-bit; improve conditionals
1177
  ifeq "$(USE_SYSTEM_STLPORT)" "y"
946 by Rene Engelhard
merge; one more OGLTrans installation fix; depend on openoffice.org-writer2latex; move fakeroot hack up; ignore unit tests failures; add arm; update ooo-build and update to m239
1178
	CONFIGURE_FLAGS+= --with-stlport=$(CURDIR)/stlport
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1179
  endif
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
1180
endif
1181
56 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-1
1182
ifeq "$(USE_SYSTEM_BOOST)" "y"
1022.1.382 by Rene Engelhard
build with boost 1.37
1183
  ifeq "$(BOOST_VERSION)" "1.34"
1022.10.79 by Rene Engelhard
merge
1184
    ifeq "$(shell gcc --version | head -n 1 | cut -d' ' -f4 | cut -d. -f1,2)" "4.4"
1022.10.6 by Rene Engelhard
build-dep bump for boost if gcc is 4.4
1185
	BUILD_DEPS += , libboost-dev (>= 1.34.1-15)
1022.10.79 by Rene Engelhard
merge
1186
    else
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1187
	BUILD_DEPS += , libboost-dev
1022.10.79 by Rene Engelhard
merge
1188
    endif
1022.1.382 by Rene Engelhard
build with boost 1.37
1189
  else
1022.10.198 by Rene Engelhard
add support for boost-defaults; allow flex again
1190
    ifneq "$(BOOST_VERSION)" "default"
1022.1.384 by Rene Engelhard
version the boost 1.37 build-dep for safety
1191
	BUILD_DEPS += , libboost$(BOOST_VERSION)-dev $(BOOST_MINVER)
1022.10.198 by Rene Engelhard
add support for boost-defaults; allow flex again
1192
    else
1193
	BUILD_DEPS += , libboost-dev $(BOOST_MINVER)
1194
    endif
1022.10.6 by Rene Engelhard
build-dep bump for boost if gcc is 4.4
1195
  endif
56 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-1
1196
	CONFIGURE_FLAGS += --with-system-boost
805 by Rene Engelhard
m222, system-vigra, add libuno_purpenvhelpergcc3 to -cores .shlibs.local; fix changelog, system-boost for etch backport as it has a version which is working
1197
endif
1198
1022.24.60 by Rene Engelhard
add conditional for system-mdds
1199
ifeq "$(USE_SYSTEM_MDDS)" "y"
1200
	BUILD_DEPS += , libmdds-dev
1201
	CONFIGURE_FLAGS += --with-system-mdds
1202
endif
1203
805 by Rene Engelhard
m222, system-vigra, add libuno_purpenvhelpergcc3 to -cores .shlibs.local; fix changelog, system-boost for etch backport as it has a version which is working
1204
ifeq "$(USE_SYSTEM_VIGRA)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1205
	BUILD_DEPS += , libvigraimpex-dev
805 by Rene Engelhard
m222, system-vigra, add libuno_purpenvhelpergcc3 to -cores .shlibs.local; fix changelog, system-boost for etch backport as it has a version which is working
1206
	CONFIGURE_FLAGS += --with-system-vigra
56 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-1
1207
endif
1208
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
1209
ifeq "$(USE_EXTERNAL_CXXLIBS)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1210
	BUILD_DEPS += , libwpd8-dev $(LIBWPD8_MINVER)
819 by Chris Cheney
indentation cleanups
1211
	CONFIGURE_FLAGS+=  --with-system-libwpd
1212
  ifeq "$(USE_SYSTEM_SABLOT)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1213
	BUILD_DEPS += , libsablot0-dev (>= 1.0.2-4)
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1214
	CONFIGURE_FLAGS += --with-system-sablot
819 by Chris Cheney
indentation cleanups
1215
  endif
1216
  ifeq "$(USE_EXTERNAL_MYTHES)" "y"
1022.24.55 by Rene Engelhard
remove libmythes-dev again, mythes 1.2 is through NEW
1217
	BUILD_DEPS += , libmythes-dev (>= 2:1.2)
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
1218
	CONFIGURE_FLAGS += --with-system-mythes
819 by Chris Cheney
indentation cleanups
1219
  endif
1220
  ifeq "$(USE_SYSTEM_LIBWPS)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1221
	BUILD_DEPS += , libwps-dev
611.1.12 by Rene Engelhard
make -gcj Depend on libxerces2-java-gcj and libxalan2-java-gcj; prepare for system-libwps by adding conditional for it
1222
	CONFIGURE_FLAGS += --with-system-libwps
819 by Chris Cheney
indentation cleanups
1223
  endif
1224
  ifeq "$(USE_SYSTEM_LIBWPG)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1225
	BUILD_DEPS += , libwpg-dev
748 by Rene Engelhard
do not add the internal libxmlsec to openoffice.org-cores .shlibs; add SYSTEM_LIBWPG conditional, not enabled anywhere yet
1226
	CONFIGURE_FLAGS += --with-system-libwpg
819 by Chris Cheney
indentation cleanups
1227
  endif
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1228
endif
1022.10.354 by Rene Engelhard
fix lang= again *sigh*; use new external dict dirs
1229
	CONFIGURE_FLAGS += --with-external-thes-dir=$(THES_DIR)
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1230
1231
ifeq "$(USE_SYSTEM_ICU)" "y"
1022.10.1 by Rene Engelhard
start 3.1 stuff
1232
	BUILD_DEPS += , libicu-dev $(ICU_MINVER)
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1233
	CONFIGURE_FLAGS += --with-system-icu
1234
endif
1235
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
1236
ifeq "$(USE_LIBXSLT)" "y"
1237
	CONFIGURE_FLAGS += --with-system-libxslt
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1238
	BUILD_DEPS += , libxslt1-dev
455 by Rene Engelhard
suggest -dbg packages for libs we use at -dbg
1239
	DBG_DBG_SUGGESTS+= , libxslt1-dbg
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
1240
endif
1241
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1242
ifeq "$(USE_SYSTEM_XMLSEC)" "y"
1082 by Rene Engelhard
support xulrunner 1.9
1243
  ifneq (,$(findstring xul,$(MOZILLA)))
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1244
	BUILD_DEPS += , libxmlsec1-dev (>= 1.2.9-1.1), libxmlsec1-nss (>= 1.2.9-1.1), libxmlsec1-openssl (>= 1.2.9-1.1)
290 by Rene Engelhard
install kdebe1.uno.so; reenable ta (it's ta-IN); build using XULRunner
1245
  else
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1246
	BUILD_DEPS += , libxmlsec1-dev (>= 1.2.9), libxmlsec1-nss (>= 1.2.9), libxmlsec1-openssl (>= 1.2.9)
290 by Rene Engelhard
install kdebe1.uno.so; reenable ta (it's ta-IN); build using XULRunner
1247
  endif
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1248
	CONFIGURE_FLAGS += --with-system-xmlsec
1249
endif
1250
56 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-1
1251
ifeq "$(BUILD_CAIROCANVAS)" "y"
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
1252
  ifeq "$(USE_SYSTEM_CAIRO)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1253
	BUILD_DEPS+= , libcairo2-dev
819 by Chris Cheney
indentation cleanups
1254
	CONFIGURE_FLAGS+= --with-system-cairo
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
1255
  endif
1256
else
819 by Chris Cheney
indentation cleanups
1257
	CONFIGURE_FLAGS+= --disable-cairo
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
1258
endif
1259
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
1260
ifeq "$(BUILD_KDE)" "n"
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
1261
	CONFIGURE_FLAGS+= --disable-kde
1022.10.263 by Rene Engelhard
- add conditionals for KDE4, enable -kde for KDE4 again (closes: #528487)
1262
	CONFIGURE_FLAGS-= --disable-kde4
1022.10.270 by Rene Engelhard
oxygen icons
1263
	CONFIGURE_FLAGS+= --with-images="$(IMAGES)"
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
1264
else
1022.10.263 by Rene Engelhard
- add conditionals for KDE4, enable -kde for KDE4 again (closes: #528487)
1265
  ifeq "$(KDE_VER)" "4"
1266
	CONFIGURE_FLAGS += --disable-kde
1022.10.270 by Rene Engelhard
oxygen icons
1267
	KDE_ICONSET_DEP=openoffice.org$(VER)-style-oxygen
1022.10.263 by Rene Engelhard
- add conditionals for KDE4, enable -kde for KDE4 again (closes: #528487)
1268
  else
1269
	CONFIGURE_FLAGS += --disable-kde4
1022.10.270 by Rene Engelhard
oxygen icons
1270
	KDE_ICONSET_DEP=openoffice.org$(VER)-style-crystal
1022.10.263 by Rene Engelhard
- add conditionals for KDE4, enable -kde for KDE4 again (closes: #528487)
1271
  endif
1258 by Chris Cheney
openoffice.org (1:3.1.1-4ubuntu2) karmic; urgency=low
1272
	BUILD_DEPS += , kdelibs$(shell expr $(KDE_VER) + 1)-dev $(KDELIBS_MINVER)
1022.1.108 by Rene Engelhard
m20
1273
  ifeq "$(KDE_VER)" "4"
1022.10.269 by Rene Engelhard
the current implemntation needs qt4 >= 4.5
1274
	BUILD_DEPS += , libqt$(KDE_VER)-dev $(QT_MINVER)
1258 by Chris Cheney
openoffice.org (1:3.1.1-4ubuntu2) karmic; urgency=low
1275
	DBG_DBG_SUGGESTS+= , kdelibs$(shell expr $(KDE_VER) + 1)-dbg, libqt$(KDE_VER)-dbg
1022.1.108 by Rene Engelhard
m20
1276
  else
819 by Chris Cheney
indentation cleanups
1277
	DBG_DBG_SUGGESTS+= , kdelibs-dbg, qt-x11-free-dbg
1022.1.108 by Rene Engelhard
m20
1278
  endif
1022.1.96 by Rene Engelhard
we only need to build-depend on kdepimlibs when we enable kab
1279
  ifeq "$(ENABLE_KDEAB)" "y"
1280
    ifeq "$(KDE_VER)" "4"
1022.10.263 by Rene Engelhard
- add conditionals for KDE4, enable -kde for KDE4 again (closes: #528487)
1281
	ADDITIONAL_SECTIONS += KDE4Experimental
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
1282
	BUILD_DEPS += , kdepimlibs$(shell expr $(KDE_VER) + 1)-dev [$(OOO_NO_BASE_ARCHS)]
1022.1.96 by Rene Engelhard
we only need to build-depend on kdepimlibs when we enable kab
1283
    endif
1284
  else
1285
	CONFIGURE_FLAGS+= --disable-kdeab
1022.24.105 by Rene Engelhard
remove bous arch-specifier
1286
	DEBHELPER_OPTIONS += -Nopenoffice.org$(VER)-kab
1022.1.96 by Rene Engelhard
we only need to build-depend on kdepimlibs when we enable kab
1287
  endif
1022.1.93 by Rene Engelhard
add BUILD_GTK conditional; disable both GTK and KDE for now...; apply KDE4 patchset if needed
1288
endif
1289
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
1290
ifeq "$(ENABLE_MYSQLNATIVE)" "y"
1291
	CONFIGURE_FLAGS += --enable-mysql-connector
1292
  ifeq "$(USE_SYSTEM_MYSQLCLIENT)" "y"
1293
	CONFIGURE_FLAGS += --with-system-mysql
1294
	BUILD_DEPS += , libmysqlclient-dev
1295
  endif
1022.10.342 by Rene Engelhard
typo
1296
  ifeq "$(USE_SYSTEM_MYSQLCPPCONN)" "y"
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
1297
	CONFIGURE_FLAGS += --with-system-mysql-cppconn
1022.17.288 by Rene Engelhard
remove trailing ), breaking the libmysqlcppconn-dev build-dep on sparc
1298
	BUILD_DEPS += , libmysqlcppconn-dev $(MYSQLCPPCONN_MINVER) [$(OOO_ARCHS)]
1022.17.260 by Rene Engelhard
oops, that should be in..
1299
    ifeq "$(USE_STLPORT)" "y"
1022.17.259 by Rene Engelhard
actually system.mysqlcpp.diff does apply...
1300
	ADDITIONAL_SECTIONS += SystemMySQLWithSTLport
1022.17.260 by Rene Engelhard
oops, that should be in..
1301
    endif
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
1302
  endif
1303
endif
1304
1022.1.93 by Rene Engelhard
add BUILD_GTK conditional; disable both GTK and KDE for now...; apply KDE4 patchset if needed
1305
ifeq "$(BUILD_GTK)" "n"
1306
	CONFIGURE_FLAGS+= --disable-gtk
1307
	DEBHELPER_OPTIONS+= -Nopenoffice.org$(VER)-gtk -Nopenoffice.org$(VER)-gnome
1022.10.270 by Rene Engelhard
oxygen icons
1308
	CONFIGURE_FLAGS+= --with-images="$(IMAGES)"
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
1309
endif
1310
1022.1.112 by Rene Engelhard
reenable evoab2, fix logic
1311
ifeq "$(ENABLE_EVO2)" "n"
1022.1.108 by Rene Engelhard
m20
1312
	CONFIGURE_FLAGS += --disable-evolution2
1313
	DEBHELPER_OPTIONS+= -Nopenoffice.org$(VER)-evolution
1022.10.285 by Rene Engelhard
don't hardcode libebook dependency
1314
else
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
1315
	BUILD_DEPS += , libebook1.2-dev [$(OOO_NO_BASE_ARCHS)]
1022.1.108 by Rene Engelhard
m20
1316
endif
1317
1132 by Rene Engelhard
update ooo-build, add ENABLE_RANDR conditional
1318
ifeq "$(ENABLE_RANDR)" "y"
1319
	BUILD_DEPS += , libxrandr-dev
1135 by Rene Engelhard
ooo-build update; reenable randr
1320
else
1321
	CONFIGURE_FLAGS += --disable-randr
1132 by Rene Engelhard
update ooo-build, add ENABLE_RANDR conditional
1322
endif
1323
1022.17.54 by Rene Engelhard
+ - add conditional to disable the layout dialogues. Disable it as it
1324
ifneq "$(ENABLE_LAYOUT)" "y"
1325
	CONFIGURE_FLAGS += --disable-layout
1326
endif
1327
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
1328
ifeq "$(BUILD_BINFILTERS)" "y"
819 by Chris Cheney
indentation cleanups
1329
	CONFIGURE_FLAGS+= --enable-binfilter
1330
	OOO_BINFILTER_DEP = openoffice.org$(VER)-filter-binfilter
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
1331
else
819 by Chris Cheney
indentation cleanups
1332
	DEBHELPER_OPTIONS+= -Nopenoffice.org$(VER)-filter-binfilter
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
1333
endif
819 by Chris Cheney
indentation cleanups
1334
391 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-129
1335
ifneq "$(BUILD_PYUNO)" "y"
819 by Chris Cheney
indentation cleanups
1336
	DEBHELPER_OPTIONS+= -Npython-uno
391 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-129
1337
endif
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
1338
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1339
ifeq "$(ENABLE_JAVA)" "y"
1022.6.2 by Rene Engelhard
add SYSTEM_LUCENE conditional
1340
  ifeq "$(USE_SYSTEM_LUCENE)" "y"
1022.1.213 by Rene Engelhard
update lucene2 version
1341
	BUILD_DEPS += , liblucene2-java (>= 2.3.2) [$(OOO_JAVA_ARCHS)]
1342
	LUCENE_DEPENDS = liblucene2-java (>= 2.3.2)
1022.19.2 by Rene Engelhard
add conflict against (<< <minor version of lucene OOo was built with)
1343
        # safety measure; e.g. lucene 2.9 index cannot be handled by lucene 2.4
1344
        LUCENE_CONFLICTS = liblucene2-java (<< $(shell dpkg -l liblucene2-java | grep ^ii | awk '{ print $$3 }' | cut -d. -f1,2)~)
1022.1.163 by Rene Engelhard
a future milestone will also use lucene-analyzers.jar
1345
	CONFIGURE_FLAGS += --with-system-lucene --with-lucene-core-jar=/usr/share/java/lucene-core.jar --with-lucene-analyzers-jar=/usr/share/java/lucene-analyzers.jar
1022.6.2 by Rene Engelhard
add SYSTEM_LUCENE conditional
1346
  endif
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1347
  ifeq "$(USE_SYSTEM_HSQLDB)" "y"
1022.10.82 by Rene Engelhard
tighten hsqldb depends to 1.8.0.10 with the lock fix
1348
	BUILD_DEPS += , libhsqldb-java $(HSQLDB_MINVER) [$(OOO_JAVA_ARCHS)]
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
1349
	BASE_HSQLDB_DEPENDS = libhsqldb-java $(HSQLDB_MINVER), libhsqldb-java (<< $(HSQLDB_TOONEWVER)~)
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
1350
	CONFIGURE_FLAGS+= --with-system-hsqldb
901.1.89 by Rene Engelhard
ooo-build update; minor merge from 2.4 and Ubuntu
1351
	JAVA_GCJ_DEPENDS += , libhsqldb-java-gcj
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1352
  endif
1353
  ifeq "$(USE_SYSTEM_BSH)" "y"
1022.1.413 by Rene Engelhard
+ Follow Lintian's recommendation to avoid dependency on a Debian ‘-1’
1354
	BUILD_DEPS += , bsh (>= 2.0b4) [$(OOO_JAVA_ARCHS)]
1355
	COMMON_BSH_DEPENDS = bsh (>= 2.0b4)
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
1356
	CONFIGURE_FLAGS+= --with-system-beanshell
757 by Rene Engelhard
make -gcj depend on bsh-gcj; add export SAL_IGNOREXERRORS=1 to soffice
1357
	JAVA_GCJ_DEPENDS += , bsh-gcj
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1358
  endif
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
1359
endif
1360
1022.1.51 by Rene Engelhard
some more no-scsolver anymore fixes; m12
1361
ifeq "$(USE_SYSTEM_LPSOLVE)" "y"
1362
  ifeq "$(USE_SHARED_LPSOLVE)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1363
	BUILD_DEPS += , liblpsolve55-dev $(LPSOLVE_MIN_VERSION), lp-solve $(LPSOLVE_MIN_VERSION)
1364
	LPSOLVE_DEP = lp-solve $(LPSOLVE_MIN_VERSION)
1022.1.51 by Rene Engelhard
some more no-scsolver anymore fixes; m12
1365
  else
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1366
	BUILD_DEPS += , liblpsolve55-dev $(LPSOLVE_MIN_VERSION)
1022.1.51 by Rene Engelhard
some more no-scsolver anymore fixes; m12
1367
  endif
324 by Rene Engelhard
add conditional to build against system liblpsolve55, not yet enabled; work around internal liblpsolve55.so not yet installed
1368
	CONFIGURE_FLAGS += --with-system-lpsolve
1022.1.29 by Rene Engelhard
adapt for sccomp
1369
  ifeq "$(USE_LIBSUITESPARSE)" "y"
772.1.10 by Rene Engelhard
ooo-build update; build against libsuitesparse
1370
	DBG_DBG_SUGGESTS+= , libsuitesparse-dbg
1022.1.389 by Rene Engelhard
suitesparse 3.2.0 entered sid, so update build-deps again
1371
	BUILD_DEPS += , libsuitesparse-dev $(SUITESPARSE_MIN_VERSION)
1022.1.51 by Rene Engelhard
some more no-scsolver anymore fixes; m12
1372
  else
795 by Rene Engelhard
etch backport fixes
1373
	DBG_DBG_SUGGESTS+= , libufsparse-dbg
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1374
	BUILD_DEPS += , libufsparse-dev
819 by Chris Cheney
indentation cleanups
1375
  endif
324 by Rene Engelhard
add conditional to build against system liblpsolve55, not yet enabled; work around internal liblpsolve55.so not yet installed
1376
endif
1377
357 by Rene Engelhard
only build-dep on dbus on sid amd use actual required version; set [LD_LIBRARY_]PATH also at install step
1378
ifeq "$(USE_DBUS)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1379
	BUILD_DEPS += , libdbus-glib-1-dev (>= 0.60)
901.1.31 by Rene Engelhard
--enable-dbus, remove glitz build-dep
1380
	CONFIGURE_FLAGS += --enable-dbus
357 by Rene Engelhard
only build-dep on dbus on sid amd use actual required version; set [LD_LIBRARY_]PATH also at install step
1381
endif
1382
442 by Rene Engelhard
add USE_GSTREAMER conditional; merge openofficeorg--unstable--2.0.3--patch-168
1383
ifeq "$(USE_GSTREAMER)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1384
	BUILD_DEPS += , libgstreamer-plugins-base0.10-dev
475 by Rene Engelhard
revert mingw $(DIST) change, suggest gstreamer0.10-ffmpeg, add missing ifeq "$(ENABLE_JAVA)" "y"s to -qa-* packagingremove closes which will close the amd64 bug when this gets uploaded using -v, fix typo
1385
	GSTREAMER_PLUGINS_SUGGESTS += , gstreamer0.10-plugins-base, gstreamer0.10-plugins-good, gstreamer0.10-plugins-ugly, gstreamer0.10-plugins-bad, gstreamer0.10-ffmpeg
1034 by Chris Cheney
debian/rules: clean up whitespace
1386
	DBG_DBG_SUGGESTS+= , libgstreamer0.10-0-dbg
442 by Rene Engelhard
add USE_GSTREAMER conditional; merge openofficeorg--unstable--2.0.3--patch-168
1387
else
1388
	CONFIGURE_FLAGS += --disable-gstreamer
1389
endif
1390
361 by Rene Engelhard
add system-neon conditonal, temporarily disable it for sid
1391
ifeq "$(USE_SYSTEM_NEON)" "y"
1022.10.357 by Rene Engelhard
build with libenon27-gnutls
1392
  ifneq "$(NEON_SECTYPE)" "openssl"
1393
	BUILD_DEPS += , libneon$(NEONSONR)-$(NEON_SECTYPE)-dev
1394
	DBG_DBG_SUGGESTS+= , libneon$(NEONSONR)-$(NEON_SECTYPE)-dbg
1395
  else
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1396
	BUILD_DEPS += , libneon$(NEONSONR)-dev
936 by Rene Engelhard
fix neon builddep; temporarily disable qa-tools and mono; use system-hsqldb again; enable OGLTrans for i386
1397
	DBG_DBG_SUGGESTS+= , libneon$(NEONSONR)-dbg
1022.10.357 by Rene Engelhard
build with libenon27-gnutls
1398
  endif
819 by Chris Cheney
indentation cleanups
1399
	CONFIGURE_FLAGS += --with-system-neon
361 by Rene Engelhard
add system-neon conditonal, temporarily disable it for sid
1400
endif
1401
1022.6.4 by Rene Engelhard
SYSTEM_REDLAND conditional
1402
ifeq "$(USE_SYSTEM_REDLAND)" "y"
1022.17.237 by Rene Engelhard
add patch to allow build against system-redland; update build-dep; enable it and work around dpkg-shlibdeps failing
1403
	BUILD_DEPS += , librdf0-dev (>= 1.0.8)
1022.6.4 by Rene Engelhard
SYSTEM_REDLAND conditional
1404
	CONFIGURE_FLAGS += --with-system-redland
1022.17.237 by Rene Engelhard
add patch to allow build against system-redland; update build-dep; enable it and work around dpkg-shlibdeps failing
1405
	SHLIBS_OVERRIDE += -Xunordf
1022.6.4 by Rene Engelhard
SYSTEM_REDLAND conditional
1406
endif
1407
597 by Rene Engelhard
bump gtk builddep for cairofonts change, make urgency low again, the CVE doesn't affect us (not that it would matter anyway for experimental ;) )
1408
# CairoFonts patchset is applied for sid and this patch needs Gtk 2.10
686 by Rene Engelhard
build against libportaudio2
1409
ifneq "$(CAIRO_FONTS_PATCH)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1410
	BUILD_DEPS += , libgtk2.0-dev
685 by Rene Engelhard
enabled CairoFonts patchset
1411
else
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1412
	BUILD_DEPS += , libgtk2.0-dev (>= 2.10)
819 by Chris Cheney
indentation cleanups
1413
  # cairo canvas might be disabled, but the patch needs cairo headers
1414
  ifneq "$(BUILD_CAIROCANVAS)" "y"
1089 by Rene Engelhard
* debian/control.in, debian/rules:
1415
	BUILD_DEPS += , libcairo2-dev
685 by Rene Engelhard
enabled CairoFonts patchset
1416
	CONFIGURE_FLAGS += --with-system-cairo
819 by Chris Cheney
indentation cleanups
1417
  endif
685 by Rene Engelhard
enabled CairoFonts patchset
1418
endif
597 by Rene Engelhard
bump gtk builddep for cairofonts change, make urgency low again, the CVE doesn't affect us (not that it would matter anyway for experimental ;) )
1419
1022.1.79 by Rene Engelhard
updates for m13
1420
ifeq "$(ENABLE_GIO)" "y"
1022.1.282 by Rene Engelhard
update ENABLE_GIO conditional
1421
	CONFIGURE_FLAGS += --enable-gio --disable-gnome-vfs
1216 by Chris Cheney
openoffice.org (1:3.1.0~rc2-1ubuntu1) karmic; urgency=low
1422
	BUILD_DEPS += , libglib2.0-dev (>= 2.15.0)
1202 by Chris Cheney
openoffice.org (1:3.0.1-5ubuntu1) jaunty; urgency=low
1423
endif
1424
1425
ifeq "$(ENABLE_GVFS)" "y"
1022.15.10 by Rene Engelhard
merge from Ubuntu
1426
	BUILD_DEPS += , libgnomevfs2-dev
1202 by Chris Cheney
openoffice.org (1:3.0.1-5ubuntu1) jaunty; urgency=low
1427
else
1428
	CONFIGURE_FLAGS += --disable-gnome-vfs
1022.15.10 by Rene Engelhard
merge from Ubuntu
1429
endif
1430
1431
ifeq "$(ENABLE_GCONF)" "y"
1432
	BUILD_DEPS += , libgconf2-dev
1433
else
1434
	CONFIGURE_FLAGS += --disable-gconf
1435
endif
1436
12 by Chris Halls
Imported openoffice_org-1_0_1-5
1437
# Use compiler cache?  Include ccache in DEB_BUILD_OPTIONS for much faster rebuild times
1438
# A complete build uses about 200Mb of compiler cache.
1 by Chris Halls
Import from old cvs.debian.org
1439
ifeq (ccache,$(findstring ccache,$(DEB_BUILD_OPTIONS)))
819 by Chris Cheney
indentation cleanups
1440
	CONFIGURE_FLAGS += --with-gcc-speedup=ccache
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
1441
endif
1442
896 by Rene Engelhard
migrate from num-cpus= to parallel= in DEB_BUILD_OPTIONS
1443
# Build n projects in parallel?
1444
# DEB_BUILD_OPTIONS=parallel=<n>
1022.10.331 by Rene Engelhard
adapt for libmysqlcppconn-stlport-dev, fix parallel=X, regen control
1445
NUM_CPUS=$(shell echo "$(DEB_BUILD_OPTIONS)," | sed -n 's/^\(.*\s\)\?parallel=\([0-9]\+\).*/\2/p')
901.1.89 by Rene Engelhard
ooo-build update; minor merge from 2.4 and Ubuntu
1446
AVAIL_CPUS := $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
826 by Chris Cheney
* debian/control.2.in:
1447
ifeq "$(NUM_CPUS)" ""
1448
	NUM_CPUS := 1
828 by Rene Engelhard
remove debian/rules-increasing/complicating Ubuntu stuff again; update xulrunner conditional for this and a upstream change anyway (simplify), OPENGL_SUPPORT should default to no
1449
  ifeq "$(PARALLEL_BUILD)" "y"
1034 by Chris Cheney
debian/rules: clean up whitespace
1450
	# according to Pavel Janik, build -P<number of cores> -- -P2
901.1.2 by Rene Engelhard
disable mozilla-openoffice.org for 64bit; default to -P<number of cores> for PARALLEL_BUILD=y
1451
	# is ideal. This sets the first -P according to the number
1452
	# of CPUs (where dual-core CPUS report 2, too)
826 by Chris Cheney
* debian/control.2.in:
1453
    ifneq ($(AVAIL_CPUS),1)
901.1.2 by Rene Engelhard
disable mozilla-openoffice.org for 64bit; default to -P<number of cores> for PARALLEL_BUILD=y
1454
	NUM_CPUS := $(shell expr $(AVAIL_CPUS))
826 by Chris Cheney
* debian/control.2.in:
1455
    endif
1456
  endif
1457
endif
819 by Chris Cheney
indentation cleanups
1458
	CONFIGURE_FLAGS += --with-num-cpus=$(NUM_CPUS)
981 by Rene Engelhard
disable --with-max-jobs= for now, improve comment, symlink libstlport_gcc.so only with USE_STLPORT=y
1459
	# breaks. At least with 2
1460
#	CONFIGURE_FLAGS += --with-max-jobs=$(NUM_CPUS)
145 by Chris Halls
Parallel build support
1461
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
1462
CURDIR ?= $(shell pwd)
1463
1464
ifeq ($(GCC_VERSION),)
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
1465
	BUILD_PATH = /usr/lib/jvm/java-gcj/bin:$$PATH
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
1466
else
819 by Chris Cheney
indentation cleanups
1467
  ifeq ($(GCC_VERSION),snapshot)
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
1468
	BUILD_PATH = /usr/lib/jvm/java-gcj/bin:/usr/lib/gcc-snapshot/bin:$$PATH
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
1469
	BUILD_LD_LIBRARY_PATH = /usr/lib/gcc-snapshot/lib:$$LD_LIBRARY_PATH
1022.10.206 by Rene Engelhard
more GCC_VERSION handling fixes
1470
	BUILD_DEPS += , gcc-snapshot
819 by Chris Cheney
indentation cleanups
1471
  else
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
1472
	BUILD_PATH = /usr/lib/jvm/java-gcj/bin:$(CURDIR)/debian/usr/bin:$$PATH
1022.10.206 by Rene Engelhard
more GCC_VERSION handling fixes
1473
	BUILD_DEPS += , gcc-$(GCC_VERSION), g++-$(GCC_VERSION)
819 by Chris Cheney
indentation cleanups
1474
  endif
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
1475
endif
533 by Rene Engelhard
some more Ubuntu merge (ooo-build desktops); Build-Conflict against libstlport5.0-dev (= 5.0.2-10); add README.Debian-source
1476
BUILD_PATH := $(CURDIR)/debian/usr/bin:$(BUILD_PATH)
1022.24.46 by Rene Engelhard
add /usr/lib/libfakeroots and fix environment changing, though that doesn't help the installer yet - add temporary(?) hack to fix it; it sees the fakeroot ERRORs and fails
1477
BUILD_LD_LIBRARY_PATH := /usr/lib/libfakeroot:$(BUILD_LD_LIBRARY_PATH):$(GCJ_JAWT_DIR)
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
1478
1022.17.15 by Rene Engelhard
remove hardcoded libldap2-dev builddep, move to conditional and suggest the lib
1479
ifeq "$(ENABLE_LDAP)" "y"
1480
  ifeq "$(USE_OPENLDAP)" "y"
1481
    BUILD_DEPS += , libldap2-dev
1482
    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 }'`)
1483
   else
1484
     CONFIGURE_FLAGS += --without-openldap
1485
   endif
1486
else
1487
  CONFIGURE_FLAGS += --disable-ldap
1488
endif
1489
1 by Chris Halls
Import from old cvs.debian.org
1490
# Because of the stampdir magic, when you actually want to run a rule
1491
# over, you would have to remove the stamp manually.  Now, just do
1492
# 'debian/rules <target> <target> ... FORCE=1', and the stamp files
1493
# that match the given targets will be removed automagically.
31 by Chris Halls
Imported openoffice_org-1_1_0-3
1494
stampdir_targets=files.backup icons.scale patch.apply build.prepare.artwork 
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
1495
stampdir_targets+=build.prepare configure
1496
stampdir_targets+=setupins setup install install-arch install-indep
1022.10.51 by Rene Engelhard
start migrating to dh_install
1497
stampdir_targets+=langpacks binary-common binary-arch binary-indep
1 by Chris Halls
Import from old cvs.debian.org
1498
ifdef FORCE
1499
 DUMMY:=$(shell rm -f $(patsubst %,$(STAMP_DIR)/%,$(filter $(stampdir_targets),$(MAKECMDGOALS))))
1500
endif
1501
1502
# If this is defined, then none of the 'long' commands will be run.  Useful
1503
# for testing.
1504
# test_rules=1
1505
11 by Chris Halls
Imported openoffice_org-1_0_1-4
1506
# Since the final stages use up a large amount of diskspace, provide targets to
1507
# remove them without needing a full rebuild
1508
1509
# Clean up the package directories (about 830M) 
1510
clean-debdir:
1511
	dh_testdir
13 by Chris Halls
Imported openoffice_org-1_0_1-6rc1
1512
	rm -f debian/*.postinst debian/*.postrm debian/*.preinst debian/*.prerm
11 by Chris Halls
Imported openoffice_org-1_0_1-4
1513
	rm -f $(STAMP_DIR)/setup
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1514
ifeq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
1515
	rm -rf debian/ttf-opensymbol \
1516
	       debian/openoffice.org$(VER)-common \
1517
	       debian/openoffice.org$(VER)-dev-doc \
1518
	       debian/openoffice.org$(VER)-java-common \
1519
	       debian/openoffice.org$(VER)-l10n-en-us
1520
endif
11 by Chris Halls
Imported openoffice_org-1_0_1-4
1521
	dh_clean
1522
12 by Chris Halls
Imported openoffice_org-1_0_1-5
1523
# Clean compilation results, but leave solver (about 600Mb in addition to instsetoo)
1524
clean-objectdirs: clean-instsetoo
1525
	dh_testdir
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
1526
	find $(SOURCE_TREE) -maxdepth 2 -name $(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT) -type d -exec rm -rf {} \;
28 by Chris Halls
Imported openoffice_org-1_0_99_1_1rc3-1
1527
1022.17.215 by Rene Engelhard
- fix build with 1.0 source format. Add missing uuencode for the extra
1528
ifeq "$(DEBSRC_VERSION)" "1.0"
1529
include /usr/share/quilt/quilt.make
1530
endif
1531
1532
ifeq "$(DEBSRC_VERSION)" "1.0"
1533
clean: unpatch
1534
else
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
1535
clean:
1022.17.215 by Rene Engelhard
- fix build with 1.0 source format. Add missing uuencode for the extra
1536
endif
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
1537
	dh_testroot
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
1538
	dh_testdir
28 by Chris Halls
Imported openoffice_org-1_0_99_1_1rc3-1
1539
611.1.20 by Rene Engelhard
run make clean in ooo-build/desktop
1540
	# openoffice.applications and openoffice*.keys are not removed via make distclean
1541
	# although they are generated files. Work around this.
1542
	# FIXME: Fix the makefiles in ooo-build directly
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1543
	if [ -e $(OOO_BUILD_TREE)/desktop/openoffice.applications ]; then \
1544
		$(MAKE) -C $(OOO_BUILD_TREE)//desktop clean || true;\
611.1.20 by Rene Engelhard
run make clean in ooo-build/desktop
1545
	fi
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1546
	if [ -r $(OOO_BUILD_TREE)/Makefile ]; then \
1547
	  $(MAKE) -C $(OOO_BUILD_TREE) distclean || true ;\
40 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu3
1548
	fi
1549
833 by Rene Engelhard
fix PRUNE_OOOBUILD
1550
ifeq "$(PRUNE_OOOBUILD)" "y"
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1551
	# prune upstream ooo-build files
1552
	set -e; \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1553
	cd $(OOO_BUILD_TREE) ;\
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1554
	rm -rf \
973 by Rene Engelhard
build-conflict against SIGSEGV gcj, add new ooo-build files to prune/uuencode
1555
	 2005-10-23-huston.ppt \
1022.1.182 by Chris Cheney
whitespace and spelling fixes
1556
	 doc/class_diagram.odg \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1557
	 scratch/offapi-vba/constants/constant_types.rdb \
1558
	 src/*.ico \
1559
	 src/*.jpg \
1560
	 src/*.xcf \
1561
	 src/*_nld.* \
1562
	 src/Draft.jpg \
1563
	 src/file-bug*.png \
1564
	 src/open*.png \
1565
	 src/open{intro,about}*.bmp \
1022.17.132 by Rene Engelhard
update ooo-build
1566
	 src/eval/open{intro,about}*.bmp \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1567
	 src/easter/*.png \
1022.10.104 by Rene Engelhard
remove openoffice-xlate-symlink again - breaks source package 1.0 building and was a bad idea from the start; uuencode/remove some more files to fix source package building
1568
	 src/sg3.* \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1569
	 patches/test/*.tar \
1570
	 www/images/*.png \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1571
	 www/l10n/*.gif
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1572
	 if [ -d $(OOO_BUILD_TREE)/test ]; then \
1573
		find $(OOO_BUILD_TREE)/test $(OOO_BUILD_TREE)/doc $(OOO_BUILD_TREE)/scratch -type f \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1574
			\( -name '*.123' -o -name '*.doc' -o -name '*.lwp' \
1575
			-o -name '*.odp' -o -name "*.ods" -o -name '*.odt' \
1576
			-o -name '*.png' -o -name '*.ppt' -o -name '*.sx?' \
1577
			-o -name '*.wb2' -o -name '*.WB2' -o -name '*.xls' \
874 by Rene Engelhard
temporarily disable cy
1578
			-o -name '*.XLS' -o -name '*.xlsx' -o -name '*.xls.gz' \
1579
			-o -name '*.xls.bz2' \) \
137 by Rene Engelhard
clean up src/ cleanup
1580
			-exec rm {} \; ;\
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1581
	 fi
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1582
	 find $(OOO_BUILD_TREE)/scratch $(OOO_BUILD_TREE)/src -type f \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1583
		\( -name '*.odg' -o -name '*.ods' -o -name '*.ott' \) \
1584
		-exec rm {} \;
1585
endif
1586
1587
	# remove file with space in the name
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1588
	rm -f $(OOO_BUILD_TREE)/test/macro/clock\ chart.xls
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1589
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1590
	rm -rf $(OOO_BUILD_TREE)/autom4ate.cache
1591
	rm -rf $(OOO_BUILD_TREE)/build
1592
	rm -rf $(OOO_BUILD_TREE)/desktop/*.desktop
1593
	rm -f $(OOO_BUILD_TREE)/fonts/symbols.xls
1594
	rm -f $(OOO_BUILD_TREE)/po/.intltool-merge-cache
1595
	rm -f $(OOO_BUILD_TREE)/src/GSI*.sdf
29 by Chris Halls
Imported openoffice_org-1_1_0-1
1596
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
1597
	# remove generated symlinks / java wrappers
1598
	rm -rf debian/usr
1599
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
1600
	# stlport home
331 by Rene Engelhard
adapt for new stlport build flag; add stlport5 conditional
1601
	rm -rf $(CURDIR)/stlport
89 by Chris Halls
debian/rules fixes (path, rerun target, non-debuild problems)
1602
	# convenience link
1603
	rm -f build
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
1604
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1605
	rm -f $(OOO_BUILD_TREE)/src/GSI*err
1606
	rm -f $(OOO_BUILD_TREE)/config.*
56 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-1
1607
826 by Chris Cheney
* debian/control.2.in:
1608
ifneq "$(OOO_L10N_DIR)" ""
1609
	rm -rf $(OOO_L10N_DIR)
1610
endif
1611
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1612
ifeq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
1613
	rm -rf debian/ttf-opensymbol \
1614
	       debian/openoffice.org$(VER)-common \
1615
	       debian/openoffice.org$(VER)-dev-doc \
1616
	       debian/openoffice.org$(VER)-java-common \
1617
	       debian/openoffice.org$(VER)-l10n-en-us
1618
endif
1619
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1620
ifeq "$(DEBSRC_VERSION)" "1.0"
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1621
	# uuencode upstream ooo-build binary files
1622
	set -e; \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1623
	cd $(OOO_BUILD_TREE) ; \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1624
	 for f in \
1625
	   desktop/*/*.png \
1626
	   doc/*.ods \
1627
	   doc/*.sxw \
1628
	   patches/test/*.tar \
1629
	   scratch/offapi-vba/constants/*.rdb \
1216 by Chris Cheney
openoffice.org (1:3.1.0~rc2-1ubuntu1) karmic; urgency=low
1630
	   scratch/sc-vba/TestDocuments/*.xls \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1631
	   src/*.bmp \
1632
	   src/*.ico \
1633
	   src/*.jpg \
1634
	   src/*.odb \
1635
	   src/*.png \
1636
	   src/easter/*.png \
973 by Rene Engelhard
build-conflict against SIGSEGV gcj, add new ooo-build files to prune/uuencode
1637
	   src/layout/*.png \
1022.1.193 by Rene Engelhard
update uuencoding clean to make source package build
1638
	   src/layout/default_images/res/commandimagelist/*.png \
1639
	   src/layout/ooo_custom_images/industrial/res/commandimagelist/*.png \
1640
	   src/layout/ooo_custom_images/tango/res/commandimagelist/*.png \
1012 by Rene Engelhard
-3
1641
	   src/icons/*.png \
1642
	   src/icons/tango/*.png \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
1643
	   src/acor_ru-RU.dat \
1644
	   src/acor_sk-SK.dat \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1645
	   templates/*.ott \
1646
	   test/Lwp/*.lwp \
1647
	   test/Lwp/*.png \
1648
	   test/calc/*.xls \
1649
	   test/draw/*.odp \
1650
	   test/draw/*.ppt \
1651
	   test/draw/*.sxd \
1652
	   test/excel/*.xls \
1653
	   test/excel/*.xlsx \
873 by Rene Engelhard
update ooo-build; update GSIs; update to m3
1654
	   test/excel/*.xls.gz \
1016 by Rene Engelhard
update ooo-build; enable s390
1655
	   test/excel/*.xls.bz2 \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1656
	   test/lotus/*.123 \
1657
	   test/macro/*.ods \
1658
	   test/macro/*.xls \
1659
	   test/macro/ConvertTests/*.xls \
1660
	   test/macro/vba_donated_docs/*.XLS \
1661
	   test/macro/vba_donated_docs/*.xls \
1662
	   test/qpro/*.png \
1663
	   test/qpro/*.WB2 \
1664
	   test/qpro/*.wb2 \
1665
	   test/qpro/*.xls \
1666
	   test/writer/*.odt \
1667
	   test/writer/*.sxw \
1042 by Rene Engelhard
uuencode new binary files
1668
	   desktop/mimetypes/16x16/*.png \
1669
	   desktop/mimetypes/22x22/*.png \
1670
	   desktop/mimetypes/24x24/*.png \
1671
	   desktop/mimetypes/32x32/*.png \
1672
	   desktop/mimetypes/48x48/*.png \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1673
	   www/images/*.png \
1674
	   www/l10n/*.gif \
1076 by Rene Engelhard
update ooo-build
1675
	   doc/class_diagram.odg \
1022.10.104 by Rene Engelhard
remove openoffice-xlate-symlink again - breaks source package 1.0 building and was a bad idea from the start; uuencode/remove some more files to fix source package building
1676
	   extensions/coooder/icons/image1_16.bmp \
1677
	   extensions/coooder/icons/image1_16h.bmp \
1678
	   extensions/coooder/icons/image1_26.bmp \
1679
	   extensions/coooder/icons/image1_26h.bmp \
1022.10.297 by Rene Engelhard
missing src/
1680
	   src/default_images/svx/res/doc_modified_no_14.png \
1681
	   src/default_images/svx/res/doc_modified_yes_14.png \
1022.17.42 by Rene Engelhard
two new files needing uuencoding
1682
	   src/default_images/sc/res/popup_select_current.png \
1683
	   src/default_images/sc/res/popup_unselect_current.png \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1684
	   ; do \
1685
	  if [ -s $$f ]; then \
1686
	   uuencode $$f $$f > $$f.uu.tmp && \
1687
	   ../debian/scripts/move-if-change $$f.uu.tmp $$f.uu; \
1688
	   touch -r $$f $$f.uu ; \
1689
	   rm -f $$f ; \
1690
	  fi ; \
1691
	 done
1692
1693
	# uuencode add-on ooo-build binary files
1694
	set -e; \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1695
	cd $(OOO_BUILD_TREE) ; \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1696
	 for f in \
1697
	   src/*.bz2 \
1698
	   src/*.dll \
1699
	   src/*.gz \
1022.10.443 by Rene Engelhard
update ooo-build; uuencode also src/*.zip
1700
	   src/*.zip \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1701
	   ; do \
1702
	  if [ -s $$f ]; then \
850 by Rene Engelhard
OOG680_m1; make extension stuff more like jl68; gsistat.py -> scripts/gsistat.py; update debian/copyright
1703
	   case "$$f" in src/$(TAG)*) continue ; esac ; \
1022.17.33 by Rene Engelhard
broader uuencode exception list to allow OOo-Dev tarballs
1704
	   case "$$f" in src/OOo*_src*) continue ; esac; \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1705
	   uuencode $$f $$f > $$f.uu.tmp && \
1706
	   ../debian/scripts/move-if-change $$f.uu.tmp $$f.uu; \
1707
	   touch -r $$f $$f.uu ; \
1708
	   rm -f $$f ; \
1709
	  fi ; \
1710
	 done
1022.17.215 by Rene Engelhard
- fix build with 1.0 source format. Add missing uuencode for the extra
1711
	set -e; \
1712
	for i in `cat debian/source/components | grep -v ^$(OOO_BUILD_TREE)` ; do \
1713
	cd $$i && \
1714
	 for f in \
1715
	   *.bz2 \
1716
	   *.gz \
1717
	   *.zip \
1718
	   ; do \
1719
	  if [ -s $$f ]; then \
1720
	   uuencode $$f $$f > $$f.uu.tmp && \
1721
	   ../debian/scripts/move-if-change $$f.uu.tmp $$f.uu; \
1722
	   touch -r $$f $$f.uu ; \
1723
	   rm -f $$f ; \
1724
	  fi ; done; \
1725
	 cd ..; \
1726
	 done
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
1727
endif
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
1728
30 by Chris Halls
Imported openoffice_org-1_1_0-2
1729
	dh_clean
28 by Chris Halls
Imported openoffice_org-1_0_99_1_1rc3-1
1730
33 by Chris Halls
Imported openoffice.org_1.1.4-4
1731
	# Files created in debian directory
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
1732
	rm -f debian/*.postinst debian/*.postrm debian/*.preinst debian/*.prerm
1022.17.327 by Rene Engelhard
remove generated .links again
1733
	find debian -name "*.links" ! -name "openoffice.org-common*.links" -exec rm {} \;
1022.24.93 by Rene Engelhard
better fix, like before
1734
	if [ -d "$(STAMP_DIR)" ]; then rm -rf "$(STAMP_DIR)"; fi
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
1735
	rm -f debian/shlibs.override.stdlibs
1022.10.516 by Rene Engelhard
migrate bug script installation to dh_bugfiles
1736
	rm -f debian/*.bug-script
901.1.76 by Rene Engelhard
update ooo-build; add ENABLE_REPORTDESIGN conditional, disable it for etch; remove libsvg conditional; rm -f debian/scripts/aotcompile.py*; -l-base//program
1737
	rm -f debian/scripts/aotcompile.py*
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
1738
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1739
ifeq "$(ENABLE_MONO)" "y"
1740
	rm -rf $(MONO_SHARED_DIR)/.wapi
1741
endif
1742
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
1743
ifeq "$(HELPISOS)" ""
1744
	rm -rf images*
1745
endif
1746
238 by Rene Engelhard
change -help-* installing for somehow changed ooo-build behaviour...; rm l10n.fdupes in clean
1747
	rm -f l10n.fdupes
395 by Rene Engelhard
update to m179; fix -mobiledevs decription; rework shlibs.local usage; merge openofficeorg--unstable--2.0.3--patch-134
1748
	rm -f debian/shlibs.local
1022.10.349 by Rene Engelhard
* debian/shell-lib.sh: check whether OOo is running before (de-)registering
1749
	rm -f debian/*.templates
238 by Rene Engelhard
change -help-* installing for somehow changed ooo-build behaviour...; rm l10n.fdupes in clean
1750
723 by Rene Engelhard
more doc-base fixes
1751
	rm -f debian/openoffice.org-dev-doc.doc-base.*
808 by Rene Engelhard
- update ooo-build
1752
	rm -f debian/*.menu
1022.10.494 by Rene Engelhard
lintian fixes
1753
	for i in base calc core common draw impress math writer; do \
1022.1.2 by Rene Engelhard
overrides.lintian -> lintian-overrides and use dh_lintian
1754
		rm -f debian/openoffice.org-$$i.lintian-overrides; \
808 by Rene Engelhard
- update ooo-build
1755
	done
1022.15.11 by Rene Engelhard
remove debian/*.install and debian/*.dirs in clean
1756
	rm -f debian/*.install debian/*.dirs
1022.17.12 by Rene Engelhard
update .xmlcatalogs; make generated file adapting automatically to new basisX.Y
1757
	rm -f debian/openoffice.org-dtd-officedocument1.0.xmlcatalogs
1022.10.328 by Rail Aliev
Remove download.list file produced by download target
1758
	rm -f download.list
723 by Rene Engelhard
more doc-base fixes
1759
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1760
ifeq "$(WITH_SPLIT)" "y"
1761
	rm -f $(OOO_BUILD_TREE)/src/$(TAG)*
1762
else
1763
	rm -f $(OOO_BUILD_TREE)/src/OOo*_src*
1764
endif
1765
	rm -f $(OOO_BUILD_TREE)/src/GSI*
1766
1767
	for i in ext-sources-$(OOO_BUILD_TREE)/*; do \
1768
		rm -f $(OOO_BUILD_TREE)/src/`basename $$i`; \
1769
	done
1770
1771
	for i in `find $(OOO_BUILD_TREE)/patches/dev300 -name "*.in" ! -name "Makefile*"`; do \
1772
		if [ -e `echo $$i | sed -e s/\.in$$//` ]; then \
1773
			rm `echo $$i | sed -e s/\.in$$//`; \
1774
		fi; \
1775
	done
1776
	rm -f $(OOO_BUILD_TREE)/bin/setup
1777
	rm -f $(OOO_BUILD_TREE)/bin/piece/sys-setup
1778
	rm -f $(OOO_BUILD_TREE)/download
1779
	rm -f $(OOO_BUILD_TREE)/distro-configs/*.conf
1780
	rm -f $(OOO_BUILD_TREE)/patches/apply.pl
1781
1782
ifeq "$(DEBSRC_VERSION)" "1.0"
1783
	# default is 3.0 (quilt), so revert to 1.0 for lenny
1784
	echo "1.0" > debian/source/format
1785
endif
1786
13 by Chris Halls
Imported openoffice_org-1_0_1-6rc1
1787
	$(MAKE) -f debian/rules control
8 by Chris Halls
Imported openoffice_org-1_0_1-1
1788
1 by Chris Halls
Import from old cvs.debian.org
1789
2 by Chris Halls
Imported openoffice_org-1_0_0-4
1790
# Generate control file, because we have so many different languages
1791
# Based on script by Martin Quinson <Martin.Quinson@tuxfamily.org>
1792
control: debian/control
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1793
debian/control: $(wildcard debian/control*in) $(OOO_BUILD_TREE)/bin/openoffice-xlate-lang  debian/rules
1794
	chmod 755 $(OOO_BUILD_TREE)/bin/openoffice-xlate-lang
44 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu7
1795
	sed -e "s#openoffice.orgVER#openoffice.org$(VER)#g" \
549 by Rene Engelhard
merge openofficeorg--unstable--2.0.4--patch-86; add some missing VERs; add -l10n-in and -l10n-za metapackages
1796
	    -e "s#broffice.orgVER#broffice.org$(VER)#g" \
44 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu7
1797
	    -e "s#%$(DIST)=\([^%]*\)%#, \1#g#" \
1798
	    -e "s#%[A-Za-z]*=[^%]*%##g#" \
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
1799
	    -e "s#%BUILD_DEPS%#$(strip $(BUILD_DEPS))#g" \
1022.17.336 by Rene Engelhard
move netpbm, fdupes, xml-core and libtextcat-data-utf8 to Build-Depends-Indep, fix overly long changelog line
1800
	    -e "s#%BUILD_DEPS_INDEP%#$(strip $(BUILD_DEPS_INDEP))#g" \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
1801
	    -e "s#@PYTHON_VERSION@#$(PYTHON_VERSION)#g" \
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
1802
	    < debian/control.in > debian/control
2 by Chris Halls
Imported openoffice_org-1_0_0-4
1803
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1804
ifeq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
1805
	awk '{print} /^ *$$/ {exit}' debian/control > debian/control.l10n
1295 by Chris Cheney
openoffice.org (1:3.2.1~rc2-2ubuntu1) maverick; urgency=low
1806
	mv debian/control.l10n debian/control
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1807
1808
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
1809
	      >> debian/control < debian/control.l10n.in
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1810
endif
1811
410 by Rene Engelhard
merge -l10n-en-us back into -common; move gcj classmap generation into the right conditional
1812
	for LNUM in $(filter-out en-US,$(LANGPACKISOS)) ; do \
826 by Chris Cheney
* debian/control.2.in:
1813
	    [ "$$LNUM" = en-US -a "$(PKGSOURCE)" = "openoffice.org$(VER)-l10n" ] && continue; \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1814
	    LNAME=`$(OOO_BUILD_TREE)/bin/openoffice-xlate-lang -l $$LNUM | perl -e 'print ucfirst(<STDIN>);'`; \
1815
	    LCODE=`$(OOO_BUILD_TREE)/bin/openoffice-xlate-lang -i $$LNUM | tr A-Z a-z`; \
56 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-1
1816
	    CCODE=`echo $$LCODE | sed 's/-.*//'`; \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
1817
	    case "$$LCODE" in \
1022.17.74 by Rene Engelhard
xx-IN was (except hi-IN and pa-IN moved to xx upstream...
1818
		bn|gu|pa-in|ml|or|te|ta) \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
1819
			FONT_SUGGESTS=", ttf-`echo $$LNAME | tr A-Z a-z`-fonts"; \
1820
			;; \
1022.17.74 by Rene Engelhard
xx-IN was (except hi-IN and pa-IN moved to xx upstream...
1821
		hi-in|ne|mr) \
103 by Rene Engelhard
actually add new FONT_SUGGESTS for -hi-in
1822
			FONT_SUGGESTS=", ttf-devanagari-fonts"; \
1823
			;; \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1824
		he) \
1825
			FONT_SUGGESTS=", culmus"; \
1826
			;; \
192 by Rene Engelhard
move mozilla-openoffice.org and -dbg only to control if they are built (requested by ftpmasters) and move %AMD64% substitution to the end of control:. Suggest ttf-khmeros at -km
1827
		km) \
1828
			FONT_SUGGESTS=", ttf-khmeros"; \
1829
			;; \
231 by Rene Engelhard
fix syntax error; add ar, br, lo, mk langpacks and ar/lo FONT_SUGGESTS
1830
		ar) \
1831
			FONT_SUGGESTS=", ttf-arabeyes"; \
1832
			;; \
282 by Rene Engelhard
some minor cleanups; add ttf-farsiweb FONT_SUGGESTS for fa
1833
		fa) \
1834
			FONT_SUGGESTS=", ttf-farsiweb"; \
1835
			;; \
585 by Rene Engelhard
merge openofficeorg--unstable--2.0.4--patch-102
1836
		dz) \
1837
			FONT_SUGGESTS=", ttf-dzongkha"; \
1838
			;; \
1011 by Rene Engelhard
add ttf-thai-tlwg FONT_SUGGESTS
1839
		th) \
1840
			FONT_SUGGESTS=", ttf-thai-tlwg"; \
1841
			;; \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
1842
		*) \
1843
			FONT_SUGGESTS= ;; \
1844
	    esac; \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1845
	    case "$$LCODE" in \
539.1.29 by Rene Engelhard
update some LOCALES_DEPENDS; add missing endif
1846
		rw) \
1847
			LOCALES_DEPENDS="locales (>= 2.3.6) | belocs-locales-data | locales-all (>= 2.3.6)" \
1848
			;; \
977 by Rene Engelhard
OOH680_m4
1849
		ss|ts|km|ns|tn) \
299 by Rene Engelhard
merge debian-openoffice@lists.debian.org--packages/openofficeorg--unstable--2.0.2--patch-138; allow locales-all
1850
			LOCALES_DEPENDS="locales (>= 2.3.5-12) | belocs-locales-data | locales-all" \
131 by Rene Engelhard
reenable hunspell and the binfilters; make km and sr-cs also suggest the new locales version, disable help again :/
1851
			;; \
977 by Rene Engelhard
OOH680_m4
1852
		sr) \
1853
			LOCALES_DEPENDS="locales (>= 2.3.6.ds1-5) |  belocs-locales-data | locales-all" \
1854
			;; \
1022.17.74 by Rene Engelhard
xx-IN was (except hi-IN and pa-IN moved to xx upstream...
1855
		as|or|nr) \
539.1.6 by Rene Engelhard
remove de GSI, old and obsolete; allow locales-all for -l10n-as-in, too; regenerate control
1856
			LOCALES_DEPENDS="locales (>= 2.3.6.ds1-1) | locales-all (>= 2.3.6.ds1-1)" \
539.1.3 by Rene Engelhard
enable -gcj; add LOCALES_DEPENDS="locales (>= 2.3.6.ds1-1)" for -as-in
1857
			;; \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1858
		*) \
299 by Rene Engelhard
merge debian-openoffice@lists.debian.org--packages/openofficeorg--unstable--2.0.2--patch-138; allow locales-all
1859
			LOCALES_DEPENDS="locales | belocs-locales-data | locales-all" \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1860
			;; \
1861
	    esac; \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1862
	    L10N_COMMON=; \
1863
	    if [ "$(USE_COMMON_DOCDIR)" = y ]; then \
1864
	        case "$$LCODE" in \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
1865
	           en-us) ;; \
1866
	           *) L10N_COMMON='openoffice.orgVER-l10n-common (>= $${base-version}), '; \
1867
	         esac; \
1868
	         LOCALES_DEPENDS="openoffice.org$(VER)-common (>= \$${base-version}) | language-support-translations-$$CCODE, openoffice.org$(VER)-common (<< \$${base-version}.1) | language-support-translations-$$CCODE"; \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1869
	    fi; \
5 by Chris Halls
Imported openoffice_org-1_0_0-pre1_0_1rc2
1870
	    sed -e "s|@LNAME@|$$LNAME|g" -e "s|@LCODE@|$$LCODE|g" \
56 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-1
1871
		-e "s|@CCODE@|$$CCODE|g" \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
1872
	        -e "s|@FONT_SUGGESTS@|$$FONT_SUGGESTS|g" \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1873
	        -e "s:@LOCALES_DEPENDS@:$$LOCALES_DEPENDS:g" \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1874
	        -e "s:@L10N_COMMON@:$$L10N_COMMON:g" \
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
1875
			-e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1022.17.15 by Rene Engelhard
remove hardcoded libldap2-dev builddep, move to conditional and suggest the lib
1876
		-e "s|@LDAP_LIB@|$(LDAP_LIB)|g" \
5 by Chris Halls
Imported openoffice_org-1_0_0-pre1_0_1rc2
1877
	        >> debian/control < debian/control.lang.in; \
2 by Chris Halls
Imported openoffice_org-1_0_0-4
1878
	done
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
1879
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
1880
ifneq "$(HELPISOS)" ""
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
1881
	for LNUM in $(HELPISOS) ; do \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
1882
	    LNAME=`$(OOO_BUILD_TREE)/bin/openoffice-xlate-lang -l $$LNUM | perl -e 'print ucfirst(<STDIN>);'`; \
1883
	    LCODE=`$(OOO_BUILD_TREE)/bin/openoffice-xlate-lang -i $$LNUM | tr A-Z a-z`; \
204 by Rene Engelhard
actually define CCODE in the control.help.in rule
1884
	    CCODE=`echo $$LCODE | sed 's/-.*//'`; \
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
1885
	    sed -e "s|@LNAME@|$$LNAME|g" -e "s|@LCODE@|$$LCODE|g" \
196 by Rene Engelhard
fix the l10n/help Recommends: fix
1886
		-e "s|@CCODE@|$$CCODE|g" \
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
1887
			-e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1888
	        >> debian/control < debian/control.help.in; \
1889
	done
539.1.41 by Rene Engelhard
disable mk,bg,sk help; enable hi-IN help; make -help-XY depend on -l10n-XY; change hi-INs help css to prefer Lohit Hindi
1890
	# en_US is in -common
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1891
	perl -pi -e 's|(Depends: openoffice.org$(VER)-writer \| language-support-translations-en), openoffice.org$(VER)-l10n-en-us|\1|' \
539.1.41 by Rene Engelhard
disable mk,bg,sk help; enable hi-IN help; make -help-XY depend on -l10n-XY; change hi-INs help css to prefer Lohit Hindi
1892
		debian/control
1893
	perl -pi -e 's|(Depends: openoffice.org$(VER)-writer, openoffice.org$(VER)-l10n-en-us)|\1, ttf-devanagari-fonts|' \
1894
		debian/control
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
1895
endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1896
ifeq "$(PKGSOURCE)" "openoffice.org$(VER)"
914 by Rene Engelhard
package URE as a first step to use OOo-wo-URE
1897
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1898
		>> debian/control < debian/control.ure.in
858 by Rene Engelhard
* debian/control.in:
1899
ifeq "$(ENABLE_JAVA)" "y"
1900
  ifeq "$(BUILD_JARS_NATIVE)" "y"
225 by Rene Engelhard
disable -gcj again...
1901
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1902
		>> debian/control < debian/control.gcj.in
858 by Rene Engelhard
* debian/control.in:
1903
  endif
1904
endif
1084 by Rene Engelhard
correct control.mono.in inclusion regardless of host architecture
1905
ifneq "$(OOO_MONO_ARCHS)" ""
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
1906
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1907
		>> debian/control < debian/control.mono.in
858 by Rene Engelhard
* debian/control.in:
1908
endif
1069 by Rene Engelhard
Correct control.mozilla.in inclusion regardless of host architecture (merge from Ubuntu)
1909
ifneq "$(OOO_NPSOPLUGIN_ARCHS)" ""
192 by Rene Engelhard
move mozilla-openoffice.org and -dbg only to control if they are built (requested by ftpmasters) and move %AMD64% substitution to the end of control:. Suggest ttf-khmeros at -km
1910
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1911
		>> debian/control < debian/control.mozilla.in
858 by Rene Engelhard
* debian/control.in:
1912
endif
1022.10.156 by Rene Engelhard
* debian/control.in, debian/control.ogltrans.in, debian/rules:
1913
ifneq "$(OOO_OGLTRANS_ARCHS)" ""
1914
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1915
		>> debian/control < debian/control.ogltrans.in
1916
endif
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
1917
ifeq "$(ENABLE_JAVA)" "y"
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
1918
  ifeq "$(ENABLE_MEDIAWIKI)" "y"
1919
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1920
		>> debian/control < debian/control.mediawiki.in
1921
  endif
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
1922
  ifeq "$(ENABLE_REPORTDESIGN)" "y"
901.1.76 by Rene Engelhard
update ooo-build; add ENABLE_REPORTDESIGN conditional, disable it for etch; remove libsvg conditional; rm -f debian/scripts/aotcompile.py*; -l-base//program
1923
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1924
		>> debian/control < debian/control.reportdesign.in
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
1925
  endif
901.1.76 by Rene Engelhard
update ooo-build; add ENABLE_REPORTDESIGN conditional, disable it for etch; remove libsvg conditional; rm -f debian/scripts/aotcompile.py*; -l-base//program
1926
endif
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
1927
ifeq "$(ENABLE_MINIMIZER)" "y"
1928
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1929
		>> debian/control < debian/control.minimizer.in
1930
endif
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
1931
ifeq "$(ENABLE_PRESENTER_CONSOLE)" "y"
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
1932
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1933
		>> debian/control < debian/control.presenter.in
1934
endif
1022.1.18 by Rene Engelhard
PDF Import extension...
1935
ifeq "$(ENABLE_PDFIMPORT)" "y"
1936
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1937
		>> debian/control < debian/control.pdfimport.in
1938
endif
858 by Rene Engelhard
* debian/control.in:
1939
ifeq "$(PACKAGE_TTF_OPENSYMBOL)" "y"
595 by Rene Engelhard
don't expect/install opens___.ttf in ooo-build, got removed; move ttf-opensymbol into control.fonts.in
1940
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1941
		>> debian/control < debian/control.fonts.in
858 by Rene Engelhard
* debian/control.in:
1942
endif
1943
ifeq "$(BUILD_DBG_PACKAGE)" "y"
192 by Rene Engelhard
move mozilla-openoffice.org and -dbg only to control if they are built (requested by ftpmasters) and move %AMD64% substitution to the end of control:. Suggest ttf-khmeros at -km
1944
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1945
		>> debian/control < debian/control.debug.in
858 by Rene Engelhard
* debian/control.in:
1946
endif
1947
ifeq "$(PACKAGE_SDK)" "y"
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
1948
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1949
		>> debian/control < debian/control.sdk.in
858 by Rene Engelhard
* debian/control.in:
1950
endif
1022.10.159 by Rene Engelhard
improve BUILD_KDE conditional and set BUILD_KDE=y because -kde and -keab are for KDE3
1951
ifeq "$(BUILD_KDE)" "y"
1952
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1953
		>> debian/control < debian/control.kde.in
1954
	  perl -pi -e 's/ openoffice.org$(VER)-gnome,/ openoffice.org-gnome | openoffice.org$(VER)-kde,/' debian/control
1955
endif
843 by Rene Engelhard
package PostgreSQL SDBC Driver
1956
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1957
		>> debian/control < debian/control.postgresql.in
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
1958
ifeq "$(ENABLE_MYSQLNATIVE)" "y"
1959
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1960
		>> debian/control < debian/control.mysql.in
1961
endif
1289 by Chris Cheney
openoffice.org (1:3.2.0-7ubuntu1) lucid; urgency=low
1962
endif
1963
ifeq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
1022.17.298 by Rene Engelhard
+ * debian/rules, debian/control.lenny_squeeze_transitional.in: add
1964
	sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1965
		>> debian/control < debian/control.lenny_squeeze_transitional.in
1966
	for o in as-IN gu-IN ml-IN mr-IN or-IN ta-IN te-IN; do \
1967
		n=`echo $$o | cut -d- -f1`; \
1968
		os=`echo $$o | tr A-Z a-z`; \
1022.17.305 by Rene Engelhard
add Replaces: to l10n-xx for l10n-xx-in (for safety, seems to work otherwise as the filenames change)
1969
		perl -pi -e "s/(Replaces:.*openoffice.org2-l10n-$${n}$$)/\1, openoffice.org-l10n-$${os}/" debian/control; \
1022.17.298 by Rene Engelhard
+ * debian/rules, debian/control.lenny_squeeze_transitional.in: add
1970
	done
1971
endif
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
1972
391 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-129
1973
	perl -pi -e "s,%OOO_ARCHS%,$(OOO_ARCHS),g" debian/control
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
1974
	perl -pi -e "s,%OOO_BASE_ARCHS%,$(OOO_BASE_ARCHS),g" debian/control
1975
	perl -pi -e "s,%OOO_NO_BASE_ARCHS%,$(OOO_NO_BASE_ARCHS),"g debian/control
901.1.3 by Rene Engelhard
* merge from Ubuntu:
1976
	perl -pi -e "s,%OOO_JAVA_ARCHS%,$(OOO_JAVA_ARCHS),g" debian/control
1022.1.338 by Rene Engelhard
fix -gcjs Architecture:; remove rest (not working anyway right now) of ETCH_BACKPORT stuff
1977
	perl -pi -e "s,%OOO_GCJ_ARCHS%,$(OOO_GCJ_ARCHS),g" debian/control
631 by Rene Engelhard
more mono stuff
1978
	perl -pi -e "s,%OOO_MONO_ARCHS%,$(OOO_MONO_ARCHS),g" debian/control
901.1.2 by Rene Engelhard
disable mozilla-openoffice.org for 64bit; default to -P<number of cores> for PARALLEL_BUILD=y
1979
	perl -pi -e "s,%OOO_NPSOPLUGIN_ARCHS%,$(OOO_NPSOPLUGIN_ARCHS),g" debian/control
1022.10.156 by Rene Engelhard
* debian/control.in, debian/control.ogltrans.in, debian/rules:
1980
	perl -pi -e "s,%OOO_OGLTRANS_ARCHS%,$(OOO_OGLTRANS_ARCHS),g" debian/control
1032 by Rene Engelhard
+ * debian/rules:
1981
	perl -pi -e "s,%OOO_BINFILTER_ARCHS%,$(OOO_BINFILTER_ARCHS),g" debian/control
1022.17.220 by Rene Engelhard
remove ant1.7 workaround, add build-conflicts against ant 1.8.0-{1,2,3}
1982
	perl -pi -e "s,%OOO_GCJ_JDK_ARCHS%,$(OOO_GCJ_JDK_ARCHS),g" debian/control
1022.17.293 by Rene Engelhard
GAH, I missed that armel has broken arch-dep extensions, Reintroduce %OOO_ARCH_DEP_EXTENSIONS_ARCHS%
1983
	perl -pi -e "s,%OOO_ARCH_DEP_EXTENSIONS_ARCHS%,$(OOO_ARCH_DEP_EXTENSIONS_ARCHS),g" debian/control
1095 by Rene Engelhard
fix Vcs-Svn:, make it a generated field
1984
772.1.16 by Rene Engelhard
reenable km, suggest openoffice.org-ctl-he, build-conflict against broken libxul-dev, update dict/hyph info
1985
ifeq (he,$(findstring he,$(LANGPACKISOS)))
1986
	perl -pi -e 's/openoffice.org-help-he$$/openoffice.org-help-he, openoffice.org-ctl-he/' debian/control
1987
endif
1988
1022.1.173 by Rene Engelhard
update ooo-build and add Replaces:; regenerate control
1989
	perl -pi -e 's/Package: openoffice.org$(VER)-help-en-us/Package: openoffice.org$(VER)-help-en-us\nReplaces: openoffice.org$(VER)-common (<< 1:3.0.0~dev300m28)/' debian/control
1990
1022.1.301 by Rene Engelhard
GIO fixes
1991
ifeq "$(ENABLE_GIO)" "y"
1992
	perl -pi -e 's/VFS/GIO/' debian/control
1993
	# fix up "GNOME GIO"
1994
	perl -pi -e 's/GNOME GIO/GIO/' debian/control
1995
endif
1996
1022.1.394 by Rene Engelhard
base-files got "fixed" - unti~ the next release...
1997
ifneq "$(LENNY_BACKPORT)" "y"	
1998
	perl -pi -e "s/(Build-Conflicts: .*)/\1, base-files (= 5)/" debian/control
1999
endif
2000
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
2001
ifeq "$(USE_SYSTEM_HSQLDB)" "y"
2002
	perl -pi -e "s/(Build-Conflicts: .*)/\1, libhsqldb-java (>= $(HSQLDB_TOONEWVER)~)/" debian/control
2003
endif
2004
1022.17.124 by Rene Engelhard
work around weird crash in the build by build-conflicting against libstlport4.6-dev when building with internal STLport
2005
ifneq "$(USE_SYSTEM_STLPORT)" "y"
2006
	# at least here it crashes the build in some funny way.
1022.17.125 by Rene Engelhard
we don't need to build-depend on libstlport4.6-dev when we use internal STLport :-), fix typo
2007
	perl -pi -e "s/(Build-Conflicts: .*)/\1, libstlport4.6-dev/" debian/control
1022.17.124 by Rene Engelhard
work around weird crash in the build by build-conflicting against libstlport4.6-dev when building with internal STLport
2008
endif
2009
1022.10.198 by Rene Engelhard
add support for boost-defaults; allow flex again
2010
ifeq (4.4,$(shell LANG="C" gcc --version | head -n 1 | awk '{ print $$4 }'))
2011
	perl -pi -e 's/flex \|/flex (>= 2.5.25-7) |/' debian/control
2012
endif
2013
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
2014
	python debian/scripts/joinctrl.py < debian/control > debian/control.tmp
313 by Rene Engelhard
merge Ubuntus control*in split patch, move GCJ_/GCC_VERSION/CC_PREFIX variables, use gcc/g++ 4.0 on i386
2015
	mv debian/control.tmp debian/control
2016
1022.10.78 by Rene Engelhard
remove -unbundled conflicts
2017
ifeq "$(VER)" ""
2018
	# no conflict with Suns packages as they have the version in their
2019
	# names thankfully now
2020
	perl -pi -e 's/openoffice.org-unbundled, //' debian/control
2021
endif
2022
313 by Rene Engelhard
merge Ubuntus control*in split patch, move GCJ_/GCC_VERSION/CC_PREFIX variables, use gcc/g++ 4.0 on i386
2023
	# make -l10n-fi suggest openoffice.org-spellcheck-fi to
533 by Rene Engelhard
some more Ubuntu merge (ooo-build desktops); Build-Conflict against libstlport5.0-dev (= 5.0.2-10); add README.Debian-source
2024
	# match myspell-fi and openoffice.org-soikko/-voikko
313 by Rene Engelhard
merge Ubuntus control*in split patch, move GCJ_/GCC_VERSION/CC_PREFIX variables, use gcc/g++ 4.0 on i386
2025
	perl -pi -e 's/myspell-dictionary-fi/myspell-dictionary-fi | openoffice.org-spellcheck-fi/' debian/control
1022.10.311 by Rene Engelhard
make -l10n-tr suggest openoffice.org-spellcheck-tr; update ooo-build to a version with which m19 is buildable
2026
	# similar for tr (openoffice.org-zemberek)
2027
	perl -pi -e 's/myspell-dictionary-tr/myspell-dictionary-tr | openoffice.org-spellcheck-tr/' debian/control
313 by Rene Engelhard
merge Ubuntus control*in split patch, move GCJ_/GCC_VERSION/CC_PREFIX variables, use gcc/g++ 4.0 on i386
2028
1022.10.159 by Rene Engelhard
improve BUILD_KDE conditional and set BUILD_KDE=y because -kde and -keab are for KDE3
2029
ifeq "$(BUILD_KDE)" "y"
2030
	perl -pi -e 's/GConf backend$$/GConf backend\n  * openoffice.org$(VER)-kde: KDE UI Plugin and KDE File Picker support/' debian/control
2031
endif
2032
1022.17.15 by Rene Engelhard
remove hardcoded libldap2-dev builddep, move to conditional and suggest the lib
2033
ifeq "$(ENABLE_LDAP)" "y"
2034
	perl -pi -e 's/paperconf$$/paperconf\n  * $(LDAP_LIB): LDAP client library; needed for OOo getting its profiles\n    from LDAP/' debian/control
2035
endif
2036
1022.10.354 by Rene Engelhard
fix lang= again *sigh*; use new external dict dirs
2037
ifneq "$(DICT_DIR)" "/usr/share/hunspell"
1256 by Chris Cheney
openoffice.org (1:3.1.1-4ubuntu1) karmic; urgency=low
2038
	perl -pi -e 's/^Breaks:.*myspell.*\n//' debian/control
1022.10.354 by Rene Engelhard
fix lang= again *sigh*; use new external dict dirs
2039
endif
2040
2 by Chris Halls
Imported openoffice_org-1_0_0-4
2041
.DELETE_ON_ERROR: debian/control
2042
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
2043
build: build-arch build-indep
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2044
build-arch: $(STAMP_DIR)/build
2045
build-indep: $(STAMP_DIR)/build
20 by Chris Halls
Imported openoffice_org-1_0_3-1
2046
1 by Chris Halls
Import from old cvs.debian.org
2047
# All 'important' targets have 2 lines.  The one that is run by
2048
# dpkg-buildpackage or the user, and the one that does the actual work.  This
2049
# indirection is needed so that the 'stamp' files that signify when a rule is
2050
# done can be located in a separate 'stampdir'.  Recall that make has no way to
2051
# know when a goal has been met for a phony target (like "build" or "install").
2052
#
2053
# At the end of each stampdir target, be sure to run the command 'touch $@'
2054
# so that the target will not be run again.  Removing the file will make
2055
# make run the target over.
2056
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2057
configure: $(OOO_BUILD_TREE)/config.status
1022.17.216 by Rene Engelhard
actually we need to add $(QUILT_STAMPFN) to config.status instead of build-* in case we patch (related to) configure
2058
ifeq "$(DEBSRC_VERSION)" "1.0"
2059
$(OOO_BUILD_TREE)/config.status: $(QUILT_STAMPFN) $(OOO_BUILD_TREE)/configure
2060
else
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2061
$(OOO_BUILD_TREE)/config.status: $(OOO_BUILD_TREE)/configure
1022.17.216 by Rene Engelhard
actually we need to add $(QUILT_STAMPFN) to config.status instead of build-* in case we patch (related to) configure
2062
endif
1 by Chris Halls
Import from old cvs.debian.org
2063
	dh_testdir
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
2064
2065
	# Make sure needed scripts are executable
2066
	set -e;\
1022.1.2 by Rene Engelhard
overrides.lintian -> lintian-overrides and use dh_lintian
2067
	for FILE in debian/scripts/move-if-change \
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
2068
		    debian/scripts/cleandupes \
1022.24.12 by Rene Engelhard
fix_image_rgb -> fix_bmp_rgb
2069
		    debian/scripts/fix_bmp_rgb \
1229 by Chris Cheney
openoffice.org (1:3.1.1~rc1-1ubuntu1) karmic; urgency=low
2070
		    debian/scripts/get_libebook_dep.sh \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2071
		    $(OOO_BUILD_TREE)/configure \
2072
		    $(OOO_BUILD_TREE)/bin/[a-z]* \
2073
		    $(OOO_BUILD_TREE)/bin/piece/[a-z]* ;\
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
2074
	do \
2075
	  chmod 755 $$FILE ;\
2076
	done
1034 by Chris Cheney
debian/rules: clean up whitespace
2077
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2078
	mkdir -p $(STAMP_DIR)
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
2079
ifeq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
2080
  ifeq "$(DIST)" "Ubuntu"
1279 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu1) lucid; urgency=low
2081
	cp -p $(OOO_BUILD_TREE)/distro-configs/$(PATCHSET).conf.in $(OOO_BUILD_TREE)/distro-configs/UbuntuL10n.conf.in
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
2082
  endif
2083
endif
2084
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2085
ifneq "$(DEBSRC_VERSION)" "3.0"
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
2086
	# uudecode files, omit GSI files
2087
	set -e; \
2088
	for uu in \
2089
	  `find . -name *.uu` \
2090
	  ; do \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2091
	 case "$$uu" in $(OOO_BUILD_TREE)/src/GSI*) continue ; esac ; \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
2092
	 orig="`echo "$$uu" |sed -e 's#.uu$$##'`" ;\
2093
	 if [ ! -s $$orig ]; then \
2094
	  uudecode -o $$orig $$uu ; \
2095
	  touch -r $$uu $$orig ; \
2096
	 fi ; \
500 by Rene Engelhard
add broffice.org package; enable amd64; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.4--patch-15, add persons to changelog
2097
	done
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2098
endif
2099
2100
	cp -a ext-sources-$(OOO_BUILD_TREE)/* $(OOO_BUILD_TREE)/src
1022.24.8 by Rene Engelhard
move from ooo-build/src to sources/
2101
	cp -a sources/* $(OOO_BUILD_TREE)/src
500 by Rene Engelhard
add broffice.org package; enable amd64; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.4--patch-15, add persons to changelog
2102
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2103
ifneq ($(GCC_VERSION),)
819 by Chris Cheney
indentation cleanups
2104
  ifneq ($(GCC_VERSION),snapshot)
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2105
	# create links for gcc and g++ (and gij and gcj), ooo-build does not
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
2106
	# honour overriding CC and CXX and we need to use gcc/g++ 4.0 or /
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2107
	# ant.mk wants gcj at the moment...
2108
	mkdir -p $(CURDIR)/debian/usr/bin
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
2109
	ln -sf /usr/bin/$(CC_PREFIX)gcc-$(GCC_VERSION) $(CURDIR)/debian/usr/bin/gcc
2110
	ln -sf /usr/bin/$(CC_PREFIX)g++-$(GCC_VERSION) $(CURDIR)/debian/usr/bin/g++
1022.10.188 by Rene Engelhard
- fix GCC_VERSION handling to work again with OOo build calling
2111
	ln -sf /usr/bin/$(CC_PREFIX)gcc-$(GCC_VERSION) $(CURDIR)/debian/usr/bin/$(CC_PREFIX)gcc
2112
	ln -sf /usr/bin/$(CC_PREFIX)g++-$(GCC_VERSION) $(CURDIR)/debian/usr/bin/$(CC_PREFIX)g++
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
2113
	#ln -sf /usr/bin/$(CC_PREFIX)gcj-$(GCC_VERSION) $(CURDIR)/debian/usr/bin/gcj
2114
	#ln -sf /usr/bin/gij-$(GCC_VERSION) $(CURDIR)/debian/usr/bin/gij
819 by Chris Cheney
indentation cleanups
2115
  else
2116
    ifneq "$(CC_PREFIX)" ""
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
2117
	mkdir -p $(CURDIR)/debian/usr/bin
1022.1.264 by Rene Engelhard
-2
2118
	ln -sf /usr/lib/gcc-snapshot/bin/$(CC_PREFIX)gcc $(CURDIR)/debian/usr/bin/gcc
2119
	ln -sf /usr/lib/gcc-snapshot/bin/$(CC_PREFIX)g++ $(CURDIR)/debian/usr/bin/g++
2120
	ln -sf /usr/lib/gcc-snapshot/bin/$(CC_PREFIX)gcj $(CURDIR)/debian/usr/bin/gcj
2121
	ln -sf /usr/lib/gcc-snapshot/bin/$(CC_PREFIX)gij $(CURDIR)/debian/usr/bin/gij
819 by Chris Cheney
indentation cleanups
2122
    endif
2123
  endif
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2124
endif
2125
1022.1.219 by Rene Engelhard
add symlink for moc
2126
ifeq "$(BUILD_KDE)" "y"
2127
	# be sure we use the right moc, it's an alternative and can point
2128
	# to either Qt3 or Qt4s moc.
2129
	mkdir -p $(CURDIR)/debian/usr/bin
1022.1.264 by Rene Engelhard
-2
2130
	ln -sf /usr/bin/moc-qt$(KDE_VER) $(CURDIR)/debian/usr/bin/moc
1022.1.219 by Rene Engelhard
add symlink for moc
2131
endif
2132
901.2.10 by Rene Engelhard
- update ooo-build
2133
ifeq "$(USE_STLPORT)" "y"
2134
  ifeq "$(USE_SYSTEM_STLPORT)" "y"
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
2135
	# stlport home
331 by Rene Engelhard
adapt for new stlport build flag; add stlport5 conditional
2136
	if [ ! -d stlport ]; then \
2137
		mkdir -p stlport; \
2138
		ln -sf /usr/include/stlport stlport/stlport; \
2139
		ln -sf /usr/lib stlport/lib; \
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
2140
	fi
901.2.10 by Rene Engelhard
- update ooo-build
2141
  endif
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
2142
endif
2143
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
2144
ifneq "$(BUILD_ONLY_EN_US)" "y"
819 by Chris Cheney
indentation cleanups
2145
  ifneq "$(LANGPACKISOS)" "en-US"
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2146
	# copy and extract extra GSIs 
1022.24.33 by Rene Engelhard
add updated localizations (at least those few available yet on ftp.linux.cz, reenable languages
2147
	cp translation-updates-*/GSI*.sdf.* $(OOO_BUILD_TREE)/src
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2148
	find $(OOO_BUILD_TREE)/src -name "*.sdf.bz2" -exec bunzip2 -k \{\} \;
2149
	for i in `find $(OOO_BUILD_TREE)/src/*.sdf.gz`; do gunzip -dc "$$i" > \
2150
		$(OOO_BUILD_TREE)/src/`basename $$i .gz`; done
882 by Rene Engelhard
apparently the OOO_LICENSE removal is still needed for lv and sh-YU/sr-CS
2151
	# work around broken stuff in the GSI breaking the build in svx
2152
	for iso in lv sh-YU sr-CS; do \
2153
	  case " $(LANGPACKISOS) " in *\ $$iso\ *) ;; *) continue; esac; \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2154
	  [ -f $(OOO_BUILD_TREE)/src/GSI_$$iso.sdf ] || continue; \
882 by Rene Engelhard
apparently the OOO_LICENSE removal is still needed for lv and sh-YU/sr-CS
2155
	  TMP=`mktemp -q`; \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2156
	  grep -v OOO_LICENSE $(OOO_BUILD_TREE)/src/GSI_$$iso.sdf \
2157
	    > $$TMP && mv $$TMP $(OOO_BUILD_TREE)/src/GSI_$$iso.sdf; \
882 by Rene Engelhard
apparently the OOO_LICENSE removal is still needed for lv and sh-YU/sr-CS
2158
	done
859 by Rene Engelhard
m2; make opennoffice.org depend on openoffice.org-officebean; remove RID_STR_EXTENSION_NOT_PRESENT; bump HELP_L10N_VIRTUAL_VERSION to 2.3; make -qa-tools conflict against openoffice.org-core (<< 1:2.3.0~oog680m2); update GSIs; mention gdk hang fix
2159
	# we change the message, and those translations therefore don't match anymore.
2160
	for iso in $(LANGPACKISOS); do \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2161
	  [ -f $(OOO_BUILD_TREE)/src/GSI_$$iso.sdf ] || continue; \
881 by Rene Engelhard
missing ;
2162
	  if [ "$$iso" = "ku" ]; then continue; fi; \
859 by Rene Engelhard
m2; make opennoffice.org depend on openoffice.org-officebean; remove RID_STR_EXTENSION_NOT_PRESENT; bump HELP_L10N_VIRTUAL_VERSION to 2.3; make -qa-tools conflict against openoffice.org-core (<< 1:2.3.0~oog680m2); update GSIs; mention gdk hang fix
2163
	  TMP=`mktemp -q`; \
1022.17.344 by Rene Engelhard
don't remove translation we should keep (dbumiscres.src)
2164
	  grep -v ExtensionNotPresent\.src.*RID_STR_EXTENSION_NOT_PRESENT $(OOO_BUILD_TREE)/src/GSI_$$iso.sdf \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2165
	    > $$TMP && mv $$TMP $(OOO_BUILD_TREE)/src/GSI_$$iso.sdf; \
859 by Rene Engelhard
m2; make opennoffice.org depend on openoffice.org-officebean; remove RID_STR_EXTENSION_NOT_PRESENT; bump HELP_L10N_VIRTUAL_VERSION to 2.3; make -qa-tools conflict against openoffice.org-core (<< 1:2.3.0~oog680m2); update GSIs; mention gdk hang fix
2166
	done
819 by Chris Cheney
indentation cleanups
2167
    ifeq (he,$(findstring he,$(LANGPACKISOS)))
772.1.21 by Rene Engelhard
remove bogus TKOS_BUILD_DATE
2168
	# TKOS_BUILD_DATE is bogus, too
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2169
	if [ -f $(OOO_BUILD_TREE)/src/GSI_he.sdf ]; then \
819 by Chris Cheney
indentation cleanups
2170
	 TMP=`mktemp -q`; \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2171
	 sed -e "s/TKOS_BUILD_DATE//g" < $(OOO_BUILD_TREE)/src/GSI_he.sdf \
2172
	   > $$TMP && mv $$TMP $(OOO_BUILD_TREE)/src/GSI_he.sdf ; \
819 by Chris Cheney
indentation cleanups
2173
	fi
2174
    endif
1022.10.348 by Rene Engelhard
update ooo-build and close #548767. fix debuild -i. Fix da GSI and close #548608
2175
    ifeq (da,$(findstring da,$(LANGPACKISOS)))
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2176
	if [ -f $(OOO_BUILD_TREE)/src/GSI_da.sdf ]; then \
2177
	  perl -pi -e 's/\s\(.*på engelsk\)//' $(OOO_BUILD_TREE)/src/GSI_da.sdf; \
1022.10.348 by Rene Engelhard
update ooo-build and close #548767. fix debuild -i. Fix da GSI and close #548608
2178
	fi
2179
    endif
1022.17.319 by Rene Engelhard
fix es translation for SC_OPCODE_SUBSTITUTE, thanks Margarita Manterola
2180
    ifeq (es,$(findstring es,$(LANGPACKISOS)))
2181
	if [ -f $(OOO_BUILD_TREE)/src/GSI_es.sdf ]; then \
1022.17.320 by Rene Engelhard
typo
2182
	  perl -pi -e 's/(.*SC_OPCODE_SUBSTITUTE.*)REEMPLAZAR(.*)/\1SUSTITUIR\2/' $(OOO_BUILD_TREE)/src/GSI_es.sdf; \
1022.17.319 by Rene Engelhard
fix es translation for SC_OPCODE_SUBSTITUTE, thanks Margarita Manterola
2183
	fi
2184
    endif
819 by Chris Cheney
indentation cleanups
2185
  endif
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
2186
endif
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
2187
89 by Chris Halls
debian/rules fixes (path, rerun target, non-debuild problems)
2188
	# Make convenience link
99 by Rene Engelhard
merge 2.0.0-4 and 2.0.0-5 since the didn't get over with baz branch...
2189
	if [ ! -L build ]; then ln -s $(SOURCE_TREE) build ; fi
89 by Chris Halls
debian/rules fixes (path, rerun target, non-debuild problems)
2190
18 by Chris Halls
Imported openoffice_org-1_0_2-2
2191
	# Make sure we have /proc mounted - otherwise idlc will fail later.
2192
	test -r /proc/version
773 by Rene Engelhard
start 2.3 work (m216), grossly incomplete yet
2193
2194
	# hrmpf. Empty in ooo-build and patch does not give them to us but
2195
	# configure need them. Create them...
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2196
	touch $(OOO_BUILD_TREE)/distro-configs/Win32.conf.in
2197
	touch $(OOO_BUILD_TREE)/distro-configs/Solaris.conf.in
18 by Chris Halls
Imported openoffice_org-1_0_2-2
2198
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2199
	cd $(OOO_BUILD_TREE) ; \
2200
		PATH=$(BUILD_PATH) LD_LIBRARY_PATH=$(BUILD_LD_LIBRARY_PATH) ../$(OOO_BUILD_TREE)/configure $(CONFIGURE_FLAGS)
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
2201
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2202
	touch $@
2203
2204
build: $(STAMP_DIR)/build
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2205
$(STAMP_DIR)/build: $(OOO_BUILD_TREE)/config.status
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2206
	dh_testdir
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
2207
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
2208
ifeq "$(BUILD_KDE)" "n"
2209
	# hack to tell we want crystal icons nevertheless and they should be
2210
	# extracted...
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2211
	if ! grep -q crystal $(OOO_BUILD_TREE)/bin/setup; then \
2212
		cp $(OOO_BUILD_TREE)/bin/setup $(OOO_BUILD_TREE)/bin/setup.bak && \
2213
		cat $(OOO_BUILD_TREE)/bin/setup.bak \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
2214
			| sed -e s/\'industrial/\'industrial\ crystal/ \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2215
			> $(OOO_BUILD_TREE)/bin/setup && rm $(OOO_BUILD_TREE)/bin/setup.bak; \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
2216
	fi
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
2217
endif
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
2218
1022.10.487 by Rene Engelhard
build without VERBOSE=true (normal) mode on all buildds now in a try to mitigate buildd log size
2219
ifeq (buildd,$(shell whoami))
1303 by Matthias Klose
* debian/rules: Always be verbose, even on the buildds (apparently dropped
2220
	cd $(OOO_BUILD_TREE) ; PATH=$(BUILD_PATH) LD_LIBRARY_PATH=$(BUILD_LD_LIBRARY_PATH) DEFAULT_TO_ENGLISH_FOR_PACKING=1 VERBOSE=true ARCH_FLAGS=$(ARCH_FLAGS) TMP=/tmp $(MAKE)
1022.10.264 by Rene Engelhard
don't set VERBOSE=true on ia64/buildd
2221
else
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2222
	cd $(OOO_BUILD_TREE) ; PATH=$(BUILD_PATH) LD_LIBRARY_PATH=$(BUILD_LD_LIBRARY_PATH) DEFAULT_TO_ENGLISH_FOR_PACKING=1 VERBOSE=true ARCH_FLAGS=$(ARCH_FLAGS) TMP=/tmp $(MAKE)
1022.10.264 by Rene Engelhard
don't set VERBOSE=true on ia64/buildd
2223
endif
949 by Rene Engelhard
reenable languages, qadevOOo, SDK. some lintian fixes
2224
946 by Rene Engelhard
merge; one more OGLTrans installation fix; depend on openoffice.org-writer2latex; move fakeroot hack up; ignore unit tests failures; add arm; update ooo-build and update to m239
2225
	# apparently setting this here globally doesn't work, so hack around.
2226
	# If we don't do this we get loads of harmless, but log-bloating
2227
	# warnings
1022.24.46 by Rene Engelhard
add /usr/lib/libfakeroots and fix environment changing, though that doesn't help the installer yet - add temporary(?) hack to fix it; it sees the fakeroot ERRORs and fails
2228
	if ! grep fakeroot $(OOO_BUILD_TREE)/bin/setup; then \
2229
		perl -pi -e 's,LD_LIBRARY_PATH=\"(.*)\",LD_LIBRARY_PATH=\"/usr/lib/libfakeroot:\1\",' $(OOO_BUILD_TREE)/bin/setup; \
946 by Rene Engelhard
merge; one more OGLTrans installation fix; depend on openoffice.org-writer2latex; move fakeroot hack up; ignore unit tests failures; add arm; update ooo-build and update to m239
2230
	fi
921 by Rene Engelhard
PCVSLib
2231
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2232
	# DPKG is only set on with-EPM build what we don't do and the menu stuff
152 by Rene Engelhard
initial 2.0.2 stuff
2233
	# is only built wenn DPKG is set.. Same with PKGFORMAT.
382 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-108
2234
	cd $(SOURCE_TREE)/sysui; \
2235
		. $(CURDIR)/$(SOURCE_TREE)/*.sh; \
388 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-127; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.3--patch-16
2236
		PATH=$(BUILD_PATH) DPKG="dpkg" PKGFORMAT="deb" NO_PKG_MANGLE=go-away \
2237
		../solenv/bin/build.pl && ../solenv/bin/deliver.pl
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
2238
889 by Rene Engelhard
-1
2239
ifneq (nocheck,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
1022.24.70 by Rene Engelhard
- start a next try to run the smoketest after the build. move the tests in
2240
	$(CURDIR)/debian/rules test
2241
endif
2242
2243
	touch $@
2244
2245
test: 
885 by Rene Engelhard
update ooo-build
2246
ifeq "$(RUN_UNIT_TESTS)" "y"
2247
	# build/run unit tests
946 by Rene Engelhard
merge; one more OGLTrans installation fix; depend on openoffice.org-writer2latex; move fakeroot hack up; ignore unit tests failures; add arm; update ooo-build and update to m239
2248
	-cd $(SOURCE_TREE)/instsetoo_native; \
885 by Rene Engelhard
update ooo-build
2249
		. $(CURDIR)/$(SOURCE_TREE)/*.sh; \
2250
		PATH=$(BUILD_PATH) DPKG="dpkg" PKGFORMAT="deb" NO_PKG_MANGLE=go-away \
2251
		../solenv/bin/build.pl --ignore --all check
2252
endif
605 by Rene Engelhard
"build" in smoketestoo_native
2253
ifeq "$(RUN_SMOKETEST)" "y"
2254
	# smoketest
1022.24.98 by Rene Engelhard
fix smoketest (on armel)
2255
ifeq "$(ARCH)" "armel"
2256
	cd $(SOURCE_TREE)/smoketestoo_native && \
2257
		patch -p1 < $(CURDIR)/debian/smoketest/patches/smoketest-disable-db-insert-delete-seek-tests.diff
2258
endif
605 by Rene Engelhard
"build" in smoketestoo_native
2259
	cd $(SOURCE_TREE)/smoketestoo_native && \
2260
		. $(CURDIR)/$(SOURCE_TREE)/*.sh; \
754 by Rene Engelhard
mention --disable-access fix / remove BUILD_MDBTOOLS conditional, don't use /var/lib/dpkg/status directly, improve test target
2261
		export PATH=$(BUILD_PATH); \
1022.24.110 by Rene Engelhard
smoketest fixes
2262
		export TMPDIR=$(CURDIR)/debian/smoketest; \
1022.24.84 by Rene Engelhard
OpenJDK crashes on runtime on armel, run the tests using gcj, still breaks though so disable smoketest on armel for now
2263
		export JAVA_HOME=$(TEST_JAVA_HOME); \
1022.24.70 by Rene Engelhard
- start a next try to run the smoketest after the build. move the tests in
2264
		SAL_USE_VCLPLUGIN="svp" ../solenv/bin/build.pl
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
2265
	# doesn't get cleaned up.. (at least the dirs, the contents are gone)
2266
	cd $(CURDIR)/debian/smoketest && \
2267
	find . -noleaf -maxdepth 1 ! -name "patches" ! -name "." -exec rm -rf {} \;
1022.24.98 by Rene Engelhard
fix smoketest (on armel)
2268
ifeq "$(ARCH)" "armel"
2269
	cd $(SOURCE_TREE)/smoketestoo_native && \
2270
		patch -p1 -R < $(CURDIR)/debian/smoketest/patches/smoketest-disable-db-insert-delete-seek-tests.diff
2271
endif
755 by Rene Engelhard
honour nocheck; use bzr update; remove some ETCH_BACKPORT stuff and replace it by USE_LIBCURL4 and USE_SHARED_LPSOLVE
2272
endif
1022.1.273 by Rene Engelhard
typo
2273
ifeq "$(ENABLE_JAVA)" "y"
1022.1.272 by Rene Engelhard
add option to run API tests
2274
  ifeq "$(RUN_API_TESTS)" "y"
2275
	# API tests
1022.17.202 by Rene Engelhard
add missing $
2276
	cd $(SOURCE_TREE) && \
1022.1.272 by Rene Engelhard
add option to run API tests
2277
		export PATH=$(BUILD_PATH); \
2278
		. $(CURDIR)/$(SOURCE_TREE)/*.sh; \
2279
		solenv/bin/cwscheckapi -o -a
2280
  endif
2281
endif
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2282
2283
install: $(STAMP_DIR)/install
1022.24.70 by Rene Engelhard
- start a next try to run the smoketest after the build. move the tests in
2284
$(STAMP_DIR)/install: $(STAMP_DIR)/build
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2285
	dh_testdir
2286
	dh_testroot
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
2287
1022.10.51 by Rene Engelhard
start migrating to dh_install
2288
	if [ -x /usr/bin/dh_prep ]; then dh_prep; else dh_clean -k; fi
1022.10.73 by Rene Engelhard
don't remove .links
2289
	rm -f debian/*.install debian/*.dirs
1022.10.51 by Rene Engelhard
start migrating to dh_install
2290
2291
	# remove those for safety in case the languages might change on
2292
	# testbuilds. then the /*/ in dh_installdocs in binary-* won't work
2293
	# anymore (different dirs)
2294
	rm -rf $(SOURCE_TREE)/instsetoo_native/util/OpenOffice
2295
2296
	# install OpenOffice.org.
1022.24.71 by Rene Engelhard
explicitly set LD_PRELOAD
2297
	# somehow in the installer LD_LIBRARY_PATH doesn't contain
2298
	# /usr/lib/libfakeroot anymore, causiong loads of ERROR:'s from
2299
	# ld.so. Set LD_PRELOAD to the full path here manually.
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2300
	cd $(OOO_BUILD_TREE)/; PATH=$(BUILD_PATH) \
1022.24.46 by Rene Engelhard
add /usr/lib/libfakeroots and fix environment changing, though that doesn't help the installer yet - add temporary(?) hack to fix it; it sees the fakeroot ERRORs and fails
2301
		 LD_LIBRARY_PATH="/usr/lib/libfakeroot:$(BUILD_LD_LIBRARY_PATH)" \
1022.24.71 by Rene Engelhard
explicitly set LD_PRELOAD
2302
		 LD_PRELOAD=/usr/lib/libfakeroot/libfakeroot-$(shell update-alternatives --query fakeroot | grep Value: | cut -d"-" -f2).so \
1022.10.51 by Rene Engelhard
start migrating to dh_install
2303
		 DESTDIR=$(CURDIR)/debian/tmp $(MAKE) install
2304
2305
	# prepare install/dir files for dh
2306
	for i in `cd $(CURDIR)/debian/tmp/pkg; ls -1 | xargs`; do \
2307
		echo "$${i}/usr/* usr" > debian/$$i.install; \
2308
		if [ "$$i" = "openoffice.org-common" ]; then \
2309
			echo "$${i}/etc/* etc" >> debian/$$i.install; \
2310
		fi; \
2311
		(cd debian/tmp/pkg/$$i; find . -type d | sed -e "s,\./,,") \
2312
			> debian/$$i.dirs; \
525 by Rene Engelhard
mention fixed mozilla profile detection patch; reorder Suggests; some (minor) Ubuntu merge
2313
	done
1022.10.51 by Rene Engelhard
start migrating to dh_install
2314
2315
	# the english resources should be in -common
2316
	cat debian/openoffice.org-l10n-en-US.dirs >> debian/openoffice.org-common.dirs
2317
	cat debian/openoffice.org-l10n-en-US.install >> debian/openoffice.org-common.install
2318
	rm -f debian/openoffice.org-l10n-en-US.dirs debian/openoffice.org-l10n-en-US.install
2319
2320
	# fixup case (-l10n-pt-BR -> l10n-pt-br etc.)
2321
	for iso in $(ISOS); do \
2322
		pkgiso=`echo $$iso | tr A-Z a-z`; \
2323
		if [ "$$iso" != "$$pkgiso" ]; then \
1022.17.143 by Rene Engelhard
also add if -e checks for lowercasing of l10ns
2324
			if [ "$$iso" != "en-US" -a \
2325
			  -e debian/openoffice.org-l10n-$$iso.dirs -a \
2326
			  -e debian/openoffice.org-l10n-$$iso.install ]; then \
1022.10.51 by Rene Engelhard
start migrating to dh_install
2327
				mv debian/openoffice.org-l10n-$$iso.dirs \
2328
					debian/openoffice.org-l10n-$$pkgiso.dirs; \
2329
				mv debian/openoffice.org-l10n-$$iso.install \
2330
					debian/openoffice.org-l10n-$$pkgiso.install; \
125 by Rene Engelhard
further help fixes/cleanup and use pkg/openoffice.org-help-* created by package-ooo like the langpacks
2331
			fi; \
1022.17.143 by Rene Engelhard
also add if -e checks for lowercasing of l10ns
2332
			if [ -e debian/openoffice.org-help-$$iso.dirs -a \
1022.17.145 by Rene Engelhard
fix thinko: pkgiso -> iso
2333
			  -e debian/openoffice.org-help-$$iso.install ]; then \
1022.17.143 by Rene Engelhard
also add if -e checks for lowercasing of l10ns
2334
				mv debian/openoffice.org-help-$$iso.dirs \
2335
					debian/openoffice.org-help-$$pkgiso.dirs; \
2336
				mv debian/openoffice.org-help-$$iso.install \
2337
					debian/openoffice.org-help-$$pkgiso.install; \
2338
			fi; \
1022.10.51 by Rene Engelhard
start migrating to dh_install
2339
		fi; \
2340
	done
2341
2342
	# fix up still sneaking in ./. They break dh_install (it installs
2343
	# but wrongly complains about it as not-installed files)
2344
	perl -pi -e 's,\./,,' debian/openoffice.org$(VER)-common.install
2345
	perl -pi -e 's,\./,,' debian/ure.install
2346
2347
ifneq "$(HELPISOS)" ""
2348
	# remove non-packaged localized help. This a) saves space 
2349
	# and b) we need this for the following dh_install as there will be
2350
	# no .install files created and dh_install will warn/fail due
2351
	# to non-installed files.
2352
	for iso in $(filter-out en-US,$(LANGPACKISOS)); do \
2353
		if ! `echo $(HELPISOS) | grep -q $$iso`; then \
2354
			pkgiso=`echo $$iso | tr A-Z a-z`; \
1022.10.112 by Rene Engelhard
fix install
2355
			rm -rf debian/tmp/pkg/openoffice.org-help-$$iso; \
2356
			rm -f debian/openoffice.org-help-$$pkgiso.dirs; \
2357
			rm -f debian/openoffice.org-help-$$pkgiso.install; \
1022.10.51 by Rene Engelhard
start migrating to dh_install
2358
		fi; \
2359
	done
1216 by Chris Cheney
openoffice.org (1:3.1.0~rc2-1ubuntu1) karmic; urgency=low
2360
else ifeq "$(PKGSOURCE)" "openoffice.org$(VER)"
2361
	rm -rf debian/tmp/pkg/openoffice.org-help-en-US
1022.10.51 by Rene Engelhard
start migrating to dh_install
2362
endif
2363
1216 by Chris Cheney
openoffice.org (1:3.1.0~rc2-1ubuntu1) karmic; urgency=low
2364
	install -m755 debian/ubuntu/ooo87965.execute.sh debian/tmp/pkg/openoffice.org-common/$(OODIR)/program
2365
1022.10.133 by Rene Engelhard
merge; Re-work each package synopsis to avoid self-reference (Ben Finney)
2366
	# FIXME: Fix in ooo-build
1022.10.51 by Rene Engelhard
start migrating to dh_install
2367
	rm -rf debian/tmp/pkg/openoffice.org-qa-tools
2368
1022.10.138 by Rene Engelhard
readd lost dh_install*
2369
	dh_installdirs -A
1220 by Chris Cheney
Fix issue with building openoffice.org-l10n.
2370
ifeq "$(PKGSOURCE)" "openoffice.org$(VER)"
2371
	dh_install -A --sourcedir=debian/tmp/pkg --fail-missing
2372
else
2373
	dh_install -A --sourcedir=debian/tmp/pkg
2374
endif
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
2375
1022.10.51 by Rene Engelhard
start migrating to dh_install
2376
	rm -rf debian/tmp/pkg
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
2377
1022.17.44 by Rene Engelhard
- move help into /usr/share (see #218067)
2378
	# move help to /usr/share
2379
	for iso in $(HELPISOS); do \
2380
		pkgiso=`echo $$iso | tr A-Z a-z`; \
1022.17.135 by Rene Engelhard
check actual existance of help dirs (debian/oo.o-help-xx/usr) to work around build failure on the buildds
2381
		if [ -e $(PKGDIR)-help-$$pkgiso/usr ]; then \
2382
			mv $(PKGDIR)-help-$$pkgiso/usr/lib \
2383
				$(PKGDIR)-help-$$pkgiso/usr/share; \
2384
		fi; \
1022.17.44 by Rene Engelhard
- move help into /usr/share (see #218067)
2385
	done
2386
1293 by Chris Cheney
openoffice.org (1:3.2.0-7ubuntu4) lucid; urgency=low
2387
	# add registered-components dir
2388
	mkdir -p $(PKGDIR)-core/$(OOBASISDIR)/registered-components
2389
1220 by Chris Cheney
Fix issue with building openoffice.org-l10n.
2390
ifeq "$(PKGSOURCE)" "openoffice.org$(VER)"
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2391
ifeq "$(ENABLE_JAVA)" "y"
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
2392
	# move officebean.jar into -officebean (They will be moved out of -core
2393
	# in the install-arch target). Do the /usr/share/java move here already
1022.10.51 by Rene Engelhard
start migrating to dh_install
2394
	mkdir -p $(PKGDIR)-core/usr/share/java/$(OODIRNAME); \
2395
	mv $(PKGDIR)-common/$(OODIR)/program/classes/officebean.jar \
2396
		$(PKGDIR)-core/usr/share/java/$(OODIRNAME)
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2397
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
2398
  ifeq "$(PACKAGE_BASE)" "y"
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
2399
	# move sdbc_hsqldb.jar into -base (do the move
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
2400
	# to /usr/share/java here directly, we do it for the "rest"
2401
	# later
1022.10.51 by Rene Engelhard
start migrating to dh_install
2402
	mkdir -p $(PKGDIR)-base/usr/share/java/$(OODIRNAME); \
2403
	mkdir -p $(PKGDIR)-base/$(OODIR)/program/classes; \
2404
	mv $(PKGDIR)-common/$(OODIR)/program/classes/sdbc_hsqldb.jar \
2405
		$(PKGDIR)-base/usr/share/java/$(OODIRNAME); \
2406
	ln -s /usr/share/java/$(OODIRNAME)/sdbc_hsqldb.jar \
2407
		$(PKGDIR)-base/$(OODIR)/program/classes/sdbc_hsqldb.jar
2408
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
2409
    ifneq "$(USE_SYSTEM_HSQLDB)" "y"
1159.1.8 by Rene Engelhard
fix hsqldbjar location in internal hsqldb case
2410
	# we need this in -base. Otherwise we get unwanted package differences
2411
	# in the unstable version and backports which might use internal hsqldb
1022.10.51 by Rene Engelhard
start migrating to dh_install
2412
	mkdir -p $(PKGDIR)-base/$(OODIR)/program/classes
2413
	mv $(PKGDIR)-common/$(OODIR)/program/classes/hsqldb.jar \
2414
		$(PKGDIR)-base/$(OODIR)/program/classes
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
2415
    endif
1022.24.108 by Rene Engelhard
explicitely rm sdbc_hsqldb.jar when we don't package -base
2416
  else
2417
	# remove sdbc_hsqldb.jar. otherwise ends up in -java-common
2418
	rm -f $(PKGDIR)-common/$(OODIR)/program/classes/sdbc_hsqldb.jar
1159.1.8 by Rene Engelhard
fix hsqldbjar location in internal hsqldb case
2419
  endif
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2420
endif
2421
465 by Rene Engelhard
move testtoolrc into -qa-tools
2422
ifeq "$(ENABLE_MONO)" "y"
1022.10.51 by Rene Engelhard
start migrating to dh_install
2423
	mkdir -p $(PKGDIR)-core/$(OOBRANDDIR)/ure/lib; \
2424
	mv $(PKGDIR)-common/$(OOBRANDDIR)/ure/lib/cli_uno_bridge.dll*  \
2425
		$(PKGDIR)-core/$(OOBRANDDIR)/ure/lib
1022.1.181 by Rene Engelhard
update mono install and reenable the mono packages
2426
	for i in `dh_listpackages | grep libuno-cli`; do \
2427
		if echo "$$i" | grep -q oootypes; then p=openoffice.org-common; d=$(OODIR)/program; \
2428
		else p=ure; d=$(OOBRANDDIR)/ure/lib; fi; \
1022.10.51 by Rene Engelhard
start migrating to dh_install
2429
		rm -rf debian/$$i && mkdir -p -m755 debian/$$i/usr/lib/cli/uno-`echo $$i | perl -pi -e 's/.*(\d.\d).*/$$1/'`; \
2430
		mv debian/$$p/$$d/`echo $$i | sed -e "s/libuno-//" | sed -e "s/-cil$$//" | sed -e "s/-/_/" | perl -pi -e 's/\d.\d//'`.dll \
2431
			debian/$$i/usr/lib/cli/uno-`echo $$i | perl -pi -e 's/.*(\d.\d).*/$$1/'`; \
2432
		mv debian/$$p/$$d/`echo $$i | sed -e "s/libuno-//" | sed -e "s/-cil$$//" | sed -e "s/-/_/" | perl -pi -e 's/\d.\d//'`.config \
2433
			debian/$$i/usr/lib/cli/uno-`echo $$i | perl -pi -e 's/.*(\d.\d).*/$$1/'`/`echo $$i | sed -e "s/libuno-//" | sed -e "s/-cil$$//" | sed -e "s/-/_/" | perl -pi -e 's/\d.\d//'`.dll.config; \
1022.1.249 by Rene Engelhard
create symlink .config -> .dll.config
2434
	ln -s `echo $$i | sed -e "s/libuno-//" | sed -e "s/-cil$$//" | sed -e "s/-/_/" | perl -pi -e 's/\d.\d//'`.dll.config \
1022.10.51 by Rene Engelhard
start migrating to dh_install
2435
			debian/$$i/usr/lib/cli/uno-`echo $$i | perl -pi -e 's/.*(\d.\d).*/$$1/'`/`echo $$i | sed -e "s/libuno-//" | sed -e "s/-cil$$//" | sed -e "s/-/_/" | perl -pi -e 's/\d.\d//'`.config; \
2436
		mv debian/$$p/$$d/policy.*.`echo $$i | sed -e "s/libuno-//" | sed -e "s/-cil$$//" | sed -e "s/-/_/" | perl -pi -e 's/\d.\d//'`.dll \
2437
			debian/$$i/usr/lib/cli/uno-`echo $$i | perl -pi -e 's/.*(\d.\d).*/$$1/'`; \
1022.1.181 by Rene Engelhard
update mono install and reenable the mono packages
2438
	done
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2439
endif
1022.1.181 by Rene Engelhard
update mono install and reenable the mono packages
2440
465 by Rene Engelhard
move testtoolrc into -qa-tools
2441
	# remove eventually sneaked in .testtoolrc
1022.10.51 by Rene Engelhard
start migrating to dh_install
2442
	rm -f $(PKGDIR)-common/$(OODIR)/program/.testtoolrc
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2443
1022.1.93 by Rene Engelhard
add BUILD_GTK conditional; disable both GTK and KDE for now...; apply KDE4 patchset if needed
2444
ifeq "$(BUILD_GTK)" "y"
901.1.27 by Rene Engelhard
fix qstart.desktop installation
2445
	# Gtk quickstarter for the eggtrtray stuff, so to -gtk (via -gnome)
1022.10.51 by Rene Engelhard
start migrating to dh_install
2446
	mkdir -p -m755 $(PKGDIR)-gnome/$(OOBRANDDIR)/share/xdg
2447
	mv $(PKGDIR)-common/$(OOBRANDDIR)/share/xdg/qstart.desktop \
2448
		$(PKGDIR)-gnome/$(OOBRANDDIR)/share/xdg
1022.1.93 by Rene Engelhard
add BUILD_GTK conditional; disable both GTK and KDE for now...; apply KDE4 patchset if needed
2449
endif
901.1.27 by Rene Engelhard
fix qstart.desktop installation
2450
1022.10.51 by Rene Engelhard
start migrating to dh_install
2451
ifeq "$(PACKAGE_SDK)" "y"
235 by Rene Engelhard
move gengal into -dev
2452
	# move gengal stuff into -dev
1022.10.51 by Rene Engelhard
start migrating to dh_install
2453
	mkdir -p $(PKGDIR)-dev/$(OODIR)/program
2454
	mv $(PKGDIR)-core/$(OODIR)/program/gengal* \
2455
		$(PKGDIR)-dev/$(OODIR)/program
2456
	mv $(PKGDIR)-common/$(OODIR)/program/gengal  \
2457
		$(PKGDIR)-dev/$(OODIR)/program
2458
else
2459
	rm -f $(PKGDIR)-core/$(OODIR)/program/gengal*
2460
	rm -f $(PKGDIR)-common/$(OODIR)/program/gengal
2461
endif
260 by Rene Engelhard
use ooo-builds simple-install for the SDK
2462
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
2463
ifeq "$(PACKAGE_SDK)" "y"
260 by Rene Engelhard
use ooo-builds simple-install for the SDK
2464
	# move SDK documentation into own package
1022.10.51 by Rene Engelhard
start migrating to dh_install
2465
	rm -rf $(PKGDIR)-dev-doc
2466
	mkdir -p $(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev-doc
2467
	mv $(PKGDIR)-dev/usr/share/doc/openoffice.org \
2468
		$(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev && \
2469
	mv $(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev/sdk/docs \
2470
		$(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev
1022.10.52 by Rene Engelhard
merge
2471
	mkdir -p $(PKGDIR)-dev-doc/$(OOSDKDIR)
1022.10.51 by Rene Engelhard
start migrating to dh_install
2472
	mv $(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev/sdk/index.html \
1022.10.52 by Rene Engelhard
merge
2473
		$(PKGDIR)-dev-doc/$(OOSDKDIR)
2474
	rm -f $(PKGDIR)-dev/$(OOSDKDIR)/index.html
1022.10.51 by Rene Engelhard
start migrating to dh_install
2475
	rm -rf $(PKGDIR)-dev/usr/share/doc/openoffice.org \
2476
		$(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev/sdk
1022.10.52 by Rene Engelhard
merge
2477
	mv $(PKGDIR)-dev/$(OOSDKDIR)/examples \
2478
		$(PKGDIR)-dev-doc/$(OOSDKDIR)
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
2479
endif
260 by Rene Engelhard
use ooo-builds simple-install for the SDK
2480
1022.1.87 by Rene Engelhard
move URE back to /usr/lib/ure
2481
	# fixup ure-link symlink. The move is done in install-arch
2482
	# but the link is in -common so we need to do it here.
1022.10.51 by Rene Engelhard
start migrating to dh_install
2483
	cd $(PKGDIR)-common/$(OOBASISDIR) && \
1022.1.185 by Rene Engelhard
fix ure-link fixing
2484
		rm ure-link && ln -sf /$(OOUREDIR) ure-link
1022.1.87 by Rene Engelhard
move URE back to /usr/lib/ure
2485
1022.1.102 by Rene Engelhard
reenable gtk and kde, disable gio
2486
ifeq "$(ENABLE_GIO)" "y"
2487
	# the config for gio should be  there where gio itself is, shouldn't it?
1022.10.51 by Rene Engelhard
start migrating to dh_install
2488
	mkdir -p $(PKGDIR)-gnome/$(OOBASISDIR)/share/registry/modules/org/openoffice/ucb/Configuration
2489
	mv $(PKGDIR)-common/$(OOBASISDIR)/share/registry/modules/org/openoffice/ucb/Configuration/Configuration-gio.xcu \
2490
		$(PKGDIR)-gnome/$(OOBASISDIR)/share/registry/modules/org/openoffice/ucb/Configuration
1022.1.102 by Rene Engelhard
reenable gtk and kde, disable gio
2491
endif
1220 by Chris Cheney
Fix issue with building openoffice.org-l10n.
2492
endif # ifeq "$(PKGSOURCE)" "openoffice.org$(VER)"
1022.1.102 by Rene Engelhard
reenable gtk and kde, disable gio
2493
989 by Rene Engelhard
readd some lost lines; make -ogltrans depend on a fixed -common; -2
2494
	find debian/tmp ! -perm -200 | xargs -r chmod u+w
1034 by Chris Cheney
debian/rules: clean up whitespace
2495
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2496
	touch $@
20 by Chris Halls
Imported openoffice_org-1_0_3-1
2497
2 by Chris Halls
Imported openoffice_org-1_0_0-4
2498
#
30 by Chris Halls
Imported openoffice_org-1_1_0-2
2499
# Generate maintainer scripts
18 by Chris Halls
Imported openoffice_org-1_0_2-2
2500
maintscripts: $(STAMP_DIR)/maintscripts
1022.10.370 by Rene Engelhard
* debian/shell-lib.sh, debian/shell-lib*.sh, debian/*.lintian-overrides*,
2501
$(STAMP_DIR)/maintscripts: $(wildcard debian/shell-lib*.sh) $(wildcard debian/*.preinst.in) $(wildcard debian/*.postinst.in) $(wildcard debian/*.prerm.in) $(wildcard debian/*.postrm.in) debian/scripts/vars.$(ARCH) debian/control
1 by Chris Halls
Import from old cvs.debian.org
2502
	dh_testdir
2503
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
2504
	rm -f debian/*.{pre,post}{inst,rm}
2505
11 by Chris Halls
Imported openoffice_org-1_0_1-4
2506
	# generate maintainer scripts from *.in
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
2507
	for PKG in $(PACKAGES); do \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
2508
	  if [ "$(DIST)" = Ubuntu ]; then \
2509
	    case $$PKG in *l10n-*|*help-*) continue; esac; \
2510
	  fi; \
13 by Chris Halls
Imported openoffice_org-1_0_1-6rc1
2511
	  for FILE in postinst postrm preinst prerm; do \
2512
	    MAINTSCRIPT=debian/$$PKG.$$FILE ; \
2513
	    if [ -e $$MAINTSCRIPT.in ]; then \
2514
	      sed -n '1,/^#INCLUDE_SHELL_LIB#$$/p' < $$MAINTSCRIPT.in | sed -e '/^#INCLUDE_SHELL_LIB#$$/d' > $$MAINTSCRIPT; \
1022.10.463 by Rene Engelhard
don't add LIBSUFFIX/PLATFORMID to the arch-indep packages' maintainer scripts
2515
	      if echo $(ARCH_DEP_PACKAGES) | grep -q $$PKG; then \
2516
	        grep LIBSUFFIX debian/scripts/vars.$(ARCH) >> $$MAINTSCRIPT; \
2517
	        grep PLATFORMID debian/scripts/vars.$(ARCH) >> $$MAINTSCRIPT; \
2518
 	      fi; \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
2519
	      echo "" >> $$MAINTSCRIPT; \
1022.10.370 by Rene Engelhard
* debian/shell-lib.sh, debian/shell-lib*.sh, debian/*.lintian-overrides*,
2520
	      if grep -q conffile $$MAINTSCRIPT.in; then \
2521
		 cat debian/shell-lib-conffiles.sh >> $$MAINTSCRIPT; \
1022.10.372 by Rene Engelhard
fix it correctly, only add extension stuff when we call the function, avoid false positives ("extensionmgr.desktop")
2522
	      elif egrep -q "(add|remove)_extension" $$MAINTSCRIPT.in; then \
1022.10.370 by Rene Engelhard
* debian/shell-lib.sh, debian/shell-lib*.sh, debian/*.lintian-overrides*,
2523
		 cat debian/shell-lib-extensions.sh >> $$MAINTSCRIPT; \
2524
	      elif grep -q services_rdb $$MAINTSCRIPT.in; then \
2525
		 cat debian/shell-lib-components.sh >> $$MAINTSCRIPT; \
2526
	      fi; \
13 by Chris Halls
Imported openoffice_org-1_0_1-6rc1
2527
	      sed -n '/^#INCLUDE_SHELL_LIB#$$/,$$p' < $$MAINTSCRIPT.in | sed -e '/^#INCLUDE_SHELL_LIB#$$/d' >> $$MAINTSCRIPT; \
504 by Rene Engelhard
build fixes
2528
	      perl -pi -e "s/\@LANGPACKISOS\@/$(LANGPACKISOS)/" $$MAINTSCRIPT; \
656 by Rene Engelhard
fix maintscripts target
2529
	      perl -pi -e "s,\@OODIR\@,$(OODIR),g" $$MAINTSCRIPT; \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
2530
	      perl -pi -e "s,\@OOBRANDDIR\@,$(OOBRANDDIR),g" $$MAINTSCRIPT; \
1022.10.102 by Rene Engelhard
use @OOBASISDIR@
2531
	      perl -pi -e "s,\@OOBASISDIR\@,$(OOBASISDIR),g" $$MAINTSCRIPT; \
656 by Rene Engelhard
fix maintscripts target
2532
	      perl -pi -e "s/\@VER\@/$(VER)/g" $$MAINTSCRIPT; \
13 by Chris Halls
Imported openoffice_org-1_0_1-6rc1
2533
	    fi; \
2534
	  done; \
1 by Chris Halls
Import from old cvs.debian.org
2535
	done
1034 by Chris Cheney
debian/rules: clean up whitespace
2536
125 by Rene Engelhard
further help fixes/cleanup and use pkg/openoffice.org-help-* created by package-ooo like the langpacks
2537
	touch $@
2538
2539
# Install files generated by setup into package directories
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2540
langpacks: $(STAMP_DIR)/langpacks
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2541
$(STAMP_DIR)/langpacks: $(STAMP_DIR)/install $(STAMP_DIR)/install-indep $(OOO_BUILD_TREE)/bin/openoffice-xlate-lang
1034 by Chris Cheney
debian/rules: clean up whitespace
2542
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
2543
	# remove empty uno_packages dirs somehow in the langpacks(?)
2544
	for iso in `echo $(LANGPACKISOS) | tr A-Z a-z`; do \
2545
		rm -rf $(PKGDIR)-l10n-$$iso/$(OODIR)/share/uno_packages; \
2546
	done
1034 by Chris Cheney
debian/rules: clean up whitespace
2547
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
2548
	# remove ooo dirs somehow in the langpacks(?)
2549
	for iso in `echo $(LANGPACKISOS) | tr A-Z a-z`; do \
2550
		rm -rf $(PKGDIR)-l10n-$$iso/$(OODIR)/share/dict/ooo; \
2551
	done
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2552
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
2553
	# remove extra license files
2554
	for iso in `echo $(LANGPACKISOS) | tr A-Z a-z`; do \
1022.17.308 by Rene Engelhard
fix langpacks target to actually remove extra LICENSE* and README* files again
2555
		rm -rf $(PKGDIR)-l10n-$$iso/$(OOBRANDDIR)/licenses; \
2556
		rm -f $(PKGDIR)-l10n-$$iso/$(OOBRANDDIR)/share/readme/LICENSE*; \
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
2557
	done
1034 by Chris Cheney
debian/rules: clean up whitespace
2558
209 by Rene Engelhard
remove remove README_* and install README and README.html into /usr/share/doc/openoffice.org-common
2559
	# remove extra readme files
2560
	for iso in `echo $(LANGPACKISOS) | tr A-Z a-z`; do \
1022.17.308 by Rene Engelhard
fix langpacks target to actually remove extra LICENSE* and README* files again
2561
		rm -rf $(PKGDIR)-l10n-$$iso/$(OOBRANDDIR)/readmes; \
2562
		rm -f $(PKGDIR)-l10n-$$iso/$(OOBRANDDIR)/share/readme/README*; \
209 by Rene Engelhard
remove remove README_* and install README and README.html into /usr/share/doc/openoffice.org-common
2563
	done
214 by Rene Engelhard
merge l10n and help shrink
2564
240 by Rene Engelhard
revert help installing changes, fails now and works now without... hrmm..
2565
	# remove empty help directories
230 by Rene Engelhard
merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.1--patch-73
2566
	for iso in `echo $(LANGPACKISOS) | tr A-Z a-z`; do \
1022.17.44 by Rene Engelhard
- move help into /usr/share (see #218067)
2567
		rm -rf $(PKGDIR)-l10n-$$iso/$(shell echo $(OODIR) | sed -e s/lib/share/)/help; \
1022.17.77 by Rene Engelhard
work around a regression in m6 (i107283)
2568
		rm -rf $(PKGDIR)-l10n-$$iso/$(OODIR)/help; \
230 by Rene Engelhard
merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.1--patch-73
2569
	done
2570
214 by Rene Engelhard
merge l10n and help shrink
2571
	# replace duplicate files in the langpacks with symlinks
1022.24.73 by Rene Engelhard
don't use hardcoded l10n.fdupes but use mktemp
2572
	TMP=`mktemp -q`; \
2573
		fdupes --quiet --recurse --sameline --size \
274 by Rene Engelhard
more Ubuntu merge
2574
		debian/openoffice.org$(VER)-common/$(OODIR) \
467 by Rene Engelhard
fix help install to install main_transform.xsl again, remove unnedded sed
2575
		$(foreach d,$(shell echo $(filter-out en-US,$(LANGPACKISOS)) | tr A-Z a-z),debian/openoffice.org$(VER)-l10n-$(d)/$(OODIR)) \
1022.24.73 by Rene Engelhard
don't use hardcoded l10n.fdupes but use mktemp
2576
		> $$TMP && \
2577
	debian/scripts/cleandupes --base=openoffice.org$(VER) --prefix=debian < $$TMP && rm -f $$TMP
826 by Chris Cheney
* debian/control.2.in:
2578
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
2579
ifeq "$(DIST)" "Ubuntu"
2580
	# install Ubuntu templates
2581
	otps=`cd debian/ubuntu; echo *.otp`; \
2582
	for iso in $(LANGPACKISOS); do \
2583
	  [ "$$iso" = "en-US" ] && continue; \
2584
	  pkgiso=`echo $$iso | tr \[:upper:\] \[:lower:\]`; \
2585
	  mkdir -p $(PKGDIR)-l10n-$$pkgiso/$(OODIR)/share/template/$$iso/presnt; \
2586
	  for otp in $$otps; do \
2587
	    ln -sf ../../en-US/presnt/$$otp \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
2588
	    $(PKGDIR)-l10n-$$pkgiso/$(OODIR)/share/template/$$iso/presnt/$$odt; \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
2589
	  done; \
2590
	done
2591
endif
2592
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2593
	touch $@
2594
826 by Chris Cheney
* debian/control.2.in:
2595
native-jars: $(STAMP_NATIVE_JARS)
2596
$(STAMP_NATIVE_JARS): $(STAMP_DIR)/install
523 by Rene Engelhard
Ubuntu merge
2597
	rm -rf debian/tmp/native-jars
2598
	mkdir -p debian/tmp/native-jars/gcj
2599
	cp -a \
1022.10.51 by Rene Engelhard
start migrating to dh_install
2600
	    $(PKGDIR)-common/$(OODIR)/program/classes/*.jar \
523 by Rene Engelhard
Ubuntu merge
2601
		debian/tmp/native-jars/
528 by Rene Engelhard
mention mozilla profile detection fix; more gcj fixes
2602
	cp -a \
1022.10.51 by Rene Engelhard
start migrating to dh_install
2603
	    $(PKGDIR)-core/usr/share/java/$(OODIRNAME)/*.jar \
528 by Rene Engelhard
mention mozilla profile detection fix; more gcj fixes
2604
	        debian/tmp/native-jars/
1022.24.102 by Rene Engelhard
missing ifeq
2605
ifeq "$(PACKAGE_BASE)" "y"
528 by Rene Engelhard
mention mozilla profile detection fix; more gcj fixes
2606
	cp -a \
1022.10.51 by Rene Engelhard
start migrating to dh_install
2607
	    $(PKGDIR)-base/usr/share/java/$(OODIRNAME)/*.jar \
528 by Rene Engelhard
mention mozilla profile detection fix; more gcj fixes
2608
	        debian/tmp/native-jars/
1022.24.102 by Rene Engelhard
missing ifeq
2609
endif
523 by Rene Engelhard
Ubuntu merge
2610
	: # remove problematic ones
2611
	rm -f debian/tmp/native-jars/ridl.jar
1022.1.421 by Rene Engelhard
exclude saxon9 for -gcj. ICEs (killed by OOM?)
2612
ifneq "$(USE_SYSTEM_SAXON)" "y"
2613
	rm -f debian/tmp/native-jars/saxon9.jar
2614
endif
523 by Rene Engelhard
Ubuntu merge
2615
	: # compile the others
901.1.62 by Rene Engelhard
with dpkg 1.4.11 we can live without -ignore-missing-info; work around aot-compiling OOM
2616
	# the Debian i386 buildd, although having much ram still OOMs without
2617
	# this (at unoil.jar).
2618
	# Also the native jar build is MUCH faster with this. But it
981 by Rene Engelhard
disable --with-max-jobs= for now, improve comment, symlink libstlport_gcc.so only with USE_STLPORT=y
2619
	# won't be accepted into the official java-gcj-compat package so this
2620
	# hack here is needed.
1022.10.234 by Rene Engelhard
use /usr/lib/gcc/aotcompile.py; update ooo-build
2621
	if [ -e /usr/lib/gcc/aotcompile.py ]; then \
2622
		aotcompile_py=/usr/lib/gcc/aotcompile.py; \
2623
	elif [ -e /usr/share/pyshared/aotcompile.py ]; then \
1047 by Rene Engelhard
- handle new aotcompile.py location to prevent FTBFS when
2624
		aotcompile_py=/usr/share/pyshared/aotcompile.py; \
2625
	fi && \
2626
	cp $$aotcompile_py debian/scripts
901.1.62 by Rene Engelhard
with dpkg 1.4.11 we can live without -ignore-missing-info; work around aot-compiling OOM
2627
	cd debian/scripts && \
2628
		patch -p0 < $(CURDIR)/debian/aotcompile-256M-default.diff
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
2629
	PYTHONPATH="debian/scripts:$(shell echo $(PYTHON_SITE) | sed -e s,debian/python-uno,,)" \
901.1.62 by Rene Engelhard
with dpkg 1.4.11 we can live without -ignore-missing-info; work around aot-compiling OOM
2630
	AOT_MAKEFLAGS=-j$(NUM_CPUS) aot-compile -L /usr/lib/gcj/openoffice \
2631
	    debian/tmp/native-jars debian/tmp/native-jars/gcj
1022.1.196 by Rene Engelhard
fix build with OpenJDK
2632
	gcj-dbtool -n debian/tmp/native-jars/tmp.db 64
523 by Rene Engelhard
Ubuntu merge
2633
	find debian/tmp/native-jars/gcj -name '*.db' -print0 \
2634
	    | xargs -r -0 \
1022.1.196 by Rene Engelhard
fix build with OpenJDK
2635
		gcj-dbtool -m debian/tmp/native-jars/tmp.db debian/tmp/native-jars/tmp.db || exit 1
523 by Rene Engelhard
Ubuntu merge
2636
	rm -f debian/tmp/native-jars/gcj/*.db
2637
	touch $@
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2638
30 by Chris Halls
Imported openoffice_org-1_1_0-2
2639
# Install files generated by setup into arch-dependent package directories
29 by Chris Halls
Imported openoffice_org-1_1_0-1
2640
install-arch: $(STAMP_DIR)/install-arch
523 by Rene Engelhard
Ubuntu merge
2641
$(STAMP_DIR)/install-arch: $(STAMP_DIR)/install $(STAMP_NATIVE_JARS)
29 by Chris Halls
Imported openoffice_org-1_1_0-1
2642
	dh_testdir
2643
	dh_testroot
2644
	umask 022
2645
1220 by Chris Cheney
Fix issue with building openoffice.org-l10n.
2646
ifneq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
2647
1022.10.213 by Rene Engelhard
move services.rdb to /var/lib/openoffice/basisX.Y/program, deregister libevoabl?.so on install-arch and install maintainer scripts for (de-)registering it on install/remove
2648
ifeq "$(ENABLE_EVO2)" "y"
2649
	debian/ure/$(OOBRANDDIR)/ure/bin/regcomp -revoke \
2650
		-r $(PKGDIR)-core/$(OODIR)/program/services.rdb \
2651
		-br $(PKGDIR)-core/$(OODIR)/program/services.rdb \
2652
		-c 'vnd.sun.star.expand:$$OOO_BASE_DIR/program/libevoab$(LIBSUFFIX).so'
2653
endif
1022.15.8 by Rene Engelhard
* debian/rules, debian/control.kde.in, debian/openoffice.org-kab*:
2654
ifeq "$(ENABLE_KDEAB)" "y"
2655
	debian/ure/$(OOBRANDDIR)/ure/bin/regcomp -revoke \
2656
		-r $(PKGDIR)-core/$(OODIR)/program/services.rdb \
2657
		-br $(PKGDIR)-core/$(OODIR)/program/services.rdb \
2658
		-c 'vnd.sun.star.expand:$$OOO_BASE_DIR/program/libkab1.so'
2659
endif
1022.16.1 by Rene Engelhard
move libbf_migratefilter back to -filter-binfilter
2660
ifeq "$(BUILD_BINFILTERS)" "y"
2661
	debian/ure/$(OOBRANDDIR)/ure/bin/regcomp -revoke \
2662
		-r $(PKGDIR)-core/$(OODIR)/program/services.rdb \
2663
		-br $(PKGDIR)-core/$(OODIR)/program/services.rdb \
2664
		-c 'vnd.sun.star.expand:$$OOO_BASE_DIR/program/libbf_migratefilter$(LIBSUFFIX).so'
2665
endif
1022.10.213 by Rene Engelhard
move services.rdb to /var/lib/openoffice/basisX.Y/program, deregister libevoabl?.so on install-arch and install maintainer scripts for (de-)registering it on install/remove
2666
1022.1.87 by Rene Engelhard
move URE back to /usr/lib/ure
2667
	# move the URE to /usr/lib/ure
2668
	mv debian/ure/$(OOBRANDDIR)/ure debian/ure/usr/lib
2669
	rmdir debian/ure/$(OOBRANDDIR)
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
2670
	# move URE Java stuff to /usr/share/java
2671
	mkdir -p debian/ure/usr/share/java/$(OODIRNAME)
1022.17.68 by Rene Engelhard
- fix install on no-java builds
2672
ifeq "$(ENABLE_JAVA)" "y"
1022.1.84 by Rene Engelhard
more installation fixes
2673
	mv debian/ure/$(OOUREDIR)/lib/JREProperties.class \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
2674
		debian/ure/usr/share/java/$(OODIRNAME)
2675
	mv debian/ure/$(OOUREDIR)/share/java/* \
2676
		debian/ure/usr/share/java/$(OODIRNAME)
2677
	ln -sf /usr/share/java/$(OODIRNAME)/JREProperties.class \
2678
		debian/ure/$(OOUREDIR)/lib/JREProperties.class
2679
	cd debian/ure/$(OOUREDIR)/share/java && \
2680
		for i in $(CURDIR)/debian/ure/usr/share/java/$(OODIRNAME)/*.jar; do \
2681
			ln -sf `echo $$i | sed -e 's,$(CURDIR)/debian/ure,,'` `basename $$i`; \
2682
		done
1313 by Matthias Klose
merge 1:3.2.1-7
2683
	# fix up Class-Path of jurt.jar to be able to find libjpipe.so.
2684
	# See http://www.openoffice.org/servlets/ReadMsg?list=dev&msgNo=27765
2685
	t=`mktemp -q -d`; \
2686
	mkdir -p $$t && cd $$t && \
2687
	unzip $(CURDIR)/debian/ure/usr/share/java/$(OODIRNAME)/jurt.jar \
2688
		META-INF/MANIFEST.MF && \
2689
	perl -pi -e 's#../../lib/#../../lib/ /$(OOUREDIR)/lib/#g' \
2690
		META-INF/MANIFEST.MF && \
2691
	zip -r $(CURDIR)/debian/ure/usr/share/java/$(OODIRNAME)/jurt.jar \
2692
		META-INF/MANIFEST.MF && \
2693
	cd $(CURDIR) && rm -rf $$t
1022.17.68 by Rene Engelhard
- fix install on no-java builds
2694
endif
1022.5.1 by Rene Engelhard
move UNO libs to uno-libs3
2695
	# and the public libs to uno-libs3
2696
	mkdir -p debian/uno-libs3/$(OOUREDIR)/lib
2697
	for i in debian/ure/$(OOUREDIR)/lib/libuno_*so.3; do \
2698
		mv $$i debian/uno-libs3/$(OOUREDIR)/lib; \
1022.5.4 by Rene Engelhard
fix symlink
2699
		ln -sf /$(OOUREDIR)/lib/`basename $$i` debian/uno-libs3/usr/lib/`basename $$i`; \
1022.5.1 by Rene Engelhard
move UNO libs to uno-libs3
2700
	done
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
2701
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
2702
ifeq "$(BUILD_KDE)" "y"
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
2703
	mkdir -p -m755 $(PKGDIR)-kde/$(OODIR)/program
1022.1.195 by Rene Engelhard
update ooo-build/kdefilepicker installation
2704
	mkdir -p -m755 $(PKGDIR)-kde/$(OOBRANDDIR)/program
1313.1.8 by Martin Pitt
Rules: Don't install fps_kde*.uno.so and libvclplug_kde*.so, they are not
2705
	#for f in fps_kde*.uno.so libvclplug_kde*.so; do \
2706
	#  mv $(PKGDIR)-core/$(OODIR)/program/$$f $(PKGDIR)-kde/$(OODIR)/program || exit 1 ;\
2707
	#done
1022.10.263 by Rene Engelhard
- add conditionals for KDE4, enable -kde for KDE4 again (closes: #528487)
2708
  ifeq "$(KDE_VER)" "3"
1022.1.195 by Rene Engelhard
update ooo-build/kdefilepicker installation
2709
	mv $(PKGDIR)-core/$(OOBRANDDIR)/program/kdefilepicker \
2710
		$(PKGDIR)-kde/$(OOBRANDDIR)/program
1022.10.263 by Rene Engelhard
- add conditionals for KDE4, enable -kde for KDE4 again (closes: #528487)
2711
  endif
1022.10.204 by Rene Engelhard
add /usr/share/template stuff for KDE
2712
2713
	# install files for KDEs "create new" ...
2714
	mkdir -p $(PKGDIR)-kde/usr/share/templates/.source
2715
	for i in $(SOURCE_TREE)/extras/source/shellnew/*; do \
2716
		cp $$i $(PKGDIR)-kde/usr/share/templates/.source/`basename $$i`; \
2717
	done
2718
	cat debian/soffice-template.desktop.in \
2719
		| sed -e "s/@APP@/Writer/" \
2720
		| sed -e "s/@EXT@/odt/" \
1022.10.205 by Rene Engelhard
use cirrect icon
2721
		| sed -e "s/@TYPE@/text/" \
1022.10.204 by Rene Engelhard
add /usr/share/template stuff for KDE
2722
		> $(PKGDIR)-kde/usr/share/templates/soffice.odt.desktop
2723
	cat debian/soffice-template.desktop.in \
2724
		| sed -e "s/@APP@/Calc/" \
2725
		| sed -e "s/@EXT@/ods/" \
1022.10.205 by Rene Engelhard
use cirrect icon
2726
		| sed -e "s/@TYPE@/spreadsheet/" \
1022.10.204 by Rene Engelhard
add /usr/share/template stuff for KDE
2727
		> $(PKGDIR)-kde/usr/share/templates/soffice.ods.desktop
2728
	cat debian/soffice-template.desktop.in \
2729
		| sed -e "s/@APP@/Impress/" \
2730
		| sed -e "s/@EXT@/odp/" \
1022.10.205 by Rene Engelhard
use cirrect icon
2731
		| sed -e "s/@TYPE@/presentation/" \
1022.10.204 by Rene Engelhard
add /usr/share/template stuff for KDE
2732
		> $(PKGDIR)-kde/usr/share/templates/soffice.odp.desktop
2733
	cat debian/soffice-template.desktop.in \
2734
		| sed -e "s/@APP@/Draw/" \
2735
		| sed -e "s/@EXT@/odg/" \
1022.10.205 by Rene Engelhard
use cirrect icon
2736
		| sed -e "s/@TYPE@/drawing/" \
1022.10.204 by Rene Engelhard
add /usr/share/template stuff for KDE
2737
		> $(PKGDIR)-kde/usr/share/templates/soffice.odg.desktop
1022.1.450 by Rene Engelhard
more lenny backport fixes (wrt kab)
2738
endif
2739
ifeq "$(ENABLE_KDEAB)" "y"
1022.1.161 by Rene Engelhard
build against KDE4 and split kab into own package to not make -kde depend on kdepimlibs5
2740
	rm -rf $(PKGDIR)-kab
2741
	mkdir -p -m755 $(PKGDIR)-kab/$(OODIR)/program
2742
	for f in libkab*so; do \
2743
	  mv $(PKGDIR)-core/$(OODIR)/program/$$f $(PKGDIR)-kab/$(OODIR)/program || exit 1 ;\
2744
	done
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
2745
endif
2746
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2747
	# move the GNOME stuff which are *not* in gid_Module_Optional_Gnome
2748
	# (which is moved into -gnome in package-ooo) into -gnome
2749
	mkdir -p -m755 $(PKGDIR)-gnome/$(OODIR)/program
1022.1.93 by Rene Engelhard
add BUILD_GTK conditional; disable both GTK and KDE for now...; apply KDE4 patchset if needed
2750
	mv $(PKGDIR)-core/$(OODIR)/program/gnome-open-url.bin $(PKGDIR)-gnome/$(OODIR)/program || exit 1
2751
ifeq "$(BUILD_GTK)" "y"
2752
	for f in fps_gnome.uno.so libvclplug_gtk*.so; do \
396 by Rene Engelhard
fix python builddeps to work with experimentals buildds; add PACKAGE_QUICKSTART conditional, merge openofficeorg--unstable--2.0.3--patch-137
2753
	  mv $(PKGDIR)-core/$(OODIR)/program/$$f $(PKGDIR)-gnome/$(OODIR)/program || exit 1;\
2754
	done
2755
	for f in libeggtray* libqstart_gtk*; do \
2756
	  mv $(PKGDIR)-core/$(OODIR)/program/$$f $(PKGDIR)-gnome/$(OODIR)/program || exit 1;\
2757
	done
1022.1.93 by Rene Engelhard
add BUILD_GTK conditional; disable both GTK and KDE for now...; apply KDE4 patchset if needed
2758
endif
99 by Rene Engelhard
merge 2.0.0-4 and 2.0.0-5 since the didn't get over with baz branch...
2759
339 by Rene Engelhard
merge -gtk/-gnome split (helps XFCE) - leave gconfbe in -gnome, though
2760
	# split out gtk stuff
493 by Rene Engelhard
add missing rm -rf; fix typos
2761
	rm -rf $(PKGDIR)-gtk
339 by Rene Engelhard
merge -gtk/-gnome split (helps XFCE) - leave gconfbe in -gnome, though
2762
	mkdir -p -m755 $(PKGDIR)-gtk/$(OODIR)/program
2763
	mv $(PKGDIR)-gnome/$(OODIR)/program/* $(PKGDIR)-gtk/$(OODIR)/program/
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
2764
	mkdir -p -m755 $(PKGDIR)-gtk/$(OOBRANDDIR)/share
1022.1.93 by Rene Engelhard
add BUILD_GTK conditional; disable both GTK and KDE for now...; apply KDE4 patchset if needed
2765
ifeq "$(BUILD_GTK)" "y"
1022.1.104 by Rene Engelhard
one more install fix lintian fixes; regenerate control
2766
	mv $(PKGDIR)-gnome/$(OOBRANDDIR)/share/xdg $(PKGDIR)-gtk/$(OOBRANDDIR)/share && \
2767
		rmdir $(PKGDIR)-gnome/$(OOBRANDDIR)/share
1022.15.10 by Rene Engelhard
merge from Ubuntu
2768
  # Hmm. Weird. The location of confbe changes on whether GIO is enabled
2769
  # or not...
1202 by Chris Cheney
openoffice.org (1:3.0.1-5ubuntu1) jaunty; urgency=low
2770
  ifeq "$(ENABLE_GIO)" "y"
1022.1.301 by Rene Engelhard
GIO fixes
2771
	mv $(PKGDIR)-gtk/$(OODIR)/program/ucpgio1.uno.so \
2772
		$(PKGDIR)-gnome/$(OODIR)/program/
1022.15.10 by Rene Engelhard
merge from Ubuntu
2773
    ifeq "$(ENABLE_GCONF)" "y"
1202 by Chris Cheney
openoffice.org (1:3.0.1-5ubuntu1) jaunty; urgency=low
2774
	mv $(PKGDIR)-core/$(OODIR)/program/gconfbe* \
2775
		$(PKGDIR)-gnome/$(OODIR)/program
1022.15.10 by Rene Engelhard
merge from Ubuntu
2776
    endif
1202 by Chris Cheney
openoffice.org (1:3.0.1-5ubuntu1) jaunty; urgency=low
2777
  endif
2778
  ifeq "$(ENABLE_GVFS)" "y"
340 by Rene Engelhard
typo
2779
	mv $(PKGDIR)-gtk/$(OODIR)/program/ucpgvfs1.uno.so \
339 by Rene Engelhard
merge -gtk/-gnome split (helps XFCE) - leave gconfbe in -gnome, though
2780
		$(PKGDIR)-gnome/$(OODIR)/program/
1022.15.10 by Rene Engelhard
merge from Ubuntu
2781
    ifeq "$(ENABLE_GCONF)" "y"
1022.1.104 by Rene Engelhard
one more install fix lintian fixes; regenerate control
2782
	mv $(PKGDIR)-gtk/$(OODIR)/program/gconfbe* \
2783
		$(PKGDIR)-gnome/$(OODIR)/program
1022.15.10 by Rene Engelhard
merge from Ubuntu
2784
    endif
1182 by Chris Cheney
fixup for mono transition for backports
2785
  endif
1022.1.93 by Rene Engelhard
add BUILD_GTK conditional; disable both GTK and KDE for now...; apply KDE4 patchset if needed
2786
endif
339 by Rene Engelhard
merge -gtk/-gnome split (helps XFCE) - leave gconfbe in -gnome, though
2787
1022.17.108 by Rene Engelhard
add Recovery.xcu
2788
# we dirst need to find out whether it works on lenny, see issue 105172
2789
ifneq "$(LENNY_BACKPORT)" "y"
2790
	install -D -m644 debian/Recovery.xcu \
2791
		$(PKGDIR)-gnome/$(OODIR)/share/registry/data/org/openoffice/Office/Recovery.xcu
2792
endif
2793
1313.1.9 by Martin Pitt
debian/rules: Don't install libevoab*.so, it is not currently being built.
2794
#ifeq "$(ENABLE_EVO2)" "y"
2795
#	mkdir -p -m755 $(PKGDIR)-evolution/$(OODIR)/program
2796
#	mv $(PKGDIR)-core/$(OODIR)/program/libevoab*.so $(PKGDIR)-evolution/$(OODIR)/program
2797
#endif
142 by Rene Engelhard
disable mozilla plugin
2798
2799
ifeq "$(PACKAGE_NPSOPLUGIN)" "y"
1022.1.99 by Rene Engelhard
update for m19; reenable mozilla plugin
2800
	# libnpsoplugins.so two times with different sizes? Oh my.
2801
	# Upstream has it this way, too, but..
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
2802
	mkdir -p -m755 debian/mozilla-openoffice.org$(VER)/$(OODIR)/program
2803
	mkdir -p -m755 debian/mozilla-openoffice.org$(VER)/$(OOBRANDDIR)/program
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2804
	for f in libnpsoplugin.so nsplugin; do \
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
2805
		mv $(PKGDIR)-core/$(OODIR)/program/$$f debian/mozilla-openoffice.org$(VER)/$(OODIR)/program; \
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2806
	done
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
2807
	mv $(PKGDIR)-core/$(OOBRANDDIR)/program/libnpsoplugin.so debian/mozilla-openoffice.org$(VER)/$(OOBRANDDIR)/program
2808
	cd debian/mozilla-openoffice.org$(VER) && \
1022.17.297 by Rene Engelhard
remove libnpsoplugin.so symlinks in dirs except /usr/lib/mozilla
2809
		mkdir -p usr/lib/mozilla/plugins && \
2810
			ln -sf /$(OOBRANDDIR)/program/libnpsoplugin.so \
2811
			   usr/lib/mozilla/plugins/libnpsoplugin.so
143 by Rene Engelhard
rm libnpsoplugin.so and nsplugin when we don't package them. otherwise they end up in -core
2812
else
232 by Rene Engelhard
rm -f instead of rm
2813
	rm -f $(PKGDIR)-core/$(OODIR)/program/libnpsoplugin.so
2814
	rm -f $(PKGDIR)-core/$(OODIR)/program/nsplugin
142 by Rene Engelhard
disable mozilla plugin
2815
endif
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
2816
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
2817
	# OOo's package split sucks...
2818
	mv $(PKGDIR)-core/$(OODIR)/program/libsw* \
2819
		$(PKGDIR)-writer/$(OODIR)/program
1022.1.11 by Rene Engelhard
fix install, install unopkg.1, disable binfilters
2820
	mv $(PKGDIR)-core/$(OODIR)/program/libsd$(LIBSUFFIX)* \
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
2821
	   $(PKGDIR)-core/$(OODIR)/program/libsdd* \
2822
	   $(PKGDIR)-core/$(OODIR)/program/libsdui* \
1022.16.2 by Rene Engelhard
move libsdfilt* to -draw
2823
	   $(PKGDIR)-core/$(OODIR)/program/libsdfilt* \
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
2824
		$(PKGDIR)-draw/$(OODIR)/program
2825
	mv $(PKGDIR)-core/$(OODIR)/program/slideshow.uno.so \
2826
		$(PKGDIR)-impress/$(OODIR)/program
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
2827
	mkdir -p -m755 $(PKGDIR)-base/$(OODIR)/program
847 by Rene Engelhard
build-depend on libicu-dev, useless use of for :-), also conflict against old -gcjs and add comment also to prerm
2828
	mv $(PKGDIR)-core/$(OODIR)/program/libdba* \
2829
		$(PKGDIR)-base/$(OODIR)/program
901.1.68 by Rene Engelhard
+ - put libdba680l?.so into a -base-core package. Make -base, -writer and
2830
	# except for libdba680l?.so itself
2831
	rm -rf $(PKGDIR)-base-core
2832
	mkdir -p $(PKGDIR)-base-core/$(OODIR)/program
1022.1.11 by Rene Engelhard
fix install, install unopkg.1, disable binfilters
2833
	mv $(PKGDIR)-base/$(OODIR)/program/libdba$(LIBSUFFIX).so \
901.1.68 by Rene Engelhard
+ - put libdba680l?.so into a -base-core package. Make -base, -writer and
2834
		 $(PKGDIR)-base-core/$(OODIR)/program
1022.10.10 by Rene Engelhard
update db lib moving
2835
	for i in odbcbase dbpool2 odbc sdbc2 mysql adabas; do \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2836
		mv $(PKGDIR)-core/$(OODIR)/program/lib$$i* \
2837
		   $(PKGDIR)-base/$(OODIR)/program; \
2838
	done
2839
ifeq "$(ENABLE_JAVA)" "y"
1022.10.10 by Rene Engelhard
update db lib moving
2840
	for i in jdbc hsqldb; do \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2841
		mv $(PKGDIR)-core/$(OODIR)/program/lib$$i* \
2842
		   $(PKGDIR)-base/$(OODIR)/program; \
2843
	done
2844
endif
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
2845
	mv $(PKGDIR)-core/$(OODIR)/program/libflat*so \
1022.10.466 by Rene Engelhard
fix cut'n'paste error
2846
		$(PKGDIR)-base/$(OODIR)/program
2847
	# http://www.openoffice.org/issues/show_bug.cgi?id=107779
2848
	mv $(PKGDIR)-calc/$(OODIR)/program/libcalc*so \
1022.10.465 by Rene Engelhard
move libcalc??.so into -base
2849
		$(PKGDIR)-base/$(OODIR)/program; \
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
2850
181 by Rene Engelhard
move libvbaobj* and vbaevents* into -calc
2851
	# move vba stuff into -calc, they are calc-only and linked to
2852
	# libsc*
2853
	for i in libvbaobj vbaevents; do \
2854
		mv $(PKGDIR)-core/$(OODIR)/program/$$i*uno.so \
183 by Rene Engelhard
missing done...
2855
			$(PKGDIR)-calc/$(OODIR)/program; \
2856
	done
215 by Rene Engelhard
mention scsolver enabling; move it into -calc
2857
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2858
ifeq "$(ENABLE_JAVA)" "y"
2859
  ifeq "$(USE_SYSTEM_HSQLDB)" "y"
55 by Martin Kretzschmar
Imported openoffice.org2_1.9.116-0.pre1
2860
	# link to system hsqldb
1022.10.51 by Rene Engelhard
start migrating to dh_install
2861
	mkdir -p $(PKGDIR)-base/$(OODIR)/program/classes
55 by Martin Kretzschmar
Imported openoffice.org2_1.9.116-0.pre1
2862
	ln -sf /usr/share/java/hsqldb.jar \
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
2863
	        $(PKGDIR)-base/$(OODIR)/program/classes/hsqldb.jar
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2864
  endif
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
2865
endif
2866
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2867
ifeq "$(ENABLE_JAVA)" "y"
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
2868
	rm -rf $(PKGDIR)-officebean
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
2869
	mkdir -p -m755 $(PKGDIR)-officebean/$(OODIR)/program/classes
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
2870
	mkdir -p -m755 $(PKGDIR)-officebean/usr/share/java
1010 by Rene Engelhard
Replace non-working link to license.html with link to
2871
	mv $(PKGDIR)-core/usr/share/java/$(OODIRNAME) \
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
2872
		$(PKGDIR)-officebean/usr/share/java
1010 by Rene Engelhard
Replace non-working link to license.html with link to
2873
	ln -s /usr/share/java/$(OODIRNAME)/officebean.jar \
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
2874
		 $(PKGDIR)-officebean/$(OODIR)/program/classes/officebean.jar
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2875
	mv $(PKGDIR)-core/$(OODIR)/program/libofficebean.so \
2876
		$(PKGDIR)-officebean/$(OODIR)/program
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2877
endif
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
2878
2879
	mkdir -p -m755 $(PKGDIR)-base/usr/share/applications \
2880
	               $(PKGDIR)-core/usr/share/applications
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
2881
533 by Rene Engelhard
some more Ubuntu merge (ooo-build desktops); Build-Conflict against libstlport5.0-dev (= 5.0.2-10); add README.Debian-source
2882
ifeq "$(USE_OOO_BUILD_DESKTOPS)" "n"
1022.1.341 by Rene Engelhard
move *.so.* move to xmlsec conditional, as that her is the only thing having *.so.* in OOos program dir; revert desktop file changing improvement for now
2883
	# menu files from sysui
2884
	dirname="`cd $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/desktopshare >/dev/null; pwd`" ;\
1022.10.35 by Rene Engelhard
fix startcenter.desktop install (was in wrong target)
2885
	for p in writer calc impress draw math base; do \
2886
		mkdir -p -m755 $(PKGDIR)-$$p/usr/share/applications ;\
1211 by Chris Cheney
openoffice.org (1:3.0.1-9ubuntu2) jaunty; urgency=low
2887
		sed -e 's,Exec=$${UNIXPRODUCTNAME}$${PRODUCTVERSION} \(.*\) %U,Exec=ooffice$(VER) \1 %F,' \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
2888
		    -e 's,Icon=$${WITHOUTDOTUNIXPRODUCTNAME},Icon=openofficeorg,' \
1022.1.341 by Rene Engelhard
move *.so.* move to xmlsec conditional, as that her is the only thing having *.so.* in OOos program dir; revert desktop file changing improvement for now
2889
		    -e 's,Name=$${PRODUCTNAME} $${PRODUCTVERSION},Name=OpenOffice.org $(VER),' \
688 by Rene Engelhard
missing \, remove version number from qstart.desktop
2890
		    -e 's/  / /' \
1022.1.341 by Rene Engelhard
move *.so.* move to xmlsec conditional, as that her is the only thing having *.so.* in OOos program dir; revert desktop file changing improvement for now
2891
		   < $$dirname/$$p.desktop \
1200 by Chris Cheney
openoffice.org (1:3.0.1-4ubuntu1) jaunty; urgency=low
2892
		   > $(PKGDIR)-$$p/usr/share/applications/openoffice.org$(VER)-$$p.desktop || exit 1 ;\
901.1.8 by Rene Engelhard
really fix ooo-extension.desktop installation
2893
	done
901.1.27 by Rene Engelhard
fix qstart.desktop installation
2894
1022.1.93 by Rene Engelhard
add BUILD_GTK conditional; disable both GTK and KDE for now...; apply KDE4 patchset if needed
2895
ifeq "$(BUILD_GTK)" "y"
901.1.27 by Rene Engelhard
fix qstart.desktop installation
2896
	# qstart.desktop is different to the above. Should be handled by
2897
	# --with-unix-wrapper of ooo-build but that somehow doesn't work as
2898
	# expected. FIXME.
2899
	PRODUCTVERSION=`grep PRODUCTVERSION $(SOURCE_TREE)/sysui/desktop/productversion.mk | head -n 1 | cut -d"=" -f2 | sed -e s/\ //g`; \
2900
	sed -i -e "s,Exec=openoffice.org$$PRODUCTVERSION,Exec=ooffice$(VER)," \
2901
		-e "s,Name=OpenOffice.org $$PRODUCTVERSION,Name=OpenOffice.org $(VER)," \
2902
		-e "s/  / /" \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
2903
		$(PKGDIR)-gtk/$(OOBRANDDIR)/share/xdg/qstart.desktop
1022.1.93 by Rene Engelhard
add BUILD_GTK conditional; disable both GTK and KDE for now...; apply KDE4 patchset if needed
2904
endif
1022.1.341 by Rene Engelhard
move *.so.* move to xmlsec conditional, as that her is the only thing having *.so.* in OOos program dir; revert desktop file changing improvement for now
2905
	# we don't need the share/xdgs except qstart
831 by Rene Engelhard
lintian fixes
2906
	for f in `find debian -name '*.desktop' | grep xdg | grep -v qstart`; do \
2907
		rm -f $$f; done
1022.10.349 by Rene Engelhard
* debian/shell-lib.sh: check whether OOo is running before (de-)registering
2908
	for f in `find debian -name '*.desktop' ! -name "*soffice.od*"`; do \
206 by Rene Engelhard
revert %U -> %F change, breaks opening of remote files
2909
		sed -i -e '/^Comment\[de\]/s/- *\([a-zA-Z0-9]*\) *macht.*glich.*$$/mit \1/' $$f; \
853 by Rene Engelhard
update GSIs, fix typo
2910
		if ! grep -q X-KDE-Protocols $$f; then \
852 by Rene Engelhard
fix snafu when getting changes over; more .desktop fixes
2911
			echo 'X-KDE-Protocols=file,http,smb,ftp,webdav' >> $$f; \
2912
		fi; \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
2913
	done
1200 by Chris Cheney
openoffice.org (1:3.0.1-4ubuntu1) jaunty; urgency=low
2914
	sed -i -e 's/Office;/Office;Graphics;/' $(PKGDIR)-draw/usr/share/applications/openoffice.org$(VER)-draw.desktop
831 by Rene Engelhard
lintian fixes
2915
	# invalid, according to lintian. make it shut up.
901.1.8 by Rene Engelhard
really fix ooo-extension.desktop installation
2916
	for i in writer calc impress draw math base; do \
1200 by Chris Cheney
openoffice.org (1:3.0.1-4ubuntu1) jaunty; urgency=low
2917
		perl -pi -e 's/Application;//; s/X-Red-Hat-Base;//; s/X-SuSE-Core-Office;//; s/X-MandrivaLinux-.*;//;' $(PKGDIR)-$$i/usr/share/applications/openoffice.org$(VER)-$$i.desktop; \
831 by Rene Engelhard
lintian fixes
2918
	done
1022.1.324 by Rene Engelhard
qstart.desktop is in the brand layer; fix double |
2919
	perl -pi -e 's/Application;//' $(PKGDIR)-gtk/$(OOBRANDDIR)/share/xdg/qstart.desktop
533 by Rene Engelhard
some more Ubuntu merge (ooo-build desktops); Build-Conflict against libstlport5.0-dev (= 5.0.2-10); add README.Debian-source
2920
else
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2921
	# menu files from $(OOO_BUILD_TREE)/desktop
533 by Rene Engelhard
some more Ubuntu merge (ooo-build desktops); Build-Conflict against libstlport5.0-dev (= 5.0.2-10); add README.Debian-source
2922
	for p in writer calc impress draw math base; do \
2923
		mkdir -p -m755 $(PKGDIR)-$$p/usr/share/applications ;\
2924
			sed -e '/^TryExec=.*/d' \
1211 by Chris Cheney
openoffice.org (1:3.0.1-9ubuntu2) jaunty; urgency=low
2925
			    -e "s,^Exec=.*,Exec=ooffice$(VER) -$$p %F," \
533 by Rene Engelhard
some more Ubuntu merge (ooo-build desktops); Build-Conflict against libstlport5.0-dev (= 5.0.2-10); add README.Debian-source
2926
			    -e "s,^Icon=.*,Icon=ooo-$$p," \
2927
			    -e '/^Name=/s,  , ,' \
2928
			    -e 's/@STARTUPNOTIFY@/true/' \
2929
			    -e '/^Categories/s/Office/Application;Office/' \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
2930
				$(OOO_BUILD_TREE)/desktop/$$p.desktop \
1200 by Chris Cheney
openoffice.org (1:3.0.1-4ubuntu1) jaunty; urgency=low
2931
				> $(PKGDIR)-$$p/usr/share/applications/openoffice.org$(VER)-$$p.desktop || exit 1 ;\
533 by Rene Engelhard
some more Ubuntu merge (ooo-build desktops); Build-Conflict against libstlport5.0-dev (= 5.0.2-10); add README.Debian-source
2932
	done
2933
endif
1022.1.2 by Rene Engelhard
overrides.lintian -> lintian-overrides and use dh_lintian
2934
	# add version to .menu and .lintian-overrides
1022.1.387 by Rene Engelhard
fix @ICONVERSION@
2935
	ICONVERSION=`grep PRODUCTVERSION $(SOURCE_TREE)/sysui/desktop/productversion.mk | head -n 1 | cut -d"=" -f2 | cut -d"." -f1 | sed -e s/\ //g`; \
1022.10.497 by Rene Engelhard
fix lintian-overrides creation
2936
	for i in base calc draw impress math writer; do \
808 by Rene Engelhard
- update ooo-build
2937
		cat debian/openoffice.org$(VER)-$$i.menu.in \
2938
			| sed -e s/@ICONVERSION@/$$ICONVERSION/ \
1022.10.497 by Rene Engelhard
fix lintian-overrides creation
2939
			| sed -e s/@VER@/$(VER)/ \
808 by Rene Engelhard
- update ooo-build
2940
			> debian/openoffice.org$(VER)-$$i.menu; \
1022.10.503 by Rene Engelhard
add missing ; \ to that $ICONVERSION is set again
2941
	done; \
1022.10.497 by Rene Engelhard
fix lintian-overrides creation
2942
	for i in base calc core draw impress math writer; do \
1022.1.2 by Rene Engelhard
overrides.lintian -> lintian-overrides and use dh_lintian
2943
		cat debian/openoffice.org$(VER)-$$i.lintian-overrides.in \
808 by Rene Engelhard
- update ooo-build
2944
			| sed -e s/@ICONVERSION@/$$ICONVERSION/ \
1022.15.15 by Rene Engelhard
more stuff needed for ooo- -> openoffice.org- rename
2945
			| sed -e s/@VER@/$(VER)/ \
1022.10.494 by Rene Engelhard
lintian fixes
2946
			| sed -e s/@BASIS_VERSION@/$(BASIS_VERSION)/ \
1022.1.2 by Rene Engelhard
overrides.lintian -> lintian-overrides and use dh_lintian
2947
			> debian/openoffice.org$(VER)-$$i.lintian-overrides; \
808 by Rene Engelhard
- update ooo-build
2948
	done
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
2949
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
2950
ifeq "$(BUILD_PYUNO)" "y"
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
2951
	# PyUNO packaging
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
2952
	install -d $(PYTHON_SITE)
2953
	mv debian/python-uno/$(OODIR)/program/uno.py $(PYTHON_SITE)
2954
	mv debian/python-uno/$(OODIR)/program/unohelper.py $(PYTHON_SITE)
55 by Martin Kretzschmar
Imported openoffice.org2_1.9.116-0.pre1
2955
	touch debian/python-uno/$(OODIR)/program/pythonloader.unorc
2956
	chmod u+w debian/python-uno/$(OODIR)/program/pythonloader.unorc
2957
	( echo '[Bootstrap]'; \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
2958
	  echo 'PYTHONHOME=file:///usr/lib/python$(PYMAJOR).$(PYMINOR)' ;\
63 by Martin Kretzschmar
add /site-packages to pythonloader.unorc
2959
	  echo 'PYTHONPATH=$$PYTHONHOME $$PYTHONHOME/site-packages $$PYTHONHOME/lib-dynload $$PYTHONHOME/lib-tk $$ORIGIN' \
55 by Martin Kretzschmar
Imported openoffice.org2_1.9.116-0.pre1
2960
	) > debian/python-uno/$(OODIR)/program/pythonloader.unorc
2961
	chmod u-w debian/python-uno/$(OODIR)/program/pythonloader.unorc
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
2962
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2963
	mkdir -p debian/python-uno/usr/share/doc/python-uno
2964
	for i in doc demo; do \
2965
		cp -r $(SOURCE_TREE)/pyuno/$$i \
2966
		  debian/python-uno/usr/share/doc/python-uno; \
2967
	done
2968
	cd debian/python-uno/usr/share/doc/python-uno && \
388 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-127; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.3--patch-16
2969
		find . -type d -name "CVS" | xargs -r rm -rf
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
2970
endif
50 by Martin Kretzschmar
Imported openoffice.org2_1.9.89-0pre (end of CVS)
2971
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
2972
ifeq "$(ENABLE_MONO)" "y"
2973
	# Mono bindings
1022.1.181 by Rene Engelhard
update mono install and reenable the mono packages
2974
	mkdir -p -m755 debian/cli-uno-bridge/$(OOUREDIR)/lib
2975
	mv $(PKGDIR)-core/$(OOBRANDDIR)/ure/lib/cli_uno_bridge.dll \
2976
		debian/cli-uno-bridge/$(OOUREDIR)/lib
1022.1.205 by Rene Engelhard
one more filter->sdext update; fix mono install - ooo-build now apparently installs cli_uno_bridge.dll.config into the packages
2977
	mv $(PKGDIR)-core/$(OOBRANDDIR)/ure/lib/cli_uno_bridge.dll.config \
1022.1.181 by Rene Engelhard
update mono install and reenable the mono packages
2978
		debian/cli-uno-bridge/$(OOUREDIR)/lib
2979
	mv debian/ure/$(OOUREDIR)/lib/libcli* \
2980
		debian/cli-uno-bridge/$(OOUREDIR)/lib
1022.4.1 by Rene Engelhard
make more compliant with mono policy
2981
	mkdir -p debian/cli-uno-bridge/usr/lib/pkgconfig
1010 by Rene Engelhard
Replace non-working link to license.html with link to
2982
	cat debian/tmp/usr/lib/pkgconfig/mono-$(OODIRNAME).pc \
1149 by Rene Engelhard
pkg-config fixes again
2983
		| sed -e s,/usr/lib/mono/openoffice,/usr/lib/cli/uno-1.0,g \
1022.1.181 by Rene Engelhard
update mono install and reenable the mono packages
2984
		| sed -e s,/usr/lib/cli/uno-1.0/cli_uno_bridge.dll,/$(OOUREDIR)/lib/cli_uno_bridge.dll, \
1022.4.1 by Rene Engelhard
make more compliant with mono policy
2985
		> debian/cli-uno-bridge/usr/lib/pkgconfig/mono-$(OODIRNAME).pc
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
2986
endif
2987
1022.10.429 by Rene Engelhard
- fix usr/lib/openoffice/ure removal to not fail if the dir does
2988
	# should be empty now, remove if there
2989
	rm -rf $(PKGDIR)-core/$(OOBRANDDIR)/ure
1022.10.423 by Rene Engelhard
the mono stuff is also in /usr/lib/openoffice/ure, move rm after the mono install
2990
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
2991
ifeq "$(PACKAGE_SDK)" "y"
819 by Chris Cheney
indentation cleanups
2992
  ifeq "$(USE_SYSTEM_STLPORT)" "y"
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
2993
	# when we use external stlport, we just can and should do a symlink
260 by Rene Engelhard
use ooo-builds simple-install for the SDK
2994
	# for the SDK includes
1010 by Rene Engelhard
Replace non-working link to license.html with link to
2995
	cd $(PKGDIR)-dev/usr/include/$(OODIRNAME) && \
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
2996
		rm -rf stl && ln -s /usr/include/stlport stl
819 by Chris Cheney
indentation cleanups
2997
  endif
2998
  ifeq "$(ENABLE_JAVA)" "y"
260 by Rene Engelhard
use ooo-builds simple-install for the SDK
2999
	# move SDK Java stuff into /usr/share/java/openoffice
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3000
	rm -f $(PKGDIR)-dev/$(OOSDKDIR)/classes
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3001
	mkdir -p $(PKGDIR)-dev/usr/share/java/$(OODIRNAME)/win
3002
	mkdir -p $(PKGDIR)-dev/usr/share/java/$(OODIRNAME)/com/sun/star/lib/loader
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3003
	mkdir -p $(PKGDIR)-dev/$(OOSDKDIR)/classes/com/sun/star/lib/loader
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
3004
	mv $(PKGDIR)-dev/usr/share/openoffice$(VER)/sdk/classes/com/sun/star/lib/loader/* \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3005
		$(PKGDIR)-dev/usr/share/java/$(OODIRNAME)/com/sun/star/lib/loader && \
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
3006
	mv $(PKGDIR)-dev/usr/share/openoffice$(VER)/sdk/classes/win \
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3007
		$(PKGDIR)-dev/$(OOSDKDIR)/classes
3008
	chmod 644 $(PKGDIR)-dev/$(OOSDKDIR)/classes/win/unowinreg.dll
3009
	cd $(PKGDIR)-dev/$(OOSDKDIR)/classes/com/sun/star/lib/loader && \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3010
		for i in $(CURDIR)/$(PKGDIR)-dev/usr/share/java/$(OODIRNAME)/com/sun/star/lib/loader/*.class; do \
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
3011
			ln -s `echo $$i | sed -e 's,$(CURDIR)/$(PKGDIR)-dev,,'` `basename $$i`; \
3012
		done
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
3013
	rm -rf $(PKGDIR)-dev/usr/share/openoffice$(VER)/sdk
819 by Chris Cheney
indentation cleanups
3014
  endif
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3015
	chmod 644 $(PKGDIR)-dev/$(OOSDKDIR)/configure.pl
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
3016
	for i in csh csh.in; do \
3017
		perl -pi -e 's,/usr/bin/csh,/bin/csh,'\
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3018
			$(PKGDIR)-dev/$(OOSDKDIR)/setsdkenv_unix.$$i; \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
3019
	done
224 by Rene Engelhard
create wrapper scripts setting LD_LIBRARY_PATH for the SDK binaries again
3020
	# create wrapper scripts
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3021
	cd $(PKGDIR)-dev/$(OOSDKDIR)/bin && \
224 by Rene Engelhard
create wrapper scripts setting LD_LIBRARY_PATH for the SDK binaries again
3022
	for i in *; do \
3023
		mv $$i $$i.bin && \
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
3024
		( \
3025
		  echo "#!/bin/sh"; \
3026
		  echo "# wrapper script for OOos SDK programs"; \
3027
		  echo ""; \
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3028
		  echo 'LD_LIBRARY_PATH=/$(OOUREDIR)/lib /$(OOSDKDIR)/bin/`basename $$0`.bin "$$@"'; \
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
3029
		) > $$i; \
226 by Rene Engelhard
fix SDK wrapper installation
3030
		chmod 755 $$i; \
1022.10.15 by Rene Engelhard
regcomp is gone from the SDK in m38
3031
	done
359 by Rene Engelhard
simplify builddeps (fixing for apt-get build-dep), fix -dev/-dev-doc file conflict
3032
        # remove symlink, it should be in -dev-doc
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3033
	cd $(PKGDIR)-dev/$(OOSDKDIR) && \
359 by Rene Engelhard
simplify builddeps (fixing for apt-get build-dep), fix -dev/-dev-doc file conflict
3034
		rm docs
224 by Rene Engelhard
create wrapper scripts setting LD_LIBRARY_PATH for the SDK binaries again
3035
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
3036
	# install gsicheck into -dev
3037
	install -m755 $(SOURCE_TREE)/solver/$(shell . $(SOURCE_TREE)/*.sh; echo $$UPD/$$OUTPATH$$PROEXT)/bin/gsicheck \
3038
		$(PKGDIR)-dev/$(OODIR)/program/gsicheck.bin
3039
	( \
3040
	  echo '#! /bin/sh'; \
3041
	  echo 'LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}/$(OODIR)/program'; \
3042
	  echo 'export LD_LIBRARY_PATH'; \
3043
	  echo 'exec /$(OODIR)/program/gsicheck.bin "$$@"'; \
3044
	) > $(PKGDIR)-dev/$(OODIR)/program/gsicheck
3045
	chmod 755 $(PKGDIR)-dev/$(OODIR)/program/gsicheck
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
3046
endif
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
3047
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3048
ifeq "$(INTERNAL_STDLIBS)" "y"
3049
	# we have to do this manually; specifying --without-system-stdlibs
3050
	# won't work because the odering of the configure arguments...
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
3051
	LIBSTDCPP=`readlink `PATH=$(BUILD_PATH) g++ --print-file-name=libstdc++.so``; \
3052
	LIBGCC=`readlink `PATH=$(BUILD_PATH) gcc --print-file-name=libgcc_s.so``; \
3053
	LIBSTDCPP_SOVER=`echo $$LIBSTDCPP | sed -e 's/.*\.//'`; \
3054
	LIBGCC_SOVER=`echo $$LIBGCC | sed -e 's/.*\.//'`; \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3055
	cp $$LIBSTDCPP debian/ure/$(OOUREDIR)/lib; \
3056
	cp $$LIBGCC debian/ure/$(OOUREDIR)/lib; \
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
3057
	echo "libstdc++	$$LIBSTDCPP_SOVER" > debian/shlibs.override.stdlibs; \
3058
	echo "libgcc_s	$$LIBGCC_SOVER" >> debian/shlibs.override.stdlibs
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3059
endif
981 by Rene Engelhard
disable --with-max-jobs= for now, improve comment, symlink libstlport_gcc.so only with USE_STLPORT=y
3060
ifeq "$(USE_STLPORT)" "y"
3061
  ifeq "$(USE_SYSTEM_STLPORT)" "y"
1022.1.271 by Rene Engelhard
fix libstlport_gcc symlink
3062
	rm -f debian/ure/$(OOUREDIR)/lib/libstlport*
1002 by Rene Engelhard
we need readlink -f
3063
	ln -s `readlink -f /usr/lib/libstlport_gcc.so` \
1022.1.271 by Rene Engelhard
fix libstlport_gcc symlink
3064
		debian/ure/$(OOUREDIR)/lib/libstlport_gcc.so
981 by Rene Engelhard
disable --with-max-jobs= for now, improve comment, symlink libstlport_gcc.so only with USE_STLPORT=y
3065
  endif
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
3066
endif
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3067
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3068
ifeq "$(ENABLE_JAVA)" "y"
3069
  ifeq "$(BUILD_JARS_NATIVE)" "y"
826 by Chris Cheney
* debian/control.2.in:
3070
    ifneq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
523 by Rene Engelhard
Ubuntu merge
3071
	rm -rf $(PKGDIR)-gcj/usr/lib/gcj
3072
	mkdir -p $(PKGDIR)-gcj/usr/lib/gcj/openoffice
3073
	cp -p debian/tmp/native-jars/gcj/* $(PKGDIR)-gcj/usr/lib/gcj/openoffice
3074
	mkdir -p $(PKGDIR)-gcj/usr/share/gcj/classmap.d
3075
	cp -p debian/tmp/native-jars/tmp.db \
3076
		$(PKGDIR)-gcj/usr/share/gcj/classmap.d/openoffice.org.db
826 by Chris Cheney
* debian/control.2.in:
3077
    endif
410 by Rene Engelhard
merge -l10n-en-us back into -common; move gcj classmap generation into the right conditional
3078
  endif
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
3079
endif
3080
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3081
ifeq "$(USE_COMMON_DOCDIR)" "y"
3082
	# install some docs (docdir of the uno-libs3 package). 
3083
	mkdir -p $(PKGDIR)-base/usr/share/doc/uno-libs3
3084
	cp $(OOO_BUILD_TREE)/doc/using-mysql-databases.txt \
3085
	    $(PKGDIR)-base/usr/share/doc/uno-libs3
3086
	cp $(OOO_BUILD_TREE)/doc/data-from-remote-mysql-server.txt \
3087
	    $(PKGDIR)-base/usr/share/doc/uno-libs3
3088
else
55 by Martin Kretzschmar
Imported openoffice.org2_1.9.116-0.pre1
3089
	# install some docs.
3090
	mkdir -p $(PKGDIR)-base/usr/share/doc/openoffice.org$(VER)-base
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
3091
	cp $(OOO_BUILD_TREE)/doc/using-mysql-databases.txt \
55 by Martin Kretzschmar
Imported openoffice.org2_1.9.116-0.pre1
3092
		$(PKGDIR)-base/usr/share/doc/openoffice.org$(VER)-base
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
3093
	cp $(OOO_BUILD_TREE)/doc/data-from-remote-mysql-server.txt \
55 by Martin Kretzschmar
Imported openoffice.org2_1.9.116-0.pre1
3094
		$(PKGDIR)-base/usr/share/doc/openoffice.org$(VER)-base
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3095
endif
3096
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
3097
ifeq "$(PACKAGE_SDK)" "y"
819 by Chris Cheney
indentation cleanups
3098
  ifeq "$(ENABLE_JAVA)" "y"
113 by Rene Engelhard
install the Java UNO sources
3099
	# install the UNO Java sources for e.g. eclipse
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3100
	mkdir -p $(CURDIR)/$(PKGDIR)-dev/usr/share/java/$(OODIRNAME)
117 by Rene Engelhard
fix _src install
3101
	cd $(SOURCE_TREE)/solver/$(shell . $(SOURCE_TREE)/*.sh; echo $$UPD)/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/bin && \
162 by Rene Engelhard
don't try to install sandbox_src.zip, isn't there
3102
		for i in juh jurt jut ridl unoloader; do \
117 by Rene Engelhard
fix _src install
3103
			cp $${i}_src.zip \
113 by Rene Engelhard
install the Java UNO sources
3104
			  $(CURDIR)/$(PKGDIR)-dev/usr/share/java/openoffice; \
3105
		done
819 by Chris Cheney
indentation cleanups
3106
  endif
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
3107
endif
304 by Rene Engelhard
merge openofficeorg--unstable--2.0.2--patch-142 - -144; fix grammar error; fix some native jar stuff and enable it for i386 and powerpc; add soffice symlink; add libjava_uno -> libjava_uno.so link; control.mozilla.in fixes
3108
3109
ifeq "$(ENABLE_JAVA)" "y"
3110
	# hrmpf, again something like that, we really need to find the root cause for that
3111
	ln -s libjava_uno.so \
1022.1.84 by Rene Engelhard
more installation fixes
3112
		debian/ure/$(OOUREDIR)/lib/libjava_uno
304 by Rene Engelhard
merge openofficeorg--unstable--2.0.2--patch-142 - -144; fix grammar error; fix some native jar stuff and enable it for i386 and powerpc; add soffice symlink; add libjava_uno -> libjava_uno.so link; control.mozilla.in fixes
3113
endif
383 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-113
3114
402 by Rene Engelhard
fix shlibs.local generation; merge openofficeorg--unstable--2.0.3--patch-145
3115
	# move impressgraphics filter stuff into -impress
404 by Rene Engelhard
enable binfilters and pyuno on amd64; fix -dbgs description; remove usr/lib/debug/usr/lib/openoffice/sdk from -dbg because they somehow are not stripped; add replaces dfor uri-encode move; merge openofficeorg--unstable--2.0.3--patch-147
3116
	mkdir -p $(PKGDIR)-draw/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Types
3117
	mkdir -p $(PKGDIR)-draw/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Filter
3118
	mv $(PKGDIR)-draw/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Types/fcfg_impressgraphics_types.xcu \
3119
	  $(PKGDIR)-impress/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Types
3120
	mv $(PKGDIR)-draw/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Filter/fcfg_impressgraphics_filters.xcu \
3121
	  $(PKGDIR)-impress/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Filter
402 by Rene Engelhard
fix shlibs.local generation; merge openofficeorg--unstable--2.0.3--patch-145
3122
424 by Rene Engelhard
move removal of empty resource dir into the right target
3123
	# remove empty resource directories
3124
	for i in draw base writer impress calc math; do \
3125
		rm -rf $(PKGDIR)-$$i/$(OODIR)/program/resource; \
3126
	done
3127
1159.1.22 by Rene Engelhard
-9
3128
ifneq "$(ENABLE_REPORTDESIGN)" "y"
3129
	# unneeded. a no-Java arch, so the report-builder can't work anyway.
3130
	# (and we need to remove it here anyway as it otherwise would end up
3131
	# in -base)
3132
	rm -f $(PKGDIR)-base/$(OODIR)/program/librpt*
3133
else
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
3134
  ifeq "$(PACKAGE_BASE)" "y"
1159.1.22 by Rene Engelhard
-9
3135
	# move rpt stuff into -report-builder-bin
836 by Rene Engelhard
m225
3136
	rm -rf $(PKGDIR)-report-builder
1159.1.6 by Rene Engelhard
split librpt* out into a -report-builder-bin package
3137
	rm -rf $(PKGDIR)-report-builder-bin
3138
	mkdir -p $(PKGDIR)-report-builder-bin/$(OODIR)/program
806 by Rene Engelhard
move *rpt* in to a -reportdesign package; register the reportdesign.oxt extension to actually get this feature, install *updchk* again
3139
	mv $(PKGDIR)-base/$(OODIR)/program/librpt* \
1159.1.6 by Rene Engelhard
split librpt* out into a -report-builder-bin package
3140
		$(PKGDIR)-report-builder-bin/$(OODIR)/program
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
3141
  endif
901.1.76 by Rene Engelhard
update ooo-build; add ENABLE_REPORTDESIGN conditional, disable it for etch; remove libsvg conditional; rm -f debian/scripts/aotcompile.py*; -l-base//program
3142
  ifeq "$(ENABLE_JAVA)" "y"
1159.1.22 by Rene Engelhard
-9
3143
	# install this; we need to register this ourselves later in
3144
	# the maintainer scripts. This is intended upstream (*rpt* stuff
3145
	# in OOo and the actual report builder as an extension, without which
806 by Rene Engelhard
move *rpt* in to a -reportdesign package; register the reportdesign.oxt extension to actually get this feature, install *updchk* again
3146
	# the *rpt* stuff is a no-op.
1022.24.47 by Rene Engelhard
the oxt filename changed again to only report-builder.oxt
3147
	install -D -m644 $(SOURCE_TREE)/reportbuilder/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/bin/report-builder.oxt \
3148
		$(PKGDIR)-report-builder/$(OOBRANDDIR)/share/extension/install/report-builder.oxt
859 by Rene Engelhard
m2; make opennoffice.org depend on openoffice.org-officebean; remove RID_STR_EXTENSION_NOT_PRESENT; bump HELP_L10N_VIRTUAL_VERSION to 2.3; make -qa-tools conflict against openoffice.org-core (<< 1:2.3.0~oog680m2); update GSIs; mention gdk hang fix
3149
	# unneeded license files
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3150
	for i in THIRDPARTYREADMELICENSE.html readme_en-US.html readme_en-US.txt; do \
1022.24.47 by Rene Engelhard
the oxt filename changed again to only report-builder.oxt
3151
		zip -d $(CURDIR)/$(PKGDIR)-report-builder/$(OOBRANDDIR)/share/extension/install/report-builder.oxt $$i; \
863 by Rene Engelhard
don't suggest openoffice.org-officebean anymore; use zip -d~
3152
	done
901.1.76 by Rene Engelhard
update ooo-build; add ENABLE_REPORTDESIGN conditional, disable it for etch; remove libsvg conditional; rm -f debian/scripts/aotcompile.py*; -l-base//program
3153
  endif
806 by Rene Engelhard
move *rpt* in to a -reportdesign package; register the reportdesign.oxt extension to actually get this feature, install *updchk* again
3154
endif
3155
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
3156
ifeq "$(ENABLE_MINIMIZER)" "y"
929 by Rene Engelhard
fix typo; enable opengl and build -ogltrans package with the package
3157
	rm -rf $(PKGDIR)-presentation-minimizer
1022.23.3 by Rene Engelhard
adapt for new .oxt filenames for -report-builder and presentation-minimizer
3158
	install -D -m644 $(SOURCE_TREE)/sdext/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/bin/presentation-minimizer.oxt \
3159
		$(PKGDIR)-presentation-minimizer/$(OOBRANDDIR)/share/extension/install/presentation-minimizer.oxt
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
3160
endif
3161
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
3162
ifeq "$(ENABLE_PRESENTER_CONSOLE)" "y"
3163
	rm -rf $(PKGDIR)-presenter-console
1022.1.54 by Rene Engelhard
more extension install fixes
3164
	install -D -m644 $(SOURCE_TREE)/sdext/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/bin/presenter-screen.oxt \
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
3165
		 $(PKGDIR)-presenter-console/$(OOBRANDDIR)/share/extension/install/presenter-screen.oxt
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
3166
endif
1034 by Chris Cheney
debian/rules: clean up whitespace
3167
1291 by Chris Cheney
openoffice.org (1:3.2.0-7ubuntu2) lucid; urgency=low
3168
ifeq "$(ENABLE_SDBC_POSTGRESQL)" "y"
843 by Rene Engelhard
package PostgreSQL SDBC Driver
3169
	rm -rf $(PKGDIR)-sdbc-postgresql
3170
	install -D -m644 $(SOURCE_TREE)/connectivity/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/lib/postgresql-sdbc-$(shell grep ^PQ_SDBC_M $(SOURCE_TREE)/connectivity/source/drivers/postgresql/makefile.mk | cut -d"=" -f2 | xargs | sed -e s/\ /\./g).zip \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3171
		$(PKGDIR)-sdbc-postgresql/$(OOBRANDDIR)/share/extension/install/postgresql-sdbc-$(shell grep ^PQ_SDBC_M $(SOURCE_TREE)/connectivity/source/drivers/postgresql/makefile.mk | cut -d"=" -f2 | xargs | sed -e s/\ /\./g).zip
1291 by Chris Cheney
openoffice.org (1:3.2.0-7ubuntu2) lucid; urgency=low
3172
endif
843 by Rene Engelhard
package PostgreSQL SDBC Driver
3173
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
3174
ifeq "$(ENABLE_MYSQLNATIVE)" "y"
3175
	rm -rf $(PKGDIR)-mysql-connector
1022.17.257 by Rene Engelhard
the extension now has no version number and extra stuff in the oxt anymore
3176
	install -D -m644 $(SOURCE_TREE)/mysqlc/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/bin/mysql-connector-ooo.oxt \
3177
		$(PKGDIR)-mysql-connector/$(OOBRANDDIR)/share/extension/install/mysql-connector-ooo.oxt
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
3178
endif
3179
1022.1.18 by Rene Engelhard
PDF Import extension...
3180
ifeq "$(ENABLE_PDFIMPORT)" "y"
3181
	rm -rf $(PKGDIR)-pdfimport
1022.1.205 by Rene Engelhard
one more filter->sdext update; fix mono install - ooo-build now apparently installs cli_uno_bridge.dll.config into the packages
3182
	install -D -m644 $(SOURCE_TREE)/sdext/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/bin/pdfimport.oxt \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3183
		$(PKGDIR)-pdfimport/$(OOBRANDDIR)/share/extension/install/pdfimport.oxt
1022.1.18 by Rene Engelhard
PDF Import extension...
3184
endif
1022.1.54 by Rene Engelhard
more extension install fixes
3185
1022.10.213 by Rene Engelhard
move services.rdb to /var/lib/openoffice/basisX.Y/program, deregister libevoabl?.so on install-arch and install maintainer scripts for (de-)registering it on install/remove
3186
	# move services.rdb to /var/lib/openoffice
3187
	mkdir -p $(PKGDIR)-core/var/lib/$(OODIRNAME)/basis$(OOVER)/program
3188
	mv $(PKGDIR)-core/usr/lib/$(OODIRNAME)/basis$(OOVER)/program/services.rdb \
3189
		$(PKGDIR)-core/var/lib/$(OODIRNAME)/basis$(OOVER)/program/services.rdb
3190
	ln -s /var/lib/$(OODIRNAME)/basis$(OOVER)/program/services.rdb \
3191
		$(PKGDIR)-core/usr/lib/$(OODIRNAME)/basis$(OOVER)/program/services.rdb
3192
1250 by Matthias Klose
* Work around libgcc3_uno.so runtime failures on armel.
3193
		
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3194
	for i in $(ARCH_DEP_PACKAGES); do \
1022.10.516 by Rene Engelhard
migrate bug script installation to dh_bugfiles
3195
		if [ -e debian/$$i.bug-script.in ]; then \
3196
			cat debian/$$i.bug-script.in \
1022.1.117 by Rene Engelhard
fix script.bugs
3197
				| sed -e "s/@PLATFORMID@/$(PLATFORMID)/" \
1022.17.353 by Rene Engelhard
fix component bug scripts and add the kab one
3198
				| sed -e "s/@BASIS_VERSION@/$(BASIS_VERSION)/" \
1022.10.516 by Rene Engelhard
migrate bug script installation to dh_bugfiles
3199
				> debian/$$i.bug-script; \
1001 by Rene Engelhard
install bug scripts; fix openoffice.org-core.control.bug and add new controls; update ooo-build; -2
3200
		fi ;\
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3201
	done
1022.17.326 by Rene Engelhard
update to use @OOBASISDIR@ and move links.in creation to install-arch, it's not a maintscript
3202
	# generate .links files from *.in	
3203
	for PKG in $(ARCH_DEP_PACKAGES); do \
3204
	  LINKS=debian/$$PKG.links ; \
3205
	  if [ -e $$LINKS.in ]; then \
3206
	    sed -e "s/\@LIBSUFFIX\@/$(LIBSUFFIX)/g" \
3207
		-e "s#\@OOBASISDIR\@#$(OOBASISDIR)#g" \
3208
		< $$LINKS.in > $$LINKS ; \
3209
	  fi; \
3210
	done
3211
1220 by Chris Cheney
Fix issue with building openoffice.org-l10n.
3212
endif # ifneq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3213
512 by Rene Engelhard
broffice.org fixes; mention ka GSI
3214
	touch $@
1034 by Chris Cheney
debian/rules: clean up whitespace
3215
512 by Rene Engelhard
broffice.org fixes; mention ka GSI
3216
broffice: $(STAMP_DIR)/broffice
3217
$(STAMP_DIR)/broffice: $(STAMP_DIR)/install $(STAMP_DIR)/install-arch $(STAMP_DIR)/install-indep $(STAMP_DIR)/langpacks
3218
	dh_testdir
3219
	dh_testroot
1250 by Matthias Klose
* Work around libgcc3_uno.so runtime failures on armel.
3220
	
500 by Rene Engelhard
add broffice.org package; enable amd64; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.4--patch-15, add persons to changelog
3221
	# BrOffice.org
3222
	rm -rf debian/broffice.org
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
3223
	mkdir -p debian/broffice.org$(VER)/usr/bin
3224
	mkdir -p debian/broffice.org$(VER)/usr/share/applications
3225
	mkdir -p debian/broffice.org$(VER)/usr/share/application-registry
1022.1.284 by Rene Engelhard
install extension.desktop again; MimeType=application/vnd.openofficeorg.extension in startcenter.desktop
3226
	mkdir -p debian/broffice.org$(VER)/usr/share/mimelnk/application
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
3227
	mkdir -p debian/broffice.org$(VER)/$(OOBRANDDIR)/program/resource
1022.1.277 by Rene Engelhard
merge, s/data/modules/
3228
	mkdir -p debian/broffice.org$(VER)/$(OOBRANDDIR)/share/registry/modules/org/openoffice/Setup
1022.1.339 by Rene Engelhard
also change UI-brand.xcu for BrOffice.org
3229
	mkdir -p debian/broffice.org$(VER)/$(OOBRANDDIR)/share/registry/modules/org/openoffice/Office/UI
1022.10.218 by Rene Engelhard
oops
3230
ifeq "$(BUILD_KDE)" "y"
1022.10.204 by Rene Engelhard
add /usr/share/template stuff for KDE
3231
	mkdir -p debian/broffice.org$(VER)/usr/share/templates
1022.10.217 by Rene Engelhard
add missed BUILD_KDE conditionals
3232
endif
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3233
	cat $(PKGDIR)-common/$(OOBRANDDIR)/program/bootstraprc \
500 by Rene Engelhard
add broffice.org package; enable amd64; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.4--patch-15, add persons to changelog
3234
		| sed -e "s/OpenO/BrO/" | sed -e "s/openo/bro/" \
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
3235
		> debian/broffice.org$(VER)/$(OOBRANDDIR)/program/bootstraprc
1022.1.74 by Rene Engelhard
typo
3236
	cat $(PKGDIR)-common/$(OOBRANDDIR)/program/versionrc \
1022.1.75 by Rene Engelhard
keep build version, fix the oher (unneeded..) occurances of OpenOffice.org
3237
		| sed -e "s/en-US/pt-BR/" | sed -e "s/OpenO/BrO/" \
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
3238
		> debian/broffice.org$(VER)/$(OOBRANDDIR)/program/versionrc
1022.1.277 by Rene Engelhard
merge, s/data/modules/
3239
	cat $(PKGDIR)-common/$(OOBRANDDIR)/share/registry/modules/org/openoffice/Setup/Setup-brand.xcu \
500 by Rene Engelhard
add broffice.org package; enable amd64; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.4--patch-15, add persons to changelog
3240
		| sed -e "s/OpenO/BrO/" \
1022.1.277 by Rene Engelhard
merge, s/data/modules/
3241
		> debian/broffice.org$(VER)/$(OOBRANDDIR)/share/registry/modules/org/openoffice/Setup/Setup-brand.xcu
1022.1.339 by Rene Engelhard
also change UI-brand.xcu for BrOffice.org
3242
	cat $(PKGDIR)-common/$(OOBRANDDIR)/share/registry/modules/org/openoffice/Office/UI/UI-brand.xcu \
3243
		| sed -e "s/OpenO/BrO/" \
3244
		> debian/broffice.org$(VER)/$(OOBRANDDIR)/share/registry/modules/org/openoffice/Office/UI/UI-brand.xcu
1022.10.217 by Rene Engelhard
add missed BUILD_KDE conditionals
3245
ifeq "$(BUILD_KDE)" "y"
1022.10.204 by Rene Engelhard
add /usr/share/template stuff for KDE
3246
	for i in odt ods odp odg; do \
3247
		cat $(PKGDIR)-kde/usr/share/templates/soffice.$${i}.desktop \
3248
			| sed -e "s/OpenO/BrO/" \
3249
			> debian/broffice.org$(VER)/usr/share/templates/soffice.$${i}.desktop; \
3250
	done
1022.10.217 by Rene Engelhard
add missed BUILD_KDE conditionals
3251
endif
508 by Rene Engelhard
remove unneeded libupdchk680*so; fix broffice.org resources changing; make -help-* depend on -writer; make -common conflict against openoffice.org-debian-menus; add LIBGCJ_SONR variable to make DBG_DBG_SUGGESTS and JAWT_DEPENDS more generic
3252
	for iso in $(LANGPACKISOS); do \
512 by Rene Engelhard
broffice.org fixes; mention ka GSI
3253
		if [ "$$iso" = "en-US" ]; then p=common; else p=l10n-`echo $$iso | tr A-Z a-z`; fi; \
1022.1.149 by Rene Engelhard
fix merge error; -1
3254
		if [ -f $(PKGDIR)-$$p/$(OOBRANDDIR)/program/resource/ooo$$iso.res ]; then \
3255
			cat $(PKGDIR)-$$p/$(OOBRANDDIR)/program/resource/ooo$$iso.res \
1155 by Rene Engelhard
fix install for binary-only/en-US only builds; remove binary-arch->binary-indep dependency again
3256
			| sed -e "s/OpenO/BrO/" \
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
3257
			> debian/broffice.org$(VER)/$(OOBRANDDIR)/program/resource/ooo$$iso.res; \
1155 by Rene Engelhard
fix install for binary-only/en-US only builds; remove binary-arch->binary-indep dependency again
3258
		fi; \
500 by Rene Engelhard
add broffice.org package; enable amd64; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.4--patch-15, add persons to changelog
3259
	done
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
3260
	for i in writer calc draw impress math base startcenter; do \
1022.10.36 by Rene Engelhard
fix broffice.org ooo-starcenter.desktop diversioN
3261
		if [ "$$i" = "startcenter" ]; then d=common; else d=$$i; fi; \
1213 by Chris Cheney
Debian merge:
3262
		cat $(PKGDIR)-$$d/usr/share/applications/openoffice.org$(VER)-$$i.desktop \
500 by Rene Engelhard
add broffice.org package; enable amd64; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.4--patch-15, add persons to changelog
3263
			| sed -e "s/ooff/broff/" | sed -e "s/OpenO/BrO/" \
1200 by Chris Cheney
openoffice.org (1:3.0.1-4ubuntu1) jaunty; urgency=low
3264
			> debian/broffice.org$(VER)/usr/share/applications/openoffice.org$(VER)-$$i.desktop; \
500 by Rene Engelhard
add broffice.org package; enable amd64; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.4--patch-15, add persons to changelog
3265
	done
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
3266
	dirname="`cd $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/broffice.org >/dev/null; pwd`" ;\
3267
	mkdir -p -m755 debian/broffice.org/usr/share/mimelnk/application ;\
3268
	sed -e 's,Comment=Extension,Comment=BrOffice.org $(VER) Extension,' \
3269
	    -e 's,Icon=brofficeorg[0123456789]-extension,Icon=application-vnd.openofficeorg.extension.png,' \
3270
	    -e 's/  / /' \
3271
	    < $$dirname/extension.desktop \
3272
	    > debian/broffice.org/usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop || exit 1
3273
	mkdir -p debian/broffice.org/usr/share/application-registry && \
3274
	cat $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/broffice.org/openoffice.applications \
3275
		| sed -e s/OFFICENAME/broffice/g \
3276
		| sed -e s/\%PRODUCTNAME/BrOffice.org/g \
3277
		> debian/broffice.org/usr/share/application-registry/openoffice.applications
3278
	rm -f debian/broffice.org/usr/share/mime-info/openoffice.keys; \
3279
	mkdir -p debian/broffice.org/usr/share/mime-info/
3280
	for i in $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/broffice.org/*.keys; do \
3281
		cat $$i >> debian/broffice.org/usr/share/mime-info/openoffice.keys; \
3282
	done
1022.24.21 by Rene Engelhard
add intro.png from hg (cws nativeb) for now to get broffice.org to build sanely
3283
	t=`mktemp -q`.bmp ; \
3284
	if dpkg-parsechangelog | grep urgency | egrep -q "\~.*m[0123456789]+"; then \
1022.24.41 by Rene Engelhard
prepare for m17 aka 3.2.1rc1 with Suns tarballs; update translations
3285
		convert $(SOURCE_TREE)/ooo_custom_images/dev_nologo_broffice/introabout/intro.png $$t && \
1022.24.21 by Rene Engelhard
add intro.png from hg (cws nativeb) for now to get broffice.org to build sanely
3286
		 debian/scripts/fix_bmp_rgb \
3287
			 $$t \
3288
			 debian/broffice.org$(VER)/$(OOBRANDDIR)/program/intro.bmp; \
3289
	else \
3290
		convert $(SOURCE_TREE)/ooo_custom_images/nologo_broffice/introabout/intro.png $$t && \
3291
		debian/scripts/fix_bmp_rgb \
3292
			$$t \
3293
			debian/broffice.org$(VER)/$(OOBRANDDIR)/program/intro.bmp; \
3294
	fi
1022.24.23 by Rene Engelhard
about.bmp is gone, use about.png
3295
	install -m644 $(SOURCE_TREE)/ooo_custom_images/broffice/introabout/about.png \
3296
		debian/broffice.org$(VER)/$(OOBRANDDIR)/program/about.png
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3297
ifeq "$(DIST)" "Ubuntu"
1295 by Chris Cheney
openoffice.org (1:3.2.1~rc2-2ubuntu1) maverick; urgency=low
3298
	convert debian/broffice.org$(VER)/$(OOBRANDDIR)/program/about.png debian/broffice.org$(VER)/$(OOBRANDDIR)/program/about.bmp
3299
	rm debian/broffice.org$(VER)/$(OOBRANDDIR)/program/about.png
1282 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu3) lucid; urgency=low
3300
	mv debian/broffice.org$(VER)/$(OOBRANDDIR)/program/intro.bmp debian/broffice.org$(VER)/$(OOBRANDDIR)/program/openintro_ubuntu_oracle.bmp
3301
	mv debian/broffice.org$(VER)/$(OOBRANDDIR)/program/about.bmp debian/broffice.org$(VER)/$(OOBRANDDIR)/program/openabout_ubuntu_oracle.bmp
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3302
endif
1176 by Chris Cheney
Debian merge:
3303
	cd debian/broffice.org$(VER)/usr/bin && ln -s ooffice$(VER) broffice$(VER)
500 by Rene Engelhard
add broffice.org package; enable amd64; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.4--patch-15, add persons to changelog
3304
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
3305
	# this is referenced in .keys/.applications
1022.1.321 by Rene Engelhard
missing \
3306
	for i in `find $(PKGDIR)-common/usr/share/icons -name "openofficeorg*png"`; do \
1022.1.324 by Rene Engelhard
qstart.desktop is in the brand layer; fix double |
3307
		mkdir -p `dirname $$i | sed -e s,openoffice.org-common,broffice.org,`; \
1022.1.325 by Rene Engelhard
final fix...
3308
		ln -s `basename $$i` `echo $$i | sed -e s,openoffice.org-common,broffice.org, | sed -e s/openofficeorg/brofficeorg/`; \
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
3309
	done
1250 by Matthias Klose
* Work around libgcc3_uno.so runtime failures on armel.
3310
 
29 by Chris Halls
Imported openoffice_org-1_1_0-1
3311
	touch $@
3312
30 by Chris Halls
Imported openoffice_org-1_1_0-2
3313
# Install files generated by setup into arch-independent package directories
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
3314
install-indep: $(STAMP_DIR)/install-indep
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
3315
#$(STAMP_DIR)/install-indep: debian/openoffice.org$(VER).install 
3316
#$(STAMP_DIR)/install-indep: debian/openoffice.org$(VER)-mimelnk.install 
3317
#$(STAMP_DIR)/install-indep: debian/openoffice.org$(VER).dirs
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
3318
$(STAMP_DIR)/install-indep: $(STAMP_DIR)/install
29 by Chris Halls
Imported openoffice_org-1_1_0-1
3319
	dh_testdir
3320
	dh_testroot
3321
1220 by Chris Cheney
Fix issue with building openoffice.org-l10n.
3322
ifneq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
1022.1.84 by Rene Engelhard
more installation fixes
3323
	perl -pi -e 's,/bin,/usr/bin,' \
1022.1.251 by Chris Cheney
Updated code that needed $(VER) for consistency, even though it doesn't work
3324
		 debian/openoffice.org$(VER)-emailmerge/$(OODIR)/program/mailmerge.py
1022.1.84 by Rene Engelhard
more installation fixes
3325
442 by Rene Engelhard
add USE_GSTREAMER conditional; merge openofficeorg--unstable--2.0.3--patch-168
3326
ifneq "$(USE_GSTREAMER)" "y"
401 by Rene Engelhard
m180; merge openofficeorg--unstable--2.0.3--patch-143
3327
	# sound doesn't work anyway, remove the .wav files to save space
442 by Rene Engelhard
add USE_GSTREAMER conditional; merge openofficeorg--unstable--2.0.3--patch-168
3328
	rm -rf $(PKGDIR)-common/$(OODIR)/share/gallery/sounds
403 by Rene Engelhard
typo
3329
	rm -f $(PKGDIR)-common/$(OODIR)/share/gallery/sg9.*
442 by Rene Engelhard
add USE_GSTREAMER conditional; merge openofficeorg--unstable--2.0.3--patch-168
3330
endif
401 by Rene Engelhard
m180; merge openofficeorg--unstable--2.0.3--patch-143
3331
3332
	rm -f $(PKGDIR)-common/$(OODIR)/program/oo_product.bmp
3333
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
3334
	# Extract and install icons
1022.10.57 by Rene Engelhard
prepare for m40
3335
	cd $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/bin/desktop-integration && dpkg --extract openoffice.org$(OOVER)-debian-menus_*_all.deb . && cd usr/share/icons && \
1210 by Chris Cheney
openoffice.org (1:3.0.1-9ubuntu1) jaunty; urgency=low
3336
	rm -rf gnome locolor && \
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
3337
	for d in `find -type d`; do \
49 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu4
3338
	  install -d -m755 $(CURDIR)/$(PKGDIR)-common/usr/share/icons/$$d || exit 1 ;\
3339
	done &&\
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
3340
	for f in `find -type f`; do \
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
3341
	  install -m644 $$f $(CURDIR)/$(PKGDIR)-common/usr/share/icons/$$f || exit 1 ;\
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
3342
	done && cd ../../.. && rm -rf usr etc
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3343
1022.10.35 by Rene Engelhard
fix startcenter.desktop install (was in wrong target)
3344
ifeq "$(USE_OOO_BUILD_DESKTOPS)" "n"
3345
	# menu files from sysui
3346
	dirname="`cd $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/desktopshare >/dev/null; pwd`" ;\
3347
	mkdir -p -m755 $(PKGDIR)-common/usr/share/applications ;\
3348
	sed -e 's,Exec=$${UNIXPRODUCTNAME}$${PRODUCTVERSION} \(.*\) %U,Exec=ooffice$(VER) \1 %U,' \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3349
	    -e 's,Icon=$${WITHOUTDOTUNIXPRODUCTNAME},Icon=openofficeorg,' \
1022.10.35 by Rene Engelhard
fix startcenter.desktop install (was in wrong target)
3350
	    -e 's,Name=$${PRODUCTNAME} $${PRODUCTVERSION},Name=OpenOffice.org $(VER),' \
3351
	    -e 's/  / /' \
3352
	   < $$dirname/startcenter.desktop \
1022.15.12 by Rene Engelhard
more Ubuntu merge
3353
	   > $(PKGDIR)-common/usr/share/applications/openoffice.org$(VER)-startcenter.desktop || exit 1
1022.10.35 by Rene Engelhard
fix startcenter.desktop install (was in wrong target)
3354
	# remove Sun reference 
1022.15.12 by Rene Engelhard
more Ubuntu merge
3355
	perl -pi -e 's/ Supported by Sun Microsystems.//' $(PKGDIR)-common//usr/share/applications/openoffice.org$(VER)-startcenter.desktop
1022.10.35 by Rene Engelhard
fix startcenter.desktop install (was in wrong target)
3356
	# invalid, according to lintian. make it shut up.
1022.15.12 by Rene Engelhard
more Ubuntu merge
3357
	perl -pi -e 's/Application;//; s/X-Red-Hat-Base;//; s/X-SuSE-Core-Office;//; s/X-MandrivaLinux-.*;//;' $(PKGDIR)-common/usr/share/applications/openoffice.org$(VER)-startcenter.desktop
1022.10.35 by Rene Engelhard
fix startcenter.desktop install (was in wrong target)
3358
endif
3359
1022.1.289 by Rene Engelhard
fix icon and install openoffice.org.xml; fix merge error
3360
	# install .applications, .keys, .mime and openoffice.org.xml for
3361
	# shared-mime-info
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3362
	mkdir -p $(PKGDIR)-common/usr/share/application-registry && \
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
3363
	cat $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/openoffice.org/openoffice.applications \
1125 by Rene Engelhard
fixup openoffice.applications
3364
		| sed -e s/OFFICENAME/ooffice/g \
3365
		| sed -e s/\%PRODUCTNAME/OpenOffice.org/g \
3366
		> $(PKGDIR)-common/usr/share/application-registry/openoffice.applications
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3367
	mkdir -p $(PKGDIR)-common/usr/share/mime/packages && \
3368
	mkdir -p $(PKGDIR)-common/usr/share/mime-info && \
3369
	install -m644 $(SOURCE_TREE)/sysui/desktop/mimetypes/openoffice.mime \
3370
		$(PKGDIR)-common/usr/share/mime-info && \
3371
	rm -f $(PKGDIR)-common/usr/share/mime-info/openoffice.keys; \
722 by Rene Engelhard
update sysui; add abou.bmp to diversions, fix udk-common-ref doc-base
3372
	for i in $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/openoffice.org/*.keys; do \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3373
		cat $$i >> $(PKGDIR)-common/usr/share/mime-info/openoffice.keys; \
3374
	done
1022.1.289 by Rene Engelhard
fix icon and install openoffice.org.xml; fix merge error
3375
	install -m644 $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/openoffice.org/openoffice.org.xml \
3376
		$(PKGDIR)-common/usr/share/mime/packages
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3377
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3378
	mkdir -p $(PKGDIR)-common/usr/share/applications
702 by Rene Engelhard
install template.desktop as 'OpenOffice.org'
3379
18 by Chris Halls
Imported openoffice_org-1_0_2-2
3380
	# install openoffice-xlate-lang
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3381
	install -d -m755 $(PKGDIR)-common/usr/share/$(OODIRNAME)/bin
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
3382
	install -m755 $(OOO_BUILD_TREE)/bin/openoffice-xlate-lang \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3383
		$(PKGDIR)-common/usr/share/$(OODIRNAME)/bin
13 by Chris Halls
Imported openoffice_org-1_0_1-6rc1
3384
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3385
ifeq "$(HELPISOS)" ""
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
3386
	# when we don't build helpcontent2 here we are missing helpxsl.zip so
3387
	# this file doesn't get installed either. Do it manually..
1022.17.44 by Rene Engelhard
- move help into /usr/share (see #218067)
3388
	mkdir -p -m755 $(PKGDIR)-common/$(shell echo $(OODIR) | sed -e s/lib/share/)/help && \
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
3389
	cp $(SOURCE_TREE)/helpcontent2/source/auxiliary/main_transform.xsl \
1022.17.44 by Rene Engelhard
- move help into /usr/share (see #218067)
3390
		$(PKGDIR)-common/$(shell echo $(OODIR) | sed -e s/lib/share/)/help
1022.10.44 by Rene Engelhard
two more xsls in help/
3391
	cp $(SOURCE_TREE)/helpcontent2/source/auxiliary/idxcaption.xsl \
1022.17.44 by Rene Engelhard
- move help into /usr/share (see #218067)
3392
		$(PKGDIR)-common/$(shell echo $(OODIR) | sed -e s/lib/share/)/help
1022.10.44 by Rene Engelhard
two more xsls in help/
3393
	cp $(SOURCE_TREE)/helpcontent2/source/auxiliary/idxcontent.xsl \
1022.17.44 by Rene Engelhard
- move help into /usr/share (see #218067)
3394
		$(PKGDIR)-common/$(shell echo $(OODIR) | sed -e s/lib/share/)/help
51 by Martin Kretzschmar
Imported openoffice.org2_1.9.102-1
3395
endif
3396
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
3397
ifeq "$(PACKAGE_SDK)" "y"
353 by Rene Engelhard
improve SDK docs install; stop depending on -core from -common
3398
	rm -f $(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev-doc/LICENSE
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3399
	perl -pi -e 's,license.html,http://www.gnu.org/licenses/lgpl.html,' \
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3400
		$(PKGDIR)-dev-doc/$(OOSDKDIR)/index.html
1022.24.26 by Rene Engelhard
missed -type f
3401
	find $(PKGDIR)-dev-doc/$(OOBASISDIR)/sdk/examples -type f -exec chmod 644 {} \;
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3402
819 by Chris Cheney
indentation cleanups
3403
  ifeq "$(ENABLE_JAVA)" "y"
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3404
        # fix links
3405
	cd $(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev/docs/java/ref && \
3406
	for i in `find . -type f | xargs`; do \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
3407
		perl -pi -e 's,file:$(CURDIR)/$(OOO_BUILD_TREE)/build/$(TAG)/odk/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/bin/odkcommon/docs/common/ref/,,g' $$i; \
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3408
	done
819 by Chris Cheney
indentation cleanups
3409
  endif
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
3410
endif
211 by Rene Engelhard
enable -help-hu, merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.1--patch-48
3411
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3412
ifeq "$(ENABLE_JAVA)" "y"
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3413
	# move common Java stuff to -java-common
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3414
	rm -rf $(PKGDIR)-java-common
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
3415
	mkdir -p $(PKGDIR)-java-common/$(OODIR)/program/classes
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3416
	mkdir -p $(PKGDIR)-java-common/$(OODIR)/share/Scripts
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3417
	mkdir -p $(PKGDIR)-java-common/usr/share/java/$(OODIRNAME)
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3418
	mv $(PKGDIR)-common/$(OODIR)/share/Scripts/java \
171 by Rene Engelhard
update to rc4, fix some and fix Java Scripts installation
3419
		$(PKGDIR)-java-common/$(OODIR)/share/Scripts
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3420
	mv $(PKGDIR)-common/$(OODIR)/program/classes/* \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3421
		$(PKGDIR)-java-common/usr/share/java/$(OODIRNAME)
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
3422
	cd $(PKGDIR)-java-common/$(OODIR)/program/classes && \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3423
		for i in $(CURDIR)/$(PKGDIR)-java-common/usr/share/java/$(OODIRNAME)/*; do \
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
3424
			case "`basename $$i`" in aportisdoc.jar|pexcel.jar|pocketword.jar) continue ;; \
3425
			*) ln -s `echo $$i | sed -e 's,$(CURDIR)/$(PKGDIR)-java-common,,'` `basename $$i` ;; esac; \
3426
	done
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
3427
3428
	# move into extra package
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
3429
	rm -rf $(PKGDIR)-filter-mobiledev
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
3430
	mkdir -p $(PKGDIR)-filter-mobiledev/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Filter
3431
	mkdir -p $(PKGDIR)-filter-mobiledev/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Types
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3432
	mkdir -p $(PKGDIR)-filter-mobiledev/usr/share/java/$(OODIRNAME)
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
3433
	mkdir -p $(PKGDIR)-filter-mobiledev/$(OODIR)/program/classes
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
3434
	for i in palm pocketexcel pocketword; do \
3435
	  mv $(PKGDIR)-common/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Filter/fcfg_$${i}_filters.xcu \
3436
	    $(PKGDIR)-filter-mobiledev/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Filter; \
3437
	  mv $(PKGDIR)-common/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Types/fcfg_$${i}_types.xcu \
3438
	    $(PKGDIR)-filter-mobiledev/$(OODIR)/share/registry/modules/org/openoffice/TypeDetection/Types; \
3439
	done
3440
	for i in aportisdoc pexcel pocketword; do \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3441
	  mv $(PKGDIR)-java-common/usr/share/java/$(OODIRNAME)/$$i.jar \
3442
		$(PKGDIR)-filter-mobiledev/usr/share/java/$(OODIRNAME); \
3443
	  ln -s /usr/share/java/$(OODIRNAME)/$$i.jar \
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
3444
		$(PKGDIR)-filter-mobiledev/$(OODIR)/program/classes; \
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
3445
	done
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
3446
endif
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3447
3448
	# fix permissions
3449
	for i in editpic poll savepic show webcast; do \
3450
		chmod 755 $(PKGDIR)-common/$(OODIR)/share/config/webcast/$$i.pl; \
3451
	done
3452
1022.1.242 by Rene Engelhard
update ooo-build; conflict against not matching -qa-ui-tests; lintian fixes
3453
	rm -rf $(PKGDIR)-common/$(OOBRANDDIR)/LICENSE
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3454
3455
	# move uno_packages/cache to /var and create symlink for for
3456
	# documentation referencing it...
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3457
	rm -rf $(PKGDIR)-common/$(OOBRANDDIR)/share/uno_packages/cache
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3458
	mkdir -p $(PKGDIR)-common/var/spool/$(OODIRNAME)/uno_packages/cache
3459
	ln -s /var/spool/$(OODIRNAME)/uno_packages/cache \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3460
		$(PKGDIR)-common/$(OOBRANDDIR)/share/uno_packages/cache
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3461
	perl -pi -e \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3462
	      's,\$$UNO_SHARED_PACKAGES/cache,file:///var/spool/$(OODIRNAME)/uno_packages/cache,g' \
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
3463
		$(PKGDIR)-common/$(OODIR)/program/unorc
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3464
	# FIXME: What is this? unorc per default only mentiones
3465
	# share/uno_packages/cache...
3466
	rm -rf $(PKGDIR)-common/$(OODIR)/presets/uno_packages
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3467
1022.10.212 by Rene Engelhard
move javasettingsunopkginstall.xml once again to keep the path structure
3468
	# move javasettingsunopkginstall.xml to /var/lib
1022.10.229 by Rene Engelhard
* debian/openoffice.org-common.preinst.in, debian/rules:
3469
	mkdir -p $(PKGDIR)-common/$(shell echo $(OODIR) | sed -e s/usr/var/)/share/config
1022.10.157 by Rene Engelhard
fix typo; regenerate control
3470
	mv $(PKGDIR)-common/$(OODIR)/share/config/javasettingsunopkginstall.xml \
1022.10.229 by Rene Engelhard
* debian/openoffice.org-common.preinst.in, debian/rules:
3471
		$(PKGDIR)-common/$(shell echo $(OODIR) | sed -e s/usr/var/)/share/config/javasettingsunopkginstall.xml
3472
	ln -s /$(shell echo $(OODIR) | sed -e s/usr/var/)/share/config/javasettingsunopkginstall.xml \
1022.1.428 by Rene Engelhard
- move javasettingsunopkginstall.xml to /var/lib/openoffice and adapt
3473
		$(PKGDIR)-common/$(OODIR)/share/config/javasettingsunopkginstall.xml
1022.10.334 by Rene Engelhard
add export PYTHONPATH into /usr/lib/openoffice/program/unopkg, too.
3474
	# set PYTHONPATH in unopkg
1022.10.336 by Rene Engelhard
oops
3475
	perl -pi -e 's,export PATH,export PATH\n\nexport PYTHONPATH=\"/$(OOBASISDIR)/program\"\n\n,' \
1022.10.334 by Rene Engelhard
add export PYTHONPATH into /usr/lib/openoffice/program/unopkg, too.
3476
		$(PKGDIR)-common/$(OOBRANDDIR)/program/unopkg
1022.1.428 by Rene Engelhard
- move javasettingsunopkginstall.xml to /var/lib/openoffice and adapt
3477
772.1.3 by Rene Engelhard
remove FontOOo from script.xlb, update ooo-build
3478
	# install DicOOo; we need to do this manually; the
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3479
	# dictionaries/ module isn't built with --without-myspell-dicts
3480
	# and those two somehow (why?) are in there...
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3481
	mkdir -p $(PKGDIR)-common/usr/share/myspell/dicts
3482
	install -m644 $(SOURCE_TREE)/dictionaries/diclst/DicOOo.sxw \
3483
		$(PKGDIR)-common/usr/share/myspell/dicts
772.1.3 by Rene Engelhard
remove FontOOo from script.xlb, update ooo-build
3484
	# issue 79153
772.1.4 by Rene Engelhard
cut'n'waste error
3485
	perl -pi -e 's,\s<library:element library:name="FontOOo"/>\n,,' \
772.1.3 by Rene Engelhard
remove FontOOo from script.xlb, update ooo-build
3486
		$(PKGDIR)-common/$(OODIR)/share/basic/launcher/script.xlb
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3487
3488
ifeq "$(PACKAGE_TTF_OPENSYMBOL)" "y"
3489
	mkdir -p debian/ttf-opensymbol/usr/share/fonts/truetype/openoffice
1313.1.13 by Martin Pitt
debian/rules: Install opens___.ttf from debian/tmp, not from
3490
	install -m 644 debian/tmp/usr/lib/openoffice/basis3.2/share/fonts/truetype/opens___.ttf \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
3491
		debian/ttf-opensymbol/usr/share/fonts/truetype/openoffice
595 by Rene Engelhard
don't expect/install opens___.ttf in ooo-build, got removed; move ttf-opensymbol into control.fonts.in
3492
	rm -rf $(PKGDIR)-common/$(OODIR)/share/fonts/truetype
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
3493
else
3494
	rm -f $(PKGDIR)-common/$(OODIR)/share/fonts/truetype/opens___.ttf
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3495
endif
3496
3497
	# convert icons to xpm; we need them for the Debian menu policy...
1210 by Chris Cheney
openoffice.org (1:3.0.1-9ubuntu1) jaunty; urgency=low
3498
	cd $(PKGDIR)-common/usr/share/icons/hicolor/32x32/apps && \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3499
	  for x in *.png; do convert $$x `basename $$x .png`.xpm; done
52 by Martin Kretzschmar
Imported openoffice.org2_1.9.108-1
3500
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3501
ifeq "$(ENABLE_JAVA)" "y"
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
3502
	# symlink jars we use externally
1022.1.411 by Rene Engelhard
fix saxon conditional; use internal saxon
3503
  ifeq "$(USE_SYSTEM_SAXON)" "y"
1022.1.191 by Rene Engelhard
OOO300_m2
3504
	ln -sf /usr/share/java/saxonb.jar \
3505
		$(PKGDIR)-java-common/$(OODIR)/program/classes/saxon9.jar
819 by Chris Cheney
indentation cleanups
3506
  endif
3507
  ifeq "$(USE_SYSTEM_BSH)" "y"
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
3508
	ln -sf /usr/share/java/bsh.jar \
699 by Rene Engelhard
make classes a normal dir again since a symlink breaks the UNO bootstrap mechanism...
3509
	        $(PKGDIR)-java-common/$(OODIR)/program/classes/bsh.jar
819 by Chris Cheney
indentation cleanups
3510
  endif
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
3511
endif
53 by Martin Kretzschmar
Imported openoffice.org2_1.9.110-0pre1
3512
	# remove extra license files
1022.1.344 by Rene Engelhard
fix extra license/readme file removal
3513
	rm -rf $(PKGDIR)-common/$(OOBRANDDIR)/licenses
1022.1.114 by Rene Engelhard
update to beta2 branch (BEB300), m1
3514
	rm -f $(PKGDIR)-common/$(OOBRANDDIR)/share/readme/LICENSE*
3515
	rm -f $(PKGDIR)-common/$(OOBRANDDIR)/THIRDPARTYLICENSEREADME.html
1022.1.344 by Rene Engelhard
fix extra license/readme file removal
3516
	rm -f $(PKGDIR)-common/$(OOBRANDDIR)/LICENSE.html
54 by Martin Kretzschmar
Imported openoffice.org2_1.9.114-1
3517
214 by Rene Engelhard
merge l10n and help shrink
3518
	# remove extra readme files
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3519
	rm -rf $(PKGDIR)-common/$(OOBRANDDIR)/readmes
1022.1.114 by Rene Engelhard
update to beta2 branch (BEB300), m1
3520
	rm -f $(PKGDIR)-common/$(OOBRANDDIR)/share/readme/README*
1022.1.344 by Rene Engelhard
fix extra license/readme file removal
3521
	rm -f $(PKGDIR)-common/$(OOBRANDDIR)/README.html
3522
	rm -f $(PKGDIR)-common/$(OOBRANDDIR)/README
214 by Rene Engelhard
merge l10n and help shrink
3523
1022.1.345 by Rene Engelhard
- remove empty .../ure/lib dir in -common
3524
	# URE got moved to /usr/lib, so this is obsolete
1022.17.235 by Rene Engelhard
fix some arch-indep builds (without mono for example)
3525
	for i in ure/lib ure; do \
3526
		if [ -e $(PKGDIR)-common/$(OOBRANDDIR)/$$i ]; then \
3527
			rmdir $(PKGDIR)-common/$(OOBRANDDIR)/$$i; \
3528
		fi; \
3529
	done
1022.1.345 by Rene Engelhard
- remove empty .../ure/lib dir in -common
3530
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3531
ifeq "$(USE_OOO_BUILD_DESKTOPS)" "n"
3532
	# install the matching startcenter.png
3533
	for i in 16x16 32x32 48x48; do \
3534
		install -m644 debian/icons/sysui/desktop/icons/hicolor/$$i/apps/startcenter.png \
3535
			$(PKGDIR)-common/usr/share/icons/hicolor/$$i/apps/openofficeorg$(shell echo $(OOVER) | cut -d. -f1)-startcenter.png; \
3536
	done
3537
else
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
3538
	# install ooo-build desktop icons
1123 by Rene Engelhard
install also other resolutions than 48x48 for the ooo-build/desktop icons
3539
	for r in 16x16 22x22 24x24 32x32 48x48; do \
3540
		mkdir -p $(PKGDIR)-common/usr/share/icons/hicolor/$$r/apps; \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
3541
		cp $(OOO_BUILD_TREE)/desktop/$$r/*.png \
1123 by Rene Engelhard
install also other resolutions than 48x48 for the ooo-build/desktop icons
3542
			$(PKGDIR)-common/usr/share/icons/hicolor/$$r/apps; \
3543
	done
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3544
endif
56 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-1
3545
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3546
	# move psprint.conf into /etc
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3547
	mkdir -p $(PKGDIR)-common/etc/$(OODIRNAME)
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3548
	mv $(PKGDIR)-common/$(OODIR)/share/psprint/psprint.conf \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3549
		$(PKGDIR)-common/etc/$(OODIRNAME)
3550
	ln -s /etc/$(OODIRNAME)/psprint.conf \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3551
		$(PKGDIR)-common/$(OODIR)/share/psprint/psprint.conf
255 by Rene Engelhard
update README; some debian/rules cleanups, use sed again at the libmythes conditional until I find a better, working solution....
3552
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3553
	# prepare a fake sofficerc in the place where OOo expects it
3554
	# which does nothing except reference the "normal" one
3555
	# which we put into /etc
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3556
	mv $(PKGDIR)-common/$(OOBRANDDIR)/program/sofficerc \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3557
		$(PKGDIR)-common/etc/$(OODIRNAME)/sofficerc
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
3558
	( \
3559
	  echo "# *DO NOT* CHANGE THIS FILE. IT ONLY TAKES THE SETTINGS FROM"; \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3560
	  echo "# /etc/$(OODIRNAME)/sofficerc. CHANGE THAT FILE IF YOU"; \
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
3561
	  echo "# REALLY WANT TO CHANGE SOMETHING."; \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3562
	  echo "FHS_CONFIG_FILE=file:///etc/$(OODIRNAME)/sofficerc"; \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3563
	  echo "" >> $(PKGDIR)-common/$(OOBRANDDIR)/program/sofficerc; \
3564
	) > $(PKGDIR)-common/$(OOBRANDDIR)/program/sofficerc
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3565
	cat $(PKGDIR)-common/etc/$(OODIRNAME)/sofficerc \
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3566
		| perl -p -e 's/(.*)=(.*)/$$1=\$${\$$FHS_CONFIG_FILE:Bootstrap:$$1}/' \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3567
		>> $(PKGDIR)-common/$(OOBRANDDIR)/program/sofficerc
1022.1.99 by Rene Engelhard
update for m19; reenable mozilla plugin
3568
	# except for URE_BOOTSTRAP...
3569
	TMP=`mktemp -q`; \
3570
		grep -v URE_BOOTSTRAP $(PKGDIR)-common/$(OOBRANDDIR)/program/sofficerc > $$TMP && mv $$TMP $(PKGDIR)-common/$(OOBRANDDIR)/program/sofficerc && \
3571
		grep URE_BOOTSTRAP $(PKGDIR)-common/etc/$(OODIRNAME)/sofficerc >> $(PKGDIR)-common/$(OOBRANDDIR)/program/sofficerc && \
3572
		grep -v URE_BOOTSTRAP $(PKGDIR)-common/etc/$(OODIRNAME)/sofficerc > $$TMP && mv $$TMP $(PKGDIR)-common/etc/$(OODIRNAME)/sofficerc
61 by Martin Kretzschmar
Imported openoffice.org-2.0.0-1
3573
826 by Chris Cheney
* debian/control.2.in:
3574
	install -m 644 debian/soffice.sh \
1010 by Rene Engelhard
Replace non-working link to license.html with link to
3575
	  $(PKGDIR)-common/etc/$(OODIRNAME)/soffice.sh
826 by Chris Cheney
* debian/control.2.in:
3576
1164 by Chris Cheney
openoffice.org (1:3.0.0~beta2-1ubuntu2) intrepid; urgency=low
3577
ifeq "$(DIST)" "Ubuntu" 
3578
	cp -a $(CURDIR)/$(PKGDIR)-common/$(OODIR)/share/config/images_tango.zip \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3579
	 $(CURDIR)/$(PKGDIR)-common/$(OODIR)/share/config/images_$(HUMAN).zip
1164 by Chris Cheney
openoffice.org (1:3.0.0~beta2-1ubuntu2) intrepid; urgency=low
3580
endif
3581
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
3582
ifeq "$(HELPISOS)" ""
3583
	# the helpimgs are not included when we don't build with help here.
3584
	# Add them now because openoffice.org-help-* packaged in contrib or so
3585
	# will need them
388 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-127; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.3--patch-16
3586
	set -e; \
1022.10.270 by Rene Engelhard
oxygen icons
3587
	for i in $(IMAGES); do \
3588
		s=_$$i.zip; \
1022.10.272 by Rene Engelhard
more optimisation
3589
		case "$$i" in $(DEFAULT_IMAGE)) s=.zip; esac; \
1022.10.270 by Rene Engelhard
oxygen icons
3590
		z=images$$s; \
860 by Rene Engelhard
->members() not needed...
3591
		echo "adding helpimgs to $$z..."; \
385 by Rene Engelhard
update to m178; split mobile devices filters out; build pt langpack; build with system-libxslt; merge openofficeorg--unstable--2.0.3--patch-124
3592
		rm -rf $$z; mkdir $$z; \
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
3593
		cd $$z; \
3594
		unzip -q $(CURDIR)/$(PKGDIR)-common/$(OODIR)/share/config/$$z && \
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
3595
		cp -r $(CURDIR)/$(SOURCE_TREE)/default_images/res/helpimg res && \
265 by Rene Engelhard
merge changes from Ubuntu 2.0.2-2ubuntu5 .diff.gz; add lost libfontconfig1 dependency back
3596
		chmod +w $(CURDIR)/$(PKGDIR)-common/$(OODIR)/share/config/$$z && \
3597
		zip -q -r $(CURDIR)/$(PKGDIR)-common/$(OODIR)/share/config/$$z *; \
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
3598
		cd ..; \
388 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-127; merge doko@ubuntu.com--2006-pkg-openoffice/openofficeorg--unstable--2.0.3--patch-16
3599
		rm -rf $$z; \
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
3600
	done
3601
endif
541 by Rene Engelhard
initial 2.1 stuff, not useful yet without matching ooo-build HEAD, but...; merge openofficeorg--unstable--2.0.4--patch-54; merge icon style splitout from Ubuntu
3602
	set -e; \
1022.10.270 by Rene Engelhard
oxygen icons
3603
	for i in $(IMAGES); do \
3604
		z=images_$$i.zip; p=$$i; \
1022.10.272 by Rene Engelhard
more optimisation
3605
		case "$$i" in $(DEFAULT_IMAGE)) z=images.zip; esac; \
1022.10.270 by Rene Engelhard
oxygen icons
3606
		case "$$i" in classic) p=andromeda; esac; \
1022.17.50 by Rene Engelhard
move images*.zip to /usr/share; merge
3607
		mkdir -p $(PKGDIR)-style-$$p/$(shell echo $(OODIR) | sed -e s/lib/share/)/share/config; \
541 by Rene Engelhard
initial 2.1 stuff, not useful yet without matching ooo-build HEAD, but...; merge openofficeorg--unstable--2.0.4--patch-54; merge icon style splitout from Ubuntu
3608
		mv $(PKGDIR)-common/$(OODIR)/share/config/$$z \
1022.17.50 by Rene Engelhard
move images*.zip to /usr/share; merge
3609
			$(PKGDIR)-style-$$p/$(shell echo $(OODIR) | sed -e s/lib/share/)/share/config/; \
541 by Rene Engelhard
initial 2.1 stuff, not useful yet without matching ooo-build HEAD, but...; merge openofficeorg--unstable--2.0.4--patch-54; merge icon style splitout from Ubuntu
3610
	done
62 by Martin Kretzschmar
Imported openoffice.org-2.0.0-2
3611
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3612
ifeq "$(DIST)" "Ubuntu" 
3613
	rm -rf images
3614
	mkdir -p images
3615
	cd images; \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3616
	 unzip -q $(CURDIR)/$(PKGDIR)-style-human/$(shell echo $(OODIR) | sed -e s/lib/share/)/share/config/images_$(HUMAN).zip; \
3617
	 tar xf ../debian/ubuntu/images_new.tar.bz2; \
3618
	 zip -q -r $(CURDIR)/$(PKGDIR)-style-human/$(shell echo $(OODIR) | sed -e s/lib/share/)/share/config/images_$(HUMAN).zip *
3619
	 rm -rf images
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3620
endif
3621
444 by Rene Engelhard
use dh_installman; don't give -l10n-en-us to fdupes since it doesn't exist anymore; fix incremental install of -dtd-officedocument1.0; move mingw32 build-dep into a conditional and add --with-mingwin=i586-mingw32msvc-g++ since it will be removed from ooo-build; mention -6 merge since this will be uploaded with/after -6
3622
	rm -rf $(PKGDIR)-dtd-officedocument1.0
441 by Rene Engelhard
split OfficeDocument 1.0 DTD out into own package
3623
	mkdir -p $(PKGDIR)-dtd-officedocument1.0/$(OODIR)/share/dtd
3624
	mv $(PKGDIR)-common/$(OODIR)/share/dtd/officedocument \
3625
		$(PKGDIR)-dtd-officedocument1.0/$(OODIR)/share/dtd
3626
	cp debian/catalog.xml $(PKGDIR)-dtd-officedocument1.0/$(OODIR)/share/dtd/officedocument/1_0
1022.17.12 by Rene Engelhard
update .xmlcatalogs; make generated file adapting automatically to new basisX.Y
3627
	cat $(PKGDIR)-dtd-officedocument1.0.xmlcatalogs.in \
3628
		| sed -e "s,\@OOBASISDIR\@,$(OOBASISDIR)," \
3629
		> $(PKGDIR)-dtd-officedocument1.0.xmlcatalogs
72 by Rene Engelhard
merge XML catalog stuff from 1.1.x
3630
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3631
ifeq "$(DIST)" "Ubuntu"
3632
	# install Ubuntu templates
3633
	mkdir -p $(PKGDIR)-common/$(OODIR)/share/template/en-US/presnt
3634
	install -m644 debian/ubuntu/*.otp $(PKGDIR)-common/$(OODIR)/share/template/en-US/presnt/
3635
endif
3636
1022.10.124 by Rene Engelhard
remove "openoffice" symlink, add "openoffice.org$(VER)
3637
	# add "openoffice.org" symlink
3638
	cd $(PKGDIR)-common/usr/bin && ln -s ooffice openoffice.org$(VER)
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
3639
3640
ifeq "$(PACKAGE_SDK)" "y"
354 by Rene Engelhard
more SDK fixes
3641
	# add symlinks for docs and examples
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3642
	cd $(PKGDIR)-dev-doc/$(OOSDKDIR) && \
354 by Rene Engelhard
more SDK fixes
3643
		rm -rf docs && \
359 by Rene Engelhard
simplify builddeps (fixing for apt-get build-dep), fix -dev/-dev-doc file conflict
3644
		ln -sf /usr/share/doc/openoffice.org-dev/docs docs
354 by Rene Engelhard
more SDK fixes
3645
	cd $(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev-doc && \
355 by Rene Engelhard
move ln to install-indep
3646
		ln -s /usr/share/doc/openoffice.org-dev/docs docs
3647
	cd $(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev-doc && \
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3648
		ln -s /$(OOSDKDIR)/examples examples
354 by Rene Engelhard
more SDK fixes
3649
	cd $(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev && \
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3650
		ln -s /$(OOSDKDIR)/examples examples
1009 by Rene Engelhard
add symlink for index.html
3651
	# and the index
3652
	cd $(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev && \
1022.1.348 by Rene Engelhard
-common Breaks: old openclipart-openoffice.org
3653
		ln -s /$(OOSDKDIR)/index.html index.html
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
3654
endif
611.1.22 by Rene Engelhard
update ooo-build; disable smoketest for amd664; add iceape/icedove to senddoc
3655
1022.1.63 by Rene Engelhard
-wiki-publisher is arch-indep
3656
ifeq "$(ENABLE_MEDIAWIKI)" "y"
3657
	rm -rf $(PKGDIR)-wiki-publisher
3658
	install -D -m644 $(SOURCE_TREE)/swext/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/bin/wiki-publisher.oxt \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3659
	$(PKGDIR)-wiki-publisher/$(OOBRANDDIR)/share/extension/install/wiki-publisher.oxt
1022.1.63 by Rene Engelhard
-wiki-publisher is arch-indep
3660
	# unneeded license file
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
3661
	zip -d $(CURDIR)/$(PKGDIR)-wiki-publisher/$(OOBRANDDIR)/share/extension/install/wiki-publisher.oxt license/THIRDPARTYLICENSEREADME.html
1022.1.63 by Rene Engelhard
-wiki-publisher is arch-indep
3662
endif
3663
1022.10.494 by Rene Engelhard
lintian fixes
3664
	# add version to  .lintian-overrides
3665
	for i in common; do \
3666
		cat debian/openoffice.org$(VER)-$$i.lintian-overrides.in \
3667
			| sed -e s/@BASIS_VERSION@/$(BASIS_VERSION)/ \
3668
			> debian/openoffice.org$(VER)-$$i.lintian-overrides; \
3669
	done
3670
1119 by Rene Engelhard
fix typo
3671
	for i in $(ARCH_INDEP_PACKAGES); do \
1022.10.516 by Rene Engelhard
migrate bug script installation to dh_bugfiles
3672
		if [ -e debian/$$i.bug-script.in ]; then \
3673
			cat debian/$$i.bug-script.in \
1022.1.117 by Rene Engelhard
fix script.bugs
3674
				| sed -e "s/@PLATFORMID@/$(PLATFORMID)/" \
1022.17.353 by Rene Engelhard
fix component bug scripts and add the kab one
3675
				| sed -e "s/@BASIS_VERSION@/$(BASIS_VERSION)/" \
1022.10.516 by Rene Engelhard
migrate bug script installation to dh_bugfiles
3676
				> debian/$$i.bug-script; \
1001 by Rene Engelhard
install bug scripts; fix openoffice.org-core.control.bug and add new controls; update ooo-build; -2
3677
		fi ;\
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3678
	done
797 by Rene Engelhard
fix/improve splash/about install
3679
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3680
ifeq "$(DIST)" "Debian"
797 by Rene Engelhard
fix/improve splash/about install
3681
	# fix intro
1022.24.4 by Rene Engelhard
update splash/about images' stuff
3682
	t=`mktemp -q`.bmp ; \
1022.17.78 by Rene Engelhard
remove beta splash workaround and fix regex to also catch one-digit milestones
3683
	if dpkg-parsechangelog | grep urgency | egrep -q "\~.*m[0123456789]+"; then \
1022.24.4 by Rene Engelhard
update splash/about images' stuff
3684
		convert $(SOURCE_TREE)/ooo_custom_images/dev_nologo/introabout/intro.png $$t && \
1022.24.12 by Rene Engelhard
fix_image_rgb -> fix_bmp_rgb
3685
		debian/scripts/fix_bmp_rgb \
1022.24.4 by Rene Engelhard
update splash/about images' stuff
3686
			$$t $(PKGDIR)-common/$(OOBRANDDIR)/program/intro.bmp; \
797 by Rene Engelhard
fix/improve splash/about install
3687
	else \
1022.24.12 by Rene Engelhard
fix_image_rgb -> fix_bmp_rgb
3688
		convert $(SOURCE_TREE)/ooo_custom_images/nologo/introabout/intro.png $$t && \
3689
		debian/scripts/fix_bmp_rgb \
1022.24.4 by Rene Engelhard
update splash/about images' stuff
3690
			$$t $(PKGDIR)-common/$(OOBRANDDIR)/program/intro.bmp; \
3691
	fi; \
3692
	rm -f $$t && rm -f $(PKGDIR)-common/$(OOBRANDDIR)/program/intro.png
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3693
endif
797 by Rene Engelhard
fix/improve splash/about install
3694
1022.1.284 by Rene Engelhard
install extension.desktop again; MimeType=application/vnd.openofficeorg.extension in startcenter.desktop
3695
ifeq "$(USE_OOO_BUILD_DESKTOPS)" "n"
3696
	# menu files from sysui
3697
	dirname="`cd $(SOURCE_TREE)/sysui/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/openoffice.org >/dev/null; pwd`" ;\
3698
	mkdir -p -m755 $(PKGDIR)-common/usr/share/mimelnk/application ;\
1022.1.288 by Rene Engelhard
merge from 2.4.1; fix icon install
3699
	sed -e 's,Comment=Extension,Comment=OpenOffice.org $(VER) Extension,' \
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
3700
	    -e 's,Icon=openofficeorg[0123456789]-extension,Icon=application-vnd.openofficeorg.extension.png,' \
1022.1.284 by Rene Engelhard
install extension.desktop again; MimeType=application/vnd.openofficeorg.extension in startcenter.desktop
3701
	    -e 's/  / /' \
3702
	    < $$dirname/extension.desktop \
3703
	    > $(PKGDIR)-common/usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop || exit 1
1022.1.320 by Rene Engelhard
cleanup and broffice.org installation fixes
3704
	# install ooo-build mimetype icon
1022.1.284 by Rene Engelhard
install extension.desktop again; MimeType=application/vnd.openofficeorg.extension in startcenter.desktop
3705
	for i in 16x16 22x22 24x24 32x32 48x48; do \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
3706
		install -D -m644 $(CURDIR)/$(OOO_BUILD_TREE)/desktop/mimetypes/$$i/application-vnd.openofficeorg.extension.png \
1159.1.61 by Rene Engelhard
one YYxxYY too much
3707
			$(PKGDIR)-common/usr/share/icons/hicolor/$$i/mimetypes/application-vnd.openofficeorg.extension.png; \
1022.1.284 by Rene Engelhard
install extension.desktop again; MimeType=application/vnd.openofficeorg.extension in startcenter.desktop
3708
	done
1022.1.289 by Rene Engelhard
fix icon and install openoffice.org.xml; fix merge error
3709
	perl -pi -e "s/Icon=openofficeorg.*-extension/Icon=application-vnd.openofficeorg.extension.png/" $(PKGDIR)-common/usr/share/mimelnk/application/vnd.openofficeorg.extension.desktop
1022.10.35 by Rene Engelhard
fix startcenter.desktop install (was in wrong target)
3710
	# add proper MimeType
1022.15.12 by Rene Engelhard
more Ubuntu merge
3711
	perl -pi -e 's,MimeType=,MimeType=application/vnd.openofficeorg.extension,' $(PKGDIR)-common/usr/share/applications/openoffice.org$(VER)-startcenter.desktop
1022.1.284 by Rene Engelhard
install extension.desktop again; MimeType=application/vnd.openofficeorg.extension in startcenter.desktop
3712
endif
3713
1022.1.104 by Rene Engelhard
one more install fix lintian fixes; regenerate control
3714
	# fix permission
3715
	chmod 644 $(PKGDIR)-common/$(OODIR)/program/gengalrc
3716
1022.10.377 by Rene Engelhard
install extension shell lib for use by extensions not from here
3717
	# install extension shell lib for use by extensions not from here
1022.10.418 by Rene Engelhard
install /usr/share/openoffice/shell-lib-extensions.sh only with 644
3718
	install -D -m644 debian/shell-lib-extensions.sh \
1022.10.377 by Rene Engelhard
install extension shell lib for use by extensions not from here
3719
		$(PKGDIR)-common/usr/share/$(OODIRNAME)/shell-lib-extensions.sh
3720
1022.17.44 by Rene Engelhard
- move help into /usr/share (see #218067)
3721
	# those are needed in /usr/share, too
1266 by root
openoffice.org (1:3.2.0~rc2-1ubuntu1) lucid; urgency=low
3722
	mkdir -p $(PKGDIR)-common/$(shell echo $(OODIR) | sed -e s/lib/share/)/help
3723
	mv $(PKGDIR)-common/$(OODIR)/help/* \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3724
		$(PKGDIR)-common/$(shell echo $(OODIR) | sed -e s/lib/share/)/help
1022.17.44 by Rene Engelhard
- move help into /usr/share (see #218067)
3725
	# help is in /usr/share
3726
	sed -i 's,$$(instpath)/help,/$(shell echo $(OODIR) | sed -e s/lib/share/)/help,' \
3727
		$(PKGDIR)-common/$(OOBASISDIR)/share/registry/schema/org/openoffice/Office/Common.xcs
3728
	sed -i 's,$$(instpath)/help,/$(shell echo $(OODIR) | sed -e s/lib/share/)/help,' \
3729
		$(PKGDIR)-common/$(OOBASISDIR)/share/registry/data/org/openoffice/Office/Paths.xcu
3730
1022.17.50 by Rene Engelhard
move images*.zip to /usr/share; merge
3731
	# compat dirs, the split icons thing need it
3732
	mkdir -p $(PKGDIR)-common/$(shell echo $(OOBRANDDIR) | sed -e s/lib/share/)/program
3733
	mkdir -p $(PKGDIR)-common/$(shell echo $(OODIR) | sed -e s/lib/share/)/program
3734
	# three-layer symlinks also for /usr/share
3735
	ln -s basis$(OOVER) \
3736
		$(PKGDIR)-common/$(shell echo $(OOBRANDDIR) | sed -e s/lib/share/)/basis-link
1313 by Matthias Klose
merge 1:3.2.1-7
3737
	ln -s /$(OOUREDIR) \
1022.17.50 by Rene Engelhard
move images*.zip to /usr/share; merge
3738
		$(PKGDIR)-common/$(shell echo $(OODIR) | sed -e s/lib/share/)/ure-link
3739
1022.17.329 by Rene Engelhard
use textcat data from libtextcat-data-utf8 if the same with "ours"
3740
ifeq "$(USE_SYSTEM_TEXTCAT_DATA)" "y"
3741
	# remove duplicated textcat data and replace with symlinks
3742
	cd $(PKGDIR)-common/$(OOBASISDIR)/share && \
3743
	for i in `fdupes -n -f -1 fingerprint/ /usr/share/libtextcat/LM`; do \
1022.24.50 by Rene Engelhard
make .lm symlinks explicity, no idea why this fails here but not in 3.2.0, but...
3744
		ln -sf /usr/share/libtextcat/LM/`basename $$i` fingerprint/`basename $$i`; \
1022.17.329 by Rene Engelhard
use textcat data from libtextcat-data-utf8 if the same with "ours"
3745
	done
3746
endif
3747
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3748
	# example. move where it belongs
3749
	mkdir -p $(PKGDIR)-common/usr/share/doc/openoffice.org-common/examples
3750
	mv $(PKGDIR)-common/$(OOBASISDIR)/share/registry/data/org/openoffice/LDAP.xcu.sample \
3751
		$(PKGDIR)-common/usr/share/doc/openoffice.org-common/examples
3752
	cd $(PKGDIR)-common/$(OOBASISDIR)/share/registry/data/org/openoffice && \
3753
		ln -s /usr/share/doc/openoffice.org-common/examples/LDAP.xcu.sample
3754
1266 by root
openoffice.org (1:3.2.0~rc2-1ubuntu1) lucid; urgency=low
3755
endif # ifneq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
3756
2 by Chris Halls
Imported openoffice_org-1_0_0-4
3757
	touch $@
3758
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3759
gsi-import:
3760
ifeq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
3761
  ifneq "$(OOO_L10N_DIR)" ""
3762
	set -e; \
3763
	for i in $(OOO_L10N_DIR)/import/GSI*; do \
3764
	  [ -r $$i ] || continue; \
3765
	  lang=`basename $$i | sed 's,GSI_\(.*\)\.sdf.*,\1,'`; \
3766
	  case "$$lang" in en-US|de) continue; esac; \
3767
	  echo "updating GSI file for language $$lang ..."; \
3768
	  case "$$i" in \
3769
	    *.bz2) bzcat $$i > ooo-build/src/GSI_$$lang.sdf;; \
3770
	    *.gz) zcat $$i > ooo-build/src/GSI_$$lang.sdf;; \
3771
	    *.sdf) cp -p $$i ooo-build/src/GSI_$$lang.sdf;; \
3772
	    *) echo "    unknown file: $$i"; \
3773
	  esac; \
3774
	  rm -f ooo-build/src/GSI_$$lang.sdf.bz2; \
3775
	  bzip2 -9v ooo-build/src/GSI_$$lang.sdf; \
3776
	  uuencode -m ooo-build/src/GSI_$$lang.sdf.bz2 GSI_$$lang.sdf.bz2 > ooo-build/src/GSI_$$lang.sdf.bz2.uu; \
3777
	  rm ooo-build/src/GSI_$$lang.sdf.bz2; \
3778
	done
3779
  endif
3780
else
3781
	@echo "nothing to import, OOO_L10N_DIR is not set"
3782
endif
3783
3784
GSI_LANGUAGES = $(LANGUAGES)
3785
gsi-export: $(GSI_EXPORT_STAMP)
3786
$(GSI_EXPORT_STAMP):
3787
	$(MAKE) -f debian/rules -j$(shell expr $(AVAIL_CPUS) + 1) $(STAMP_DIR)/gsi-export-parallel
3788
	: # tell pkgstriptranslations that the translations are built
3789
	-ls -l ../$(PKGSOURCE)_*_translations.tar.gz
3790
	rm -f ../$(PKGSOURCE)_*_translations.tar.gz
3791
	: # remove 0 byte translations to keep pkgstriptranslations from dying
3792
	find $(OOO_L10N_DIR)/po -size 0c -name *.po -exec rm -f -v \{\} \;
3793
	touch $@
3794
$(STAMP_DIR)/gsi-export-parallel: $(STAMP_DIR)/build $(foreach lang,$(GSI_LANGUAGES),$(STAMP_DIR)/gsi-export-$(lang))
3795
	touch $@
3796
$(STAMP_DIR)/gsi-export-en-US:
3797
	cd $(SOURCE_TREE); \
3798
	  . Linux*Env.Set.sh; \
3799
	  mkdir -p $(OOO_L10N_DIR)/export; \
3800
	  echo exporting GSI file for pot file generation; \
3801
	  echo localize -e -l en-US -f $(OOO_L10N_DIR)/export/GSI_en-US.sdf; \
3802
	  localize -e -l en-US -f $(OOO_L10N_DIR)/export/GSI_en-US.sdf
3803
3804
	if [ -x /usr/bin/oo2po ]; then \
3805
	  chmod +x debian/scripts/splitgsi; \
3806
	  sh debian/scripts/convert2po en-US; \
3807
	fi
3808
	touch $@
3809
3810
$(STAMP_DIR)/gsi-export-%:
3811
	cd $(SOURCE_TREE); \
3812
	  . Linux*Env.Set.sh; \
3813
	  mkdir -p $(OOO_L10N_DIR)/export; \
3814
	  i=$*; \
3815
	  if [ -f $(CURDIR)/ooo-build/src/GSI_$$i.sdf.bz2.uu ]; then \
3816
	    echo using existing GSI file for language $$i; \
3817
	    uudecode -o /dev/stdout $(CURDIR)/ooo-build/src/GSI_$$i.sdf.bz2.uu \
3818
	      | bzcat - > $(OOO_L10N_DIR)/export/GSI_$$i.sdf; \
3819
	  elif [ -f $(CURDIR)/ooo-build/src/GSI_$$i.sdf.gz.uu ]; then \
3820
	    echo using existing GSI file for language $$i; \
3821
	    uudecode -o /dev/stdout $(CURDIR)/ooo-build/src/GSI_$$i.sdf.gz.uu \
3822
	      | zcat - > $(OOO_L10N_DIR)/export/GSI_$$i.sdf; \
3823
	  else \
3824
	    echo exporting GSI file for language $$i; \
3825
	    echo localize -e -l en-US,$$i -f $(OOO_L10N_DIR)/export/GSI_$$i.sdf; \
3826
	    localize -e -l en-US,$$i -f $(OOO_L10N_DIR)/export/GSI_$$i.sdf >$(OOO_L10N_DIR)/localize-$$i.log; \
3827
	    echo "log summary for localize -e -l en-US,$$i"; \
3828
	    grep '^\.*ERROR:' $(OOO_L10N_DIR)/localize-$$i.log | sed 's/^[.]*//' | sort | uniq -c; \
3829
	  fi
3830
3831
	case " $(REMOVE_HELP) " in *\ $*\ *) \
3832
	  echo "Removing help ($*)"; \
3833
	  grep -v '^helpcontent2' $(OOO_L10N_DIR)/export/GSI_$*.sdf \
3834
	    > $(OOO_L10N_DIR)/export/GSI_$*.sdf.tmp; \
3835
	  debian/scripts/move-if-change $(OOO_L10N_DIR)/export/GSI_$*.sdf.tmp \
3836
	    $(OOO_L10N_DIR)/export/GSI_$*.sdf; \
3837
	esac
3838
3839
	case " $(FILTER_HELP) " in *\ $*\ *) \
3840
	  echo "Filtering untranslated messages from help ($*)"; \
3841
	  python debian/scripts/gsifilter.py $(OOO_L10N_DIR)/export/GSI_$*.sdf; \
3842
	  debian/scripts/move-if-change $(OOO_L10N_DIR)/export/GSI_$*.sdf.tmp \
3843
	    $(OOO_L10N_DIR)/export/GSI_$*.sdf; \
3844
	esac
3845
3846
	if [ -x /usr/bin/oo2po ]; then \
3847
	  chmod +x debian/scripts/splitgsi; \
3848
	  sh debian/scripts/convert2po $*; \
3849
	fi
3850
	touch $@
3851
3852
rosetta2oo:
3853
	mkdir -p debian/l10n
3854
	ln -sf convert2po debian/scripts/convert2oo
3855
	sh debian/scripts/convert2oo $(GSI_LANGUAGES)
3856
3857
ifeq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
3858
# Simplified packaging, langpacks only
3859
3860
binary-arch: $(STAMP_DIR)/binary-arch
3861
$(STAMP_DIR)/binary-arch:
3862
	: # nothing to do
3863
	touch $(STAMP_DIR)/install-arch
3864
	touch $@
3865
3866
else
3867
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3868
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3869
binary-arch: $(STAMP_DIR)/binary-arch
1279 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu1) lucid; urgency=low
3870
$(STAMP_DIR)/binary-arch: $(STAMP_DIR)/install-arch debian/control $(STAMP_DIR)/maintscripts
2 by Chris Halls
Imported openoffice_org-1_0_0-4
3871
	dh_testdir
3872
	dh_testroot
3873
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3874
	for pkg in $(ARCH_DEP_PACKAGES) ; do \
9 by Chris Halls
Imported openoffice_org-1_0_1-2
3875
	  rm -f debian/$$pkg.*.debhelper;\
11 by Chris Halls
Imported openoffice_org-1_0_1-4
3876
	  rm -rf debian/$$pkg/DEBIAN;\
9 by Chris Halls
Imported openoffice_org-1_0_1-2
3877
	done
3878
1022.24.55 by Rene Engelhard
remove libmythes-dev again, mythes 1.2 is through NEW
3879
	dh_installdocs -s -A debian/README.Debian \
1022.10.53 by Rene Engelhard
merge
3880
		$(SOURCE_TREE)/instsetoo_native/util/OpenOffice/replace_file/*/00/README \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
3881
		$(OOO_BUILD_TREE)/NEWS
1022.10.502 by Rene Engelhard
* debian/control*in: make -core depends on ure (>= 1.5.1+OOo3.1.1-15) to get
3882
	cp debian/ure.templates.in debian/ure.templates
1022.10.349 by Rene Engelhard
* debian/shell-lib.sh: check whether OOo is running before (de-)registering
3883
	dh_installdebconf -s
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3884
	dh_installman -s
496 by Rene Engelhard
only match on o*.1 for manpage symlink changing
3885
	# fix manpage symlinks
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3886
	for i in writer calc draw base math impress; do \
496 by Rene Engelhard
only match on o*.1 for manpage symlink changing
3887
		for i in `find $(PKGDIR)-$$i -type l -name "o*.1"`; do \
444 by Rene Engelhard
use dh_installman; don't give -l10n-en-us to fdupes since it doesn't exist anymore; fix incremental install of -dtd-officedocument1.0; move mingw32 build-dep into a conditional and add --with-mingwin=i586-mingw32msvc-g++ since it will be removed from ooo-build; mention -6 merge since this will be uploaded with/after -6
3888
			mv $$i $$i.gz; \
3889
			if [ "`readlink $$i`" != "openoffice.1.gz" ]; then \
3890
				ln -sf openoffice.1.gz $$i.gz; \
3891
			fi; \
3892
		done; \
3893
	done
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
3894
	if [ -s $(OOO_BUILD_TREE)/ChangeLog ]; then \
1022.24.55 by Rene Engelhard
remove libmythes-dev again, mythes 1.2 is through NEW
3895
		dh_installchangelogs -s -k $(OOO_BUILD_TREE)/ChangeLog; \
1022.17.62 by Rene Engelhard
if ooo-build/ChangeLog exist, install it as upstream changelog
3896
	else \
1022.24.55 by Rene Engelhard
remove libmythes-dev again, mythes 1.2 is through NEW
3897
		dh_installchangelogs -s -k; \
1022.17.62 by Rene Engelhard
if ooo-build/ChangeLog exist, install it as upstream changelog
3898
	fi
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3899
ifeq "$(USE_COMMON_DOCDIR)" "y"
3900
	# arch dependent packages (with docdir symlinks)
3901
	for s in \
1286 by Chris Cheney
openoffice.org (1:3.2.0-6ubuntu1) UNRELEASED; urgency=low
3902
	  '' -base -base-core -calc -core -dev -draw -evolution \
3903
	  -filter-binfilter -gcj -gnome -gtk -headless -impress -kab -kde \
3904
	  -math -mysql-connector -officebean -ogltrans -pdfimport \
3905
	  -presentation-minimizer -presenter-console -report-builder-bin \
3906
	  -qa-tools -sdbc-postgresql -writer; \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3907
	do \
3908
	  PKG=openoffice.org$(VER)$$s; \
3909
	  echo " $(PACKAGES) " | fgrep -q " $$PKG " || continue; \
1286 by Chris Cheney
openoffice.org (1:3.2.0-6ubuntu1) UNRELEASED; urgency=low
3910
	  target=uno-libs3; \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3911
	  rm -rf debian/$$PKG/usr/share/doc/$$PKG; \
3912
	  rm -f debian/$$PKG/usr/share/doc/$$target/copyright; \
3913
	  rm -f debian/$$PKG/usr/share/doc/$$target/changelog.Debian*; \
3914
	  mkdir -p debian/$$PKG/usr/share/doc; \
3915
	  ln -sf $$target debian/$$PKG/usr/share/doc/$$PKG; \
3916
	  sed "s/@PKGNAME@/$$PKG/g;s/@PKGTARGET@/$$target/g" \
3917
	    debian/deppackage.postinst.in >> debian/$$PKG.postinst; \
3918
	done
1161 by Chris Cheney
openoffice.org (1:2.4.1-6ubuntu1) intrepid; urgency=low
3919
	for PKG in \
1286 by Chris Cheney
openoffice.org (1:3.2.0-6ubuntu1) UNRELEASED; urgency=low
3920
	  cli-uno-bridge mozilla-openoffice.org python-uno uno-libs3-dbg ure \
3921
	  ure-dbg; \
1161 by Chris Cheney
openoffice.org (1:2.4.1-6ubuntu1) intrepid; urgency=low
3922
	do \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3923
	  echo " $(PACKAGES) " | fgrep -q " $$PKG " || exit 0; \
1286 by Chris Cheney
openoffice.org (1:3.2.0-6ubuntu1) UNRELEASED; urgency=low
3924
	  target=uno-libs3; \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3925
	  if [ "$$PKG" = python-uno ]; then \
1286 by Chris Cheney
openoffice.org (1:3.2.0-6ubuntu1) UNRELEASED; urgency=low
3926
	    mkdir -p debian/$$PKG/usr/share/doc/$$target; \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3927
	    mv debian/$$PKG/usr/share/doc/python-uno/demo \
3928
	      debian/$$PKG/usr/share/doc/$$target/python-uno-demo; \
3929
	  fi; \
3930
	  rm -rf debian/$$PKG/usr/share/doc/$$PKG; \
3931
	  rm -f debian/$$PKG/usr/share/doc/$$target/copyright; \
3932
	  rm -f debian/$$PKG/usr/share/doc/$$target/changelog.Debian*; \
3933
	  mkdir -p debian/$$PKG/usr/share/doc; \
3934
	  ln -sf $$target debian/$$PKG/usr/share/doc/$$PKG; \
1286 by Chris Cheney
openoffice.org (1:3.2.0-6ubuntu1) UNRELEASED; urgency=low
3935
	  sed "s/@PKGNAME@/$$PKG/g;s/@PKGTARGET@/$$target/g" \
3936
	    debian/deppackage.postinst.in >> debian/$$PKG.postinst; \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
3937
	done
3938
endif
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3939
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3940
	dh_installmime -s
3941
	dh_installmenu -s
1022.10.175 by Rene Engelhard
remove postinst/postrm of -gcj, let dh_nativejava -o do the job
3942
ifeq "$(BUILD_JARS_NATIVE)" "y"
3943
	dh_nativejava -popenoffice.org$(VER)-gcj -o
3944
endif
871 by Rene Engelhard
no dh_icons on etch backport
3945
ifeq "$(USE_PYCENTRAL)" "y"
1034 by Chris Cheney
debian/rules: clean up whitespace
3946
	dh_pycentral -ppython-uno
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3947
  ifeq "$(PYTHON_VERSION)" "current"
3948
	# fix up broken depends (should be like python (<< 2.6), python (>= 2.5)
3949
	# as it was the case before it broke somewhen
3950
	perl -pi -e 's/python, python-central/python (<< $(PYMAJOR).$(PYMINORPLUS1)), python (>= $(PYMAJOR).$(PYMINOR)), python-central/' debian/python-uno.substvars
3951
  endif
871 by Rene Engelhard
no dh_icons on etch backport
3952
else
1022.10.136 by Rene Engelhard
update ooo-build to 3.0.99.3; add conditional allowing the use of python-support if we ever wanted that
3953
  ifeq "$(USE_PYSUPPORT)" "y"
3954
	dh_pysupport -ppython-uno -V $(PYMAJOR).$(PYMINOR)
3955
  else
826 by Chris Cheney
* debian/control.2.in:
3956
	dh_python
1022.10.136 by Rene Engelhard
update ooo-build to 3.0.99.3; add conditional allowing the use of python-support if we ever wanted that
3957
  endif
871 by Rene Engelhard
no dh_icons on etch backport
3958
endif
1022.1.2 by Rene Engelhard
overrides.lintian -> lintian-overrides and use dh_lintian
3959
	dh_lintian -s
1022.10.516 by Rene Engelhard
migrate bug script installation to dh_bugfiles
3960
	dh_bugfiles -s -A
1034 by Chris Cheney
debian/rules: clean up whitespace
3961
	dh_link -s
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3962
	dh_fixperms -s
871 by Rene Engelhard
no dh_icons on etch backport
3963
ifeq "$(BUILD_DBG_PACKAGE)" "y"
1022.5.1 by Rene Engelhard
move UNO libs to uno-libs3
3964
	dh_strip -s -Nure -Nuno-libs3 --dbg-package=openoffice.org$(VER)-dbg
914 by Rene Engelhard
package URE as a first step to use OOo-wo-URE
3965
	dh_strip -pure --dbg-package=ure-dbg
1022.1.140 by Rene Engelhard
lintian fixes for uno-libs3
3966
	dh_strip -puno-libs3 --dbg-package=uno-libs3-dbg
611.1.8 by Rene Engelhard
readd lost touch at build target, remove install-arch stampdir after dh_strip --dbg-package, make packaging of SDK conditional, don't compress example python files
3967
	# dh_strip --dbg-package= is not idempotent, force copying of the binaries
3968
	# again...
3969
	rm -f $(STAMP_DIR)/install-arch
871 by Rene Engelhard
no dh_icons on etch backport
3970
else
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3971
	dh_strip -s
871 by Rene Engelhard
no dh_icons on etch backport
3972
endif
1022.10.353 by Rene Engelhard
lintian fixes; update ooo-build and close #416877
3973
ifeq "$(LENNY_BACKPORT)" "y"
1034 by Chris Cheney
debian/rules: clean up whitespace
3974
	dh_desktop -s
1022.15.6 by Rene Engelhard
stop running dh_desktop on sid, thanks lintian
3975
endif
826 by Chris Cheney
* debian/control.2.in:
3976
	dh_icons -s
871 by Rene Engelhard
no dh_icons on etch backport
3977
ifeq "$(ENABLE_MONO)" "y"
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3978
	dh_installcligac -s
871 by Rene Engelhard
no dh_icons on etch backport
3979
endif
1022.17.337 by Rene Engelhard
--parallel apparently is for dh_auto_* only, revert change
3980
	dh_compress -s -X.py -X.mk -X.sxd
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
3981
	dh_makeshlibs -puno-libs3 -V"ure (>= $(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }'))" -- -c0 -v$(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
3982
	dh_makeshlibs -n -pure -V"ure (>= $(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }'))" -- -v$(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.17.149 by Rene Engelhard
actually, ignore-blacklist is 100% the other way round we want, go back to the grep hack
3983
	# ugly hack, but why does that happen? It's not in .symbols...
3984
	TMP=`mktemp -q`; \
3985
	grep -v PRIVATE debian/uno-libs3/DEBIAN/symbols > $$TMP && \
1022.17.150 by Rene Engelhard
somehow symbols ends up as 600, work around
3986
	mv $$TMP debian/uno-libs3/DEBIAN/symbols && \
3987
	chmod 644 debian/uno-libs3/DEBIAN/symbols
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
3988
	dh_installdeb -s
1022.17.331 by Rene Engelhard
enable kfreebsd again, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578023#54
3989
ifeq "$(BUILD_KFREEBSD)" "y"
3990
	cat debian/shlibs.override.libc >> debian/shlibs.local
3991
endif
871 by Rene Engelhard
no dh_icons on etch backport
3992
ifeq "$(USE_SYSTEM_ICU)" "n"
521 by Rene Engelhard
add shlibs override for internal icu
3993
	cat debian/shlibs.override.icu >> debian/shlibs.local
871 by Rene Engelhard
no dh_icons on etch backport
3994
endif
1022.17.285 by Rene Engelhard
fix shlib-dependencies to not depend on the kdelibs5 transitional package anymore when built with KDE 4.4
3995
ifeq "$(BUILD_KDE)" "y"
3996
  ifeq "$(KDE_VER)" "4"
1022.17.295 by Rene Engelhard
add missing $
3997
	if dpkg --compare-versions `dpkg -l kdelibs5-dev | grep ^ii | awk '{ print $$3 }'` le 4:4.4; then \
1022.17.285 by Rene Engelhard
fix shlib-dependencies to not depend on the kdelibs5 transitional package anymore when built with KDE 4.4
3998
		cat debian/shlibs.override.kde >> debian/shlibs.local; \
3999
	fi
4000
  endif
4001
endif
871 by Rene Engelhard
no dh_icons on etch backport
4002
ifeq "$(INTERNAL_STDLIBS)" "y"
402 by Rene Engelhard
fix shlibs.local generation; merge openofficeorg--unstable--2.0.3--patch-145
4003
	cat debian/shlibs.override.stdlibs >> debian/shlibs.local
871 by Rene Engelhard
no dh_icons on etch backport
4004
endif
901.1.61 by Rene Engelhard
reenable cy langpack, more new dpkg-shlibdeps stuff
4005
	# we need to do it in two steps. The new dpkg-shlibdeps doesn't find
1118 by Rene Engelhard
use upstreams tarballs; minor description and comment fix
4006
	# /usr/lib/libgcj-bc.so when specifying -l$(GCJ_JAWT_DIR)
901.1.61 by Rene Engelhard
reenable cy langpack, more new dpkg-shlibdeps stuff
4007
	# and therefore we must not use it for -gcj. But we *do* need it
1097.1.1 by Rene Engelhard
fix -qa-tools' depends, no -gcj when building --without-java, fix comment, udate ooo-build
4008
	# for -officebean (libjawt.so is referenced there)
1022.10.430 by Rene Engelhard
try to avoid dh_shlibdeps warning at -report-builder-bin by adding -base to LD_LIBRARY_PATH
4009
	LD_LIBRARY_PATH="/usr/lib/libfakeroot:debian/uno-libs3/$(OOUREDIR)/lib:debian/ure/$(OOUREDIR)/lib:$(PKGDIR)-core/$(OODIR)/program:$(PKGDIR)-base-core/$(OODIR)/program:$(PKGDIR)-base/$(OODIR)/program:$(PKGDIR)-writer/$(OODIR)/program" \
1022.17.337 by Rene Engelhard
--parallel apparently is for dh_auto_* only, revert change
4010
		dh_shlibdeps -s -Nopenoffice.org$(VER)-officebean \
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
4011
			-Lure -Luno-libs3 \
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
4012
			-ldebian/uno-libs3/$(OOUREDIR)/lib:debian/ure/$(OOUREDIR)/lib:$(PKGDIR)-core/$(OODIR)/program:$(PKGDIR)-base/$(OODIR)/program \
901.1.61 by Rene Engelhard
reenable cy langpack, more new dpkg-shlibdeps stuff
4013
			$(SHLIBS_OVERRIDE)
1022.17.237 by Rene Engelhard
add patch to allow build against system-redland; update build-dep; enable it and work around dpkg-shlibdeps failing
4014
ifeq "$(USE_SYSTEM_REDLAND)" "y"
4015
	# dpkg-shlibdeps "in practice" always will look for this in
4016
        # /usr/lib/openoffice/basisX.Y/program due to the RPATH and the
4017
	# dh_shlibdeps would fail. It's excluded, and we now need to do it
1022.17.269 by Rene Engelhard
clarify comment
4018
	# manually. Saves us a versioned build-conflict with ourselves
4019
	# which quickly can get outdated
1022.17.237 by Rene Engelhard
add patch to allow build against system-redland; update build-dep; enable it and work around dpkg-shlibdeps failing
4020
	perl -pi -e 's/(shlibs.*$$)/$$1, $(shell cat /var/lib/dpkg/info/$(shell dpkg -S /usr/lib/`objdump -p $(PKGDIR)-core/$(OOBASISDIR)/program/libunordf*.so | grep NEEDED | grep librdf | awk '{ print $$2 }'` | cut -d: -f1).shlibs | awk '{ print $$3,$$4,$$5 }')/' $(PKGDIR)-core.substvars
4021
endif
1022.10.101 by Rene Engelhard
remove ure (>= ...) from uno-libs3s Depends: (closes: #519138)
4022
	# don't make uno-libs3 depend on ure...
4023
	perl -pi -e 's/, ure \(.*\)$$//' debian/uno-libs3.substvars
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
4024
ifeq "$(ENABLE_JAVA)" "y"
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
4025
	LD_LIBRARY_PATH="/usr/lib/libfakeroot:debian/uno-libs3/$(OOUREDIR)/lib:debian/ure/$(OOUREDIR)/lib:$(PKGDIR)-core/$(OODIR)/program" \
901.1.61 by Rene Engelhard
reenable cy langpack, more new dpkg-shlibdeps stuff
4026
		dh_shlibdeps -popenoffice.org$(VER)-officebean \
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
4027
			-Lure -Luno-libs3 \
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
4028
			-ldebian/uno-libs3/$(OOUREDIR)/lib:debian/ure/$(OOUREDIR)/lib:$(PKGDIR)-core/$(OODIR)/program:$(GCJ_JAWT_DIR) \
901.1.57 by Rene Engelhard
fix build with new dpkg-dev
4029
			$(SHLIBS_OVERRIDE)
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
4030
endif
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
4031
ifeq "$(PACKAGE_BASE)" "y"
848 by Rene Engelhard
some oversights
4032
	# this is in an extension (.zip), so dh_shlibdeps doesn't get it. We need to do
4033
	# it manually.
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
4034
  ifeq "$(ENABLE_SDBC_POSTGRESQL)" "y"
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
4035
	LD_LIBRARY_PATH="/usr/lib/libfakeroot:debian/uno-libs3/$(OOUREDIR)/lib:debian/ure/$(OOUREDIR)/lib:$(PKGDIR)-core/$(OODIR)/program" \
843 by Rene Engelhard
package PostgreSQL SDBC Driver
4036
		dpkg-shlibdeps -O \
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
4037
			-Sdebian/uno-libs3/$(OOUREDIR)/lib \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
4038
			-Sdebian/ure/$(OOUREDIR)/lib \
843 by Rene Engelhard
package PostgreSQL SDBC Driver
4039
			$(SOURCE_TREE)/connectivity/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/lib/postgresql-sdbc*.so \
4040
			> debian/openoffice.org$(VER)-sdbc-postgresql.substvars
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
4041
  endif
4042
  ifeq "$(ENABLE_MYSQLNATIVE)" "y"
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
4043
	LD_LIBRARY_PATH="/usr/lib/libfakeroot:debian/uno-libs3/$(OOUREDIR)/lib:debian/ure/$(OOUREDIR)/lib:$(PKGDIR)-core/$(OODIR)/program" \
4044
		dpkg-shlibdeps -O \
4045
			-Sdebian/uno-libs3/$(OOUREDIR)/lib \
4046
			-Sdebian/ure/$(OOUREDIR)/lib \
4047
			$(SOURCE_TREE)/mysqlc/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/lib/mysqlc.uno.so \
4048
			$(SOURCE_TREE)/mysqlcppconn/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/lib/libmysqlcppconn.so \
4049
			> debian/openoffice.org$(VER)-mysql-connector.substvars
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
4050
    ifeq "$(USE_SYSTEM_MYSQLCPPCONN)" "n"
1022.10.453 by Rene Engelhard
update ooo-build for mysqlclient SONAME fix and add dep to libmysqlclient16...
4051
	# add mysqlclient dependency; it apparently is only dlopen()ed in
4052
	# the internal case.. (And in the external case we have a dep on
4053
	# libmysqlcppconn4 which deps on libmysqlclient16 already)
4054
	perl -pi -e 's/(shlibs:Depends=.*$$)/$$1, $(shell cat /var/lib/dpkg/info/libmysqlclient16.shlibs | grep _r | cut -d" " -f3,4,5)/' \
4055
		debian/openoffice.org$(VER)-mysql-connector.substvars
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
4056
    endif
1022.10.453 by Rene Engelhard
update ooo-build for mysqlclient SONAME fix and add dep to libmysqlclient16...
4057
  endif
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
4058
endif
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
4059
ifeq "$(ENABLE_MINIMIZER)" "y"
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
4060
	 LD_LIBRARY_PATH="/usr/lib/libfakeroot:debian/uno-libs3/$(OOUREDIR)/lib:debian/ure/$(OOUREDIR)/lib:$(PKGDIR)-core/$(OODIR)/program" \
902 by Rene Engelhard
inital 2.4 work, Presentation Minimizer package
4061
	 	dpkg-shlibdeps -O \
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
4062
			-Sdebian/uno-libs3/$(OOUREDIR)/lib \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
4063
			-Sdebian/ure/$(OOUREDIR)/lib \
941 by Rene Engelhard
temporarily disable the binfilters; fix binfilter conditional; temporarily build only en-US, some build fixes
4064
			$(SOURCE_TREE)/sdext/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/lib/SunPresentationMinimizer.uno.so \
4065
			> debian/openoffice.org$(VER)-presentation-minimizer.substvars
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
4066
endif
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
4067
ifeq "$(ENABLE_PRESENTER_CONSOLE)" "y"
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
4068
	 LD_LIBRARY_PATH="/usr/lib/libfakeroot:debian/uno-libs3/$(OOUREDIR)/lib:debian/ure/$(OOUREDIR)/lib:$(PKGDIR)-core/$(OODIR)/program" \
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
4069
	 	dpkg-shlibdeps -O \
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
4070
			-Sdebian/uno-libs3/$(OOUREDIR)/lib \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
4071
			-Sdebian/ure/$(OOUREDIR)/lib \
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
4072
			$(SOURCE_TREE)/sdext/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/lib/PresenterScreen.uno.so \
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
4073
			> debian/openoffice.org$(VER)-presenter-console.substvars
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
4074
endif
1022.1.20 by Rene Engelhard
get pdf-importers shlibdeps
4075
ifeq "$(ENABLE_PDFIMPORT)" "y"
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
4076
	 LD_LIBRARY_PATH="/usr/lib/libfakeroot:debian/uno-libs3/$(OOUREDIR)/lib:debian/ure/$(OOUREDIR)/lib:$(PKGDIR)-core/$(OODIR)/program" \
1022.1.20 by Rene Engelhard
get pdf-importers shlibdeps
4077
	 	dpkg-shlibdeps -O \
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
4078
			-Sdebian/uno-libs3/$(OOUREDIR)/lib \
1022.1.70 by Rene Engelhard
first bunch of install fixes, some changelog fixes
4079
			-Sdebian/ure/$(OOUREDIR)/lib \
1022.1.207 by Rene Engelhard
xpdfimport moved to sdext with the system-poppler patch
4080
			$(SOURCE_TREE)/sdext/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/bin/xpdfimport \
1022.1.204 by Rene Engelhard
m3; merge build fix
4081
			$(SOURCE_TREE)/sdext/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/lib/pdfimport.uno.so \
1022.1.52 by Rene Engelhard
various pdf import fixes, pdf-import -> pdfimport to sync with rules
4082
			> debian/openoffice.org$(VER)-pdfimport.substvars
1022.1.20 by Rene Engelhard
get pdf-importers shlibdeps
4083
endif
871 by Rene Engelhard
no dh_icons on etch backport
4084
ifeq "$(ENABLE_MONO)" "y"
1022.4.1 by Rene Engelhard
make more compliant with mono policy
4085
	dh_makeclilibs -s
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4086
	dh_clideps -s
871 by Rene Engelhard
no dh_icons on etch backport
4087
endif
31 by Chris Halls
Imported openoffice_org-1_1_0-3
4088
# This switch to dh_shlibdeps reduces the 'libXXX not found' warnings but
4089
# causes ldd crashes sometimes when used with fakeroot:
259 by Rene Engelhard
build/use .shlibs
4090
#          -l $(PKGDIR)-core/$(OPENOFFICEDIR)/program
1022.5.2 by Rene Engelhard
change uno-libs3-dbg version also to ures version
4091
	dh_gencontrol -s $(DEBHELPER_OPTIONS) -Nure -Nure-dbg -Nuno-libs3 -Nuno-libs3-dbg \
902 by Rene Engelhard
inital 2.4 work, Presentation Minimizer package
4092
		-Nopenoffice.org$(VER)-presentation-minimizer \
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
4093
		-Nopenoffice.org$(VER)-presenter-console \
1022.1.52 by Rene Engelhard
various pdf import fixes, pdf-import -> pdfimport to sync with rules
4094
		-Nopenoffice.org$(VER)-pdfimport \
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
4095
		-Nopenoffice.org$(VER)-sdbc-postgresql \
4096
		-Nopenoffice.org$(VER)-mysql-connector -- \
1022.10.39 by Rene Engelhard
update ure:Version, too
4097
		-V"ure:Version=$(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`" \
416 by Rene Engelhard
introduce new BASE_VERSION variable; use ~; merge openofficeorg--unstable--2.0.3--patch-155
4098
		-V'base-version=$(BASE_VERSION)' \
419 by Rene Engelhard
more ~ fixes
4099
		-V'help-l10n-virtual-version=$(HELP_L10N_VIRTUAL_VERSION)' \
57 by Martin Kretzschmar
Imported openoffice.org2_1.9.121-2
4100
		-V'dev-stl-depends=$(DEV_STL_DEPENDS)' \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
4101
		-V'base-hsqldb-depends=$(BASE_HSQLDB_DEPENDS)' \
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
4102
		-V'java-common-depends=$(JAVA_COMMON_DEPENDS) $(JAVA_COMMON_DEPENDS_VERSION)' \
963 by Rene Engelhard
fix without-java build; update ooo-build; no ogltrans for slow(?) arm(el) and mips(el)
4103
		-V'java-runtime-depends=$(JAVA_RUNTIME_DEPENDS)' \
523 by Rene Engelhard
Ubuntu merge
4104
		-V'java-gcj-depends=$(JAVA_GCJ_DEPENDS)' \
307 by Rene Engelhard
merge conditionals simplification/split patch, fix some build issues and adapt to stuff now done in ooo-build, close RTL dropdown bugs since apparently fixed; target to unstable; enable build against Xultunner now that xmlsec is fixed
4105
		-V'mozilla-nss-depends=$(MOZILLA_NSS_DEPENDS)' \
1022.1.292 by Rene Engelhard
add lucene-depends substitution also to binary-arch
4106
		-V'lucene-depends=$(LUCENE_DEPENDS)' \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
4107
		-V'Binary-Version=$(BINARY_VERSION)' \
643 by Rene Engelhard
rc3; enable system-libwps; fix binfilter substvar; install scsolvers changelog; generalize mono-ooo.pc install; lintian fixes
4108
		-V'ooo-binfilter-dep=$(OOO_BINFILTER_DEP)' \
1071 by Rene Engelhard
* debian/control.in, debian/rules:
4109
		-V'ooo-officebean-dep=$(OOO_OFFICEBEAN_DEP)' \
1022.10.270 by Rene Engelhard
oxygen icons
4110
		-V'kde-iconset-dep=$(KDE_ICONSET_DEP)' \
628 by Rene Engelhard
bump lp-solve builddeps when building with system-lpsolve; HELP_L10N_VIRTUAL_VERSION:=2.2; more .desktop fixes; bump libhunspell-dev builddep for sid; merge openofficeorg--unstable--2.0.4--patch-131; merge 2.1-4.5pre change into 2.2.0~rc1-0.1pre
4111
		-V'lpsolve-dep=$(LPSOLVE_DEP)' \
450 by Rene Engelhard
suggest gstreamer0.10-plugins-*
4112
		-V'gstreamer-plugins-suggests=$(GSTREAMER_PLUGINS_SUGGESTS)' \
1313.1.11 by Martin Pitt
debian/rules: Disable "libebook-dep" substvar, as OO.o currently doesn't
4113
		-V'libebook-depDISABLED=$(shell debian/scripts/get_libebook_dep.sh)' \
1022.17.15 by Rene Engelhard
remove hardcoded libldap2-dev builddep, move to conditional and suggest the lib
4114
		-V'libldap-suggests=$(LDAP_LIB)' \
455 by Rene Engelhard
suggest -dbg packages for libs we use at -dbg
4115
		-V'dbg-dbg-suggests=$(DBG_DBG_SUGGESTS)' \
58 by Martin Kretzschmar
Imported openoffice.org2_1.9.125-1
4116
		-v$(BINARY_VERSION)
1279 by Chris Cheney
openoffice.org (1:3.2.0-4ubuntu1) lucid; urgency=low
4117
ifeq "$(ENABLE_JAVA)" "y"
4118
	perl -pi -e "s/java-gcj-compat/java-gcj-compat (>= 1.0.77-4)/" \
4119
		debian/openoffice.org$(VER)-officebean/DEBIAN/control
4120
endif
1022.17.306 by Rene Engelhard
mysqlc also is a arch-dep extension - was missed. don't try to dpkg-gencontrol on the not-built packages as that will fail
4121
ifneq (,$(findstring $(ARCH),$(OOO_ARCH_DEP_EXTENSIONS_ARCHS)))
1022.1.18 by Rene Engelhard
PDF Import extension...
4122
ifeq "$(ENABLE_PDFIMPORT)" "y"
4123
	dh_gencontrol -popenoffice.org$(VER)-pdfimport -- \
1022.1.204 by Rene Engelhard
m3; merge build fix
4124
		-v$(shell grep "<version" $(SOURCE_TREE)/sdext/source/pdfimport/config/description.xml | perl -pi -e 's,<version.*value=\"(.*)\" />,\1,; s/^\s+//')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.1.18 by Rene Engelhard
PDF Import extension...
4125
endif
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
4126
ifeq "$(ENABLE_MINIMIZER)" "y"
941 by Rene Engelhard
temporarily disable the binfilters; fix binfilter conditional; temporarily build only en-US, some build fixes
4127
	dh_gencontrol -popenoffice.org$(VER)-presentation-minimizer -- \
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
4128
		-v$(shell grep "<version" $(SOURCE_TREE)/sdext/source/minimizer/description.xml | perl -pi -e 's,<version value=\"(.*)\"/>,\1,; s/^\s+//')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
4129
endif
1022.1.147 by Rene Engelhard
more s/screen/console/ and uno-libs3 fixes
4130
ifeq "$(ENABLE_PRESENTER_CONSOLE)" "y"
1022.1.146 by Rene Engelhard
update ooo-build and reenable -qa-* and binfilters; we need a .shlibs for ure, too (e.g. libjvmfwk.so.3); more extension fixes
4131
	dh_gencontrol -popenoffice.org$(VER)-presenter-console -- \
1022.1.79 by Rene Engelhard
updates for m13
4132
		-v$(shell grep "<version" $(SOURCE_TREE)/sdext/source/presenter/description.xml | perl -pi -e 's,<version value=\"(.*)\" />,\1,; s/^\s+//')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.2.1 by Rene Engelhard
package/prepare for the new extensions in m6
4133
endif
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
4134
ifeq "$(PACKAGE_BASE)" "y"
4135
  ifeq "$(ENABLE_SDBC_POSTGRESQL)" "y"
843 by Rene Engelhard
package PostgreSQL SDBC Driver
4136
	dh_gencontrol -popenoffice.org$(VER)-sdbc-postgresql -- \
1022.17.206 by Rene Engelhard
Hack around 0.7.6+... > 0.7.6+... by keeping 0.7.6 as version
4137
		-v`echo $(BINARY_VERSION) | cut -d: -f1`:$(shell grep ^PQ_SDBC_M $(SOURCE_TREE)/connectivity/source/drivers/postgresql/makefile.mk | cut -d"=" -f2 | xargs | sed -e s/\ /\./g | sed -e s/a$$//)+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
4138
  endif
4139
  ifeq "$(ENABLE_MYSQLNATIVE)" "y"
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
4140
	dh_gencontrol -popenoffice.org$(VER)-mysql-connector -- \
4141
		-v$(shell grep "<version" $(SOURCE_TREE)/mysqlc/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/description.xml | perl -pi -e 's,<version value=\"(.*)\" />,\1,; s/^\s+//; s/\s+$$//')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.24.100 by Rene Engelhard
disable Base and associated stuff for armel
4142
  endif
1022.10.316 by Rene Engelhard
* debian/control.mysql.in, debian/rules,
4143
endif
1022.17.306 by Rene Engelhard
mysqlc also is a arch-dep extension - was missed. don't try to dpkg-gencontrol on the not-built packages as that will fail
4144
endif
1022.5.2 by Rene Engelhard
change uno-libs3-dbg version also to ures version
4145
	dh_gencontrol -pure -pure-dbg -puno-libs3 -puno-libs3-dbg -- \
1022.10.25 by Rene Engelhard
use UREPACKAGEVERSION for determining UREs version
4146
		-V"ure:Version=$(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`" \
4147
		-v$(shell grep UREPACKAGEVERSION $(SOURCE_TREE)/instsetoo_native/util/openoffice.lst | awk '{ print $$2 }')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.10.486 by Rene Engelhard
also -X/var/lib/openoffice/basisX.Y/program/services.rdb for dh_md5sums
4148
	dh_md5sums -s -X$(shell echo $(OOBASISDIR) | sed -e s/usr/var/)/program/services.rdb
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
4149
	dh_builddeb -s $(DEBHELPER_OPTIONS) $(BUILDDEB_OPTIONS)
1034 by Chris Cheney
debian/rules: clean up whitespace
4150
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4151
	touch $@
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
4152
endif # binary-arch for openoffice.org source
2 by Chris Halls
Imported openoffice_org-1_0_0-4
4153
826 by Chris Cheney
* debian/control.2.in:
4154
binary-indep: $(GSI_EXPORT_STAMP) $(STAMP_DIR)/binary-indep
1022.10.51 by Rene Engelhard
start migrating to dh_install
4155
$(STAMP_DIR)/binary-indep: $(STAMP_DIR)/install-indep debian/control $(STAMP_DIR)/maintscripts $(STAMP_DIR)/langpacks $(STAMP_DIR)/broffice
391 by Rene Engelhard
merge openofficeorg--unstable--2.0.3--patch-129
4156
ifneq ($(ARCH),$(findstring $(ARCH),$(OOO_JAVA_ARCHS)))
228 by Rene Engelhard
actually add control.gcj.in
4157
	echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
4158
	echo "For uploads with binary-all packages, please use arches where Java is enabled!!!!!"
4159
	echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
4160
endif
1022.1.237 by Rene Engelhard
also complain in binary-indep when Mono is disabled
4161
ifneq ($(ARCH),$(findstring $(ARCH),$(OOO_MONO_ARCHS)))
1022.1.238 by Rene Engelhard
spaces -> tab....
4162
	echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
4163
	echo "For uploads with binary-all packages, please use arches where Mono is enabled!!!!!"
4164
	echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
1022.1.237 by Rene Engelhard
also complain in binary-indep when Mono is disabled
4165
endif
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4166
	dh_testdir
4167
	dh_testroot
4168
4169
	for pkg in $(ARCH_INDEP_PACKAGES) ; do \
4170
	  rm -f debian/$$pkg.*.debhelper;\
4171
	  rm -rf debian/$$pkg/DEBIAN;\
4172
	done
4173
1220 by Chris Cheney
Fix issue with building openoffice.org-l10n.
4174
ifneq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4175
ifeq "$(PACKAGE_SDK)" "y"
4176
	. $(SOURCE_TREE)/solenv/inc/udkversion.mk && \
4177
	for i in common cpp java; do \
711 by Rene Engelhard
s/doc/ref/
4178
		cat debian/udk-$$i-ref.in \
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4179
			| sed -e "s/@UDK_MAJOR@/$$UDK_MAJOR/" \
4180
		      	      -e "s/@UDK_MINOR@/$$UDK_MINOR/" \
4181
		      	      -e "s/@UDK_MICRO@/$$UDK_MICRO/" \
4182
		      	      -e "s/@VER@/$(VER)/" \
711 by Rene Engelhard
s/doc/ref/
4183
			> debian/openoffice.org-dev-doc.doc-base.udk-$$i-ref; \
901.1.11 by Rene Engelhard
get rid of Autodoc_DiagnosticMessages.txt completely
4184
	done
4185
	# remove Autodoc_DiagnosticMessages.txt
901.1.18 by Rene Engelhard
fix path
4186
	find $(PKGDIR)-dev-doc/usr/share/doc/openoffice.org-dev \
901.1.11 by Rene Engelhard
get rid of Autodoc_DiagnosticMessages.txt completely
4187
		-name "Autodoc_DiagnosticMessages.txt" -exec rm {} \;
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4188
	UDK_CPP_FILES=`find $(CURDIR)/debian/openoffice.org-dev-doc/usr/share/doc/openoffice.org-dev/docs/cpp/ref | sed -e 's,$(CURDIR)/debian/openoffice.org-dev-doc,,g' | xargs`; \
809 by Chris Cheney
- wrap various java code with ENABLE_JAVA [CC]
4189
	echo "Files: $$UDK_CPP_FILES" >> debian/openoffice.org-dev-doc.doc-base.udk-cpp-ref
819 by Chris Cheney
indentation cleanups
4190
  ifeq "$(ENABLE_JAVA)" "y"
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4191
	UDK_JAVA_FILES=`find $(CURDIR)/debian/openoffice.org-dev-doc/usr/share/doc/openoffice.org-dev/docs/java/ref | sed -e 's,$(CURDIR)/debian/openoffice.org-dev-doc,,g' | xargs`; \
4192
	echo "Files: $$UDK_JAVA_FILES" >> debian/openoffice.org-dev-doc.doc-base.udk-java-ref
819 by Chris Cheney
indentation cleanups
4193
  endif
713 by Rene Engelhard
fix comment
4194
	# xargs strips the many files here so we need to post-process it.
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4195
	UDK_COMMON_FILES=`find $(CURDIR)/debian/openoffice.org-dev-doc/usr/share/doc/openoffice.org-dev/docs/common/ref | sed -e 's,$(CURDIR)/debian/openoffice.org-dev-doc,,g' | xargs`; \
4196
	TMP=`mktemp -q`; \
4197
	cp debian/openoffice.org-dev-doc.doc-base.udk-common-ref $$TMP; \
4198
	echo "Files: $$UDK_COMMON_FILES" >> $$TMP; \
799 by Rene Engelhard
remove generated temporaqry files
4199
	cat $$TMP | perl -e 'while(<>) { if (/^Files/) {$$f=1;} if ($$f eq "1") { chomp(); } print $$_; }' > debian/openoffice.org-dev-doc.doc-base.udk-common-ref; \
4200
	rm -f $$TMP
722 by Rene Engelhard
update sysui; add abou.bmp to diversions, fix udk-common-ref doc-base
4201
	# no idea why this happens; afais this can't come from above
4202
	# since it doesn't affect the files at the end of the lines...
4203
	# But fix it..
4204
	perl -pi -e 's,html/,html /,g' debian/openoffice.org-dev-doc.doc-base.udk-common-ref
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4205
endif
1220 by Chris Cheney
Fix issue with building openoffice.org-l10n.
4206
endif
1163 by Chris Cheney
Merge Debian's:
4207
	dh_installdocs -i -A debian/README.Debian \
1022.10.55 by Rene Engelhard
typo (or merge error?)
4208
		$(SOURCE_TREE)/instsetoo_native/util/OpenOffice/replace_file/*/00/README \
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
4209
		$(OOO_BUILD_TREE)/NEWS
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4210
	dh_installman -i
4211
	for i in `find $(PKGDIR)-common -type l -name "o*.1"`; do \
4212
		mv $$i $$i.gz; \
4213
		if [ "`readlink $$i`" != "openoffice.1.gz" ]; then \
4214
			ln -sf openoffice.1.gz $$i.gz; \
4215
		fi; \
4216
	done
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
4217
	if [ -s $(OOO_BUILD_TREE)/ChangeLog ]; then \
4218
		dh_installchangelogs -i -k $(OOO_BUILD_TREE)/ChangeLog; \
1022.17.64 by Rene Engelhard
fixup (spaces -> tabs)
4219
	else \
4220
		dh_installchangelogs -i -k; \
4221
	fi
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
4222
ifeq "$(USE_COMMON_DOCDIR)" "y"
4223
  ifneq "" "$(findstring openoffice.org$(VER)-common, $(PACKAGES))"
4224
	mkdir -p $(PKGDIR)-common/usr/share/doc/openoffice.org$(VER)-common
4225
	install -m644 debian/README.Debian debian/copyright \
4226
	  $(PKGDIR)-common/usr/share/doc/openoffice.org$(VER)-common/
4227
    ifeq "$(PACKAGE_TTF_OPENSYMBOL)" "y"
4228
	dh_installdocs -pttf-opensymbol
4229
	dh_installchangelogs -pttf-opensymbol
4230
    endif
4231
  endif
4232
4233
	# l10 & help packages (with docdir symlinks)
1161 by Chris Cheney
openoffice.org (1:2.4.1-6ubuntu1) intrepid; urgency=low
4234
	for PKG in \
4235
	  $(HELP_PACKAGES) $(LANG_PACKAGES); \
4236
	do \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
4237
	  case $$PKG in \
4238
	    *l10n-en-us) target=openoffice.org$(VER)-common;; \
4239
	    *) target=openoffice.org$(VER)-l10n-common; \
4240
	  esac; \
4241
	  rm -rf debian/$$PKG/usr/share/doc/$$PKG; \
4242
	  mkdir -p debian/$$PKG/usr/share/doc; \
4243
	  ln -sf $$target debian/$$PKG/usr/share/doc/$$PKG; \
4244
	  rm -f debian/$$PKG.p*; \
4245
	  rm -f debian/$$PKG/usr/share/doc/$$target/copyright; \
4246
	  rm -f debian/$$PKG/usr/share/doc/$$target/changelog.Debian*; \
4247
	  sed "s/@PKGNAME@/$$PKG/g;s/@PKGTARGET@/$$target/g" \
4248
	    debian/deppackage.postinst.in > debian/$$PKG.postinst; \
4249
	done
4250
4251
	# indep packages (with docdir symlinks)
4252
	for s in \
1161 by Chris Cheney
openoffice.org (1:2.4.1-6ubuntu1) intrepid; urgency=low
4253
	  -dev-doc -dtd-officedocument1.0 -emailmerge -filter-mobiledev \
1170 by Chris Cheney
openoffice.org (1:3.0.0~rc2-1ubuntu1) intrepid; urgency=low
4254
	  -java-common -qa-api-tests -report-builder -style-andromeda \
1286 by Chris Cheney
openoffice.org (1:3.2.0-6ubuntu1) UNRELEASED; urgency=low
4255
	  -style-crystal -style-galaxy -style-hicontrast -style-human \
4256
	  -style-industrial -style-oxygen -style-tango -wiki-publisher; \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
4257
	do \
4258
	  PKG=openoffice.org$(VER)$$s; \
4259
	  echo " $(PACKAGES) " | fgrep -q " $$PKG " || continue; \
4260
	  target=openoffice.org$(VER)-common; \
4261
	  rm -rf debian/$$PKG/usr/share/doc/$$PKG; \
4262
	  rm -f debian/$$PKG/usr/share/doc/$$target/copyright; \
4263
	  rm -f debian/$$PKG/usr/share/doc/$$target/changelog.Debian*; \
4264
	  mkdir -p debian/$$PKG/usr/share/doc; \
4265
	  ln -sf $$target debian/$$PKG/usr/share/doc/$$PKG; \
4266
	  case "$$s" in -style-*) continue; esac; \
4267
	  sed "s/@PKGNAME@/$$PKG/g;s/@PKGTARGET@/$$target/g" \
4268
	    debian/deppackage.postinst.in >> debian/$$PKG.postinst; \
1286 by Chris Cheney
openoffice.org (1:3.2.0-6ubuntu1) UNRELEASED; urgency=low
4269
	done
4270
	for PKG in \
4271
	  libuno-cli-cppuhelper1.0-cil libuno-cli-oootypes1.0-cil \
4272
	  libuno-cli-ure1.0-cil libuno-cli-uretypes1.0-cil; \
4273
	do \
4274
	  echo " $(PACKAGES) " | fgrep -q " $$PKG " || exit 0; \
4275
	  target=libuno-cli-basetypes1.0-cil; \
4276
	  rm -rf debian/$$PKG/usr/share/doc/$$PKG; \
4277
	  rm -f debian/$$PKG/usr/share/doc/$$target/copyright; \
4278
	  rm -f debian/$$PKG/usr/share/doc/$$target/changelog.Debian*; \
4279
	  mkdir -p debian/$$PKG/usr/share/doc; \
4280
	  ln -sf $$target debian/$$PKG/usr/share/doc/$$PKG; \
4281
	  sed "s/@PKGNAME@/$$PKG/g;s/@PKGTARGET@/$$target/g" \
4282
	    debian/deppackage.postinst.in >> debian/$$PKG.postinst; \
4283
	done
4284
	for PKG in \
4285
	  broffice.org ; \
4286
	do \
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
4287
	  echo " $(PACKAGES) " | fgrep -q " $$PKG " || exit 0; \
4288
	  target=openoffice.org$(VER); \
4289
	  rm -rf debian/$$PKG/usr/share/doc/$$PKG; \
4290
	  rm -f debian/$$PKG/usr/share/doc/$$target/copyright; \
4291
	  rm -f debian/$$PKG/usr/share/doc/$$target/changelog.Debian*; \
4292
	  mkdir -p debian/$$PKG/usr/share/doc; \
1286 by Chris Cheney
openoffice.org (1:3.2.0-6ubuntu1) UNRELEASED; urgency=low
4293
	  ln -sf $$target debian/$$PKG/usr/share/doc/$$PKG; \
4294
	  sed "s/@PKGNAME@/$$PKG/g;s/@PKGTARGET@/$$target/g" \
4295
	    debian/deppackage.postinst.in >> debian/$$PKG.postinst; \
4296
	done
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
4297
endif
1286 by Chris Cheney
openoffice.org (1:3.2.0-6ubuntu1) UNRELEASED; urgency=low
4298
1022.1.290 by Rene Engelhard
dh_installmime
4299
	dh_installmime -i
1022.1.2 by Rene Engelhard
overrides.lintian -> lintian-overrides and use dh_lintian
4300
	dh_lintian -i
1022.10.516 by Rene Engelhard
migrate bug script installation to dh_bugfiles
4301
	dh_bugfiles -i -A
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4302
	dh_link -i
4303
	dh_fixperms -i
1022.10.353 by Rene Engelhard
lintian fixes; update ooo-build and close #416877
4304
ifeq "$(LENNY_BACKPORT)" "y"
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4305
	dh_desktop -i
1022.15.6 by Rene Engelhard
stop running dh_desktop on sid, thanks lintian
4306
endif
826 by Chris Cheney
* debian/control.2.in:
4307
	dh_icons -i
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4308
	dh_installxmlcatalogs -i
1022.4.1 by Rene Engelhard
make more compliant with mono policy
4309
ifeq "$(ENABLE_MONO)" "y"
4310
	dh_installcligac -i
4311
endif
1298 by Matthias Klose
- checkin packaging changes for 1:3.2.1-5ubuntu2
4312
	dh_compress -i -X.py -X.mk -X.sxd -X.xcd.sample
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4313
	dh_installdeb -i
1022.4.1 by Rene Engelhard
make more compliant with mono policy
4314
ifeq "$(ENABLE_MONO)" "y"
4315
	dh_makeclilibs -i
4316
	dh_clideps -i
4317
endif
1022.10.14 by Rene Engelhard
remove PCVSLIB stuff (which didn't work anyway)
4318
	dh_gencontrol -i $(DEBHELPER_OPTIONS) \
1159.1.13 by Rene Engelhard
more -report-builder fixes; more -java-common Replaces:
4319
		-Nopenoffice.org$(VER)-report-builder \
1022.4.1 by Rene Engelhard
make more compliant with mono policy
4320
		-Nopenoffice.org$(VER)-wiki-publisher \
4321
		-Nlibuno-cli-basetypes1.0-cil \
1022.6.13 by Rene Engelhard
cli_types split
4322
		-Nlibuno-cli-uretypes1.0-cil \
4323
		-Nlibuno-cli-oootypes1.0-cil \
1022.4.1 by Rene Engelhard
make more compliant with mono policy
4324
		-Nlibuno-cli-cppuhelper1.0-cil \
4325
		-Nlibuno-cli-ure1.0-cil -- \
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4326
		-V'base-version=$(BASE_VERSION)' \
1022.10.210 by Rene Engelhard
fix conflicts
4327
		-V'basis-version=$(BASIS_VERSION)' \
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4328
		-V'help-l10n-virtual-version=$(HELP_L10N_VIRTUAL_VERSION)' \
4329
		-V'common-bsh-depends=$(COMMON_BSH_DEPENDS)' \
4330
		-V'java-common-depends=$(JAVA_COMMON_DEPENDS)' \
4331
		-V'java-common-java-depends=$(JAVA_COMMON_JAVA_DEPENDS)' \
1212 by Chris Cheney
openoffice.org (1:3.0.1-9ubuntu3) jaunty; urgency=low
4332
		-V'java-runtime-depends=$(JAVA_RUNTIME_DEPENDS)' \
1022.6.7 by Rene Engelhard
recommend lucene
4333
		-V'lucene-depends=$(LUCENE_DEPENDS)' \
1022.19.2 by Rene Engelhard
add conflict against (<< <minor version of lucene OOo was built with)
4334
		-V'lucene-conflicts=$(LUCENE_CONFLICTS)' \
1022.17.329 by Rene Engelhard
use textcat data from libtextcat-data-utf8 if the same with "ours"
4335
		-V'textcat-data-recommends=$(TEXTCAT_DATA_RECOMMENDS)' \
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4336
		-V'Binary-Version=$(BINARY_VERSION)' \
4337
		-V'ooo-binfilter-dep=$(OOO_BINFILTER_DEP)' \
4338
		-V'dbg-dbg-suggests=$(DBG_DBG_SUGGESTS)' \
4339
		-v$(BINARY_VERSION)
1170 by Chris Cheney
openoffice.org (1:3.0.0~rc2-1ubuntu1) intrepid; urgency=low
4340
ifneq "$(PKGSOURCE)" "openoffice.org$(VER)-l10n"
1022.4.1 by Rene Engelhard
make more compliant with mono policy
4341
ifeq "$(ENABLE_MONO)" "y"
4342
	# although this version gets increased before every OOo release
1022.1.124 by Rene Engelhard
* debian/rules, debian/control.mono.in, debian/*.installcligac: split
4343
	# we need the +OOo anyway when we build milestones..
1022.4.1 by Rene Engelhard
make more compliant with mono policy
4344
	dh_gencontrol -plibuno-cli-basetypes1.0-cil -- \
4345
		-v$(shell grep CLI_BASETYPES_NEW_VERSION $(SOURCE_TREE)/cli_ure/version/version.txt | cut -d"=" -f2)+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.1.169 by Rene Engelhard
uretypes is also 1.0
4346
	dh_gencontrol -plibuno-cli-uretypes1.0-cil -- \
1022.6.13 by Rene Engelhard
cli_types split
4347
		-v$(shell grep CLI_URETYPES_NEW_VERSION $(SOURCE_TREE)/cli_ure/version/version.txt | cut -d"=" -f2)+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.1.167 by Rene Engelhard
some typoos wrt the mono stuff, move conflicts to the right package
4348
	dh_gencontrol -plibuno-cli-oootypes1.0-cil -- \
1022.1.168 by Rene Engelhard
another typo
4349
		-v$(shell grep CLI_OOOTYPES_NEW_VERSION $(SOURCE_TREE)/unoil/climaker/version.txt | cut -d"=" -f2)+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.4.1 by Rene Engelhard
make more compliant with mono policy
4350
	dh_gencontrol -plibuno-cli-cppuhelper1.0-cil -- \
4351
		-v$(shell grep CLI_CPPUHELPER_NEW_VERSION $(SOURCE_TREE)/cli_ure/version/version.txt | cut -d"=" -f2)+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
4352
	dh_gencontrol -plibuno-cli-ure1.0-cil -- \
4353
		-v$(shell grep CLI_URE_NEW_VERSION $(SOURCE_TREE)/cli_ure/version/version.txt | cut -d"=" -f2)+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
4354
endif
1170 by Chris Cheney
openoffice.org (1:3.0.0~rc2-1ubuntu1) intrepid; urgency=low
4355
ifeq "$(ENABLE_MEDIAWIKI)" "y"
1022.1.63 by Rene Engelhard
-wiki-publisher is arch-indep
4356
	dh_gencontrol -popenoffice.org$(VER)-wiki-publisher -- \
4357
		-V'mediawiki-jar-depends=$(MEDIAWIKI_JAR_DEPENDS)' \
1022.10.404 by Rene Engelhard
actually add lucene-depends to -wiki-publishers dh_gencontrol call
4358
		-V'lucene-depends=$(LUCENE_DEPENDS)' \
1022.1.63 by Rene Engelhard
-wiki-publisher is arch-indep
4359
		-V'java-runtime-depends=$(JAVA_RUNTIME_DEPENDS)' \
1022.1.73 by Rene Engelhard
one + too much
4360
		-v$(shell grep "<version" $(SOURCE_TREE)/swext/mediawiki/src/description.xml | perl -pi -e 's,<version value=\"(.*)\"/>,\1,; s/^\s+//')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1022.1.63 by Rene Engelhard
-wiki-publisher is arch-indep
4361
endif
1159.1.13 by Rene Engelhard
more -report-builder fixes; more -java-common Replaces:
4362
ifeq "$(ENABLE_REPORTDESIGN)" "y"
4363
	dh_gencontrol -popenoffice.org$(VER)-report-builder -- \
1022.1.239 by Rene Engelhard
reenable report-builder; fix dependency
4364
		-V'base-version=$(BASE_VERSION)' \
1159.1.13 by Rene Engelhard
more -report-builder fixes; more -java-common Replaces:
4365
		-V'report-builder-jar-depends=$(REPORT_BUILDER_JAR_DEPENDS)' \
1159.2.4 by Rene Engelhard
actually set java-runtime-depends for -report-builder
4366
		-V'java-runtime-depends=$(JAVA_RUNTIME_DEPENDS)' \
1022.10.93 by Rene Engelhard
fix getting the -report-builder version;lenny-backport fixes (internal icu, internal jfreereport)
4367
		-v`echo $(BINARY_VERSION) | cut -d: -f1`:$(shell grep "<version" $(SOURCE_TREE)/reportbuilder/$(shell . $(SOURCE_TREE)/*.sh; echo $$OUTPATH$$PROEXT)/misc/description.xml | perl -pi -e 's,<version value=\"(.*)\"/>,\1,; s/^\s+//')+OOo`echo $(BINARY_VERSION) | cut -d: -f2`
1159.1.13 by Rene Engelhard
more -report-builder fixes; more -java-common Replaces:
4368
endif
1170 by Chris Cheney
openoffice.org (1:3.0.0~rc2-1ubuntu1) intrepid; urgency=low
4369
endif
1022.10.484 by Rene Engelhard
add -Xjavasettingsunopkginstall.xml so that it doesn't end up in .md5sums
4370
	dh_md5sums -i -Xjavasettingsunopkginstall.xml
1160 by Chris Cheney
hand merge all Ubuntu changes, should not need to do this again.
4371
	dh_builddeb -i $(DEBHELPER_OPTIONS) $(BUILDDEB_OPTIONS)
1034 by Chris Cheney
debian/rules: clean up whitespace
4372
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4373
	touch $@
1 by Chris Halls
Import from old cvs.debian.org
4374
4375
binary: binary-arch binary-indep
4376
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4377
# Get ooo-build
28 by Chris Halls
Imported openoffice_org-1_0_99_1_1rc3-1
4378
get-ooo-build:
1022.17.224 by Rene Engelhard
update get-ooo-build target
4379
	rm -rf $(OOO_BUILD_TREE)
4380
	wget http://download.go-oo.org/$(MWS)/ooo-build-$(OOO_BUILD_VERSION).tar.gz && \
4381
	tar xfvz ooo-build-$(OOO_BUILD_VERSION).tar.gz && \
1022.17.225 by Rene Engelhard
rm ooo-build-$(OOO_BUILD_VERSION).tar.gz
4382
	mv ooo-build-$(OOO_BUILD_VERSION) $(OOO_BUILD_TREE) && \
4383
	rm ooo-build-$(OOO_BUILD_VERSION).tar.gz
38 by Martin Kretzschmar
Imported openoffice.org2_1.9.66-0ubuntu1
4384
1106 by Rene Engelhard
add get-orig-source target
4385
get-orig-source:
1022.10.325 by Rail Aliev
Use the upstream tarballs when WITH_SPLIT=n
4386
ifneq "$(WITH_SPLIT)" "y"
4387
	if test -n "$$TMP"; then \
4388
		TMPD=`mktemp -d -p $$TMP`; \
4389
	else \
4390
		TMPD=`mktemp -d`; \
4391
	fi && \
4392
	cd $$TMPD && \
1022.24.8 by Rene Engelhard
move from ooo-build/src to sources/
4393
	mkdir -p openoffice.org-$(UPSTREAM_VERSION)/sources && \
4394
	cd openoffice.org-$(UPSTREAM_VERSION)/sources && \
1022.10.325 by Rail Aliev
Use the upstream tarballs when WITH_SPLIT=n
4395
		wget http://download.services.openoffice.org/files/stable/$(UPSTREAM_VERSION)/OOo_$(UPSTREAM_VERSION)_src_binfilter.tar.bz2 && \
4396
		wget http://download.services.openoffice.org/files/stable/$(UPSTREAM_VERSION)/OOo_$(UPSTREAM_VERSION)_src_core.tar.bz2 && \
4397
		wget http://download.services.openoffice.org/files/stable/$(UPSTREAM_VERSION)/OOo_$(UPSTREAM_VERSION)_src_extensions.tar.bz2 && \
4398
		wget http://download.services.openoffice.org/files/stable/$(UPSTREAM_VERSION)/OOo_$(UPSTREAM_VERSION)_src_l10n.tar.bz2 && \
4399
		wget http://download.services.openoffice.org/files/stable/$(UPSTREAM_VERSION)/OOo_$(UPSTREAM_VERSION)_src_system.tar.bz2 && \
4400
		tar xfvj OOo_$(UPSTREAM_VERSION)_src_core.tar.bz2 && \
1022.10.329 by Rail Aliev
Fix a silly copy/paste mistake
4401
		for i in `find $(TAG)/psprint_config/configuration/ppds ! -name "SGEN*" -name "*.PS"`; do \
4402
			rm $$i; \
1022.10.325 by Rail Aliev
Use the upstream tarballs when WITH_SPLIT=n
4403
		done && \
4404
		tar cfvj OOo_$(UPSTREAM_VERSION)_src_core.tar.bz2.dfsg $(TAG) && \
4405
		rm -rf $(TAG) && \
4406
		ln -sf OOo_$(UPSTREAM_VERSION)_src_core.tar.bz2.dfsg OOo_$(UPSTREAM_VERSION)_src_core.tar.bz2 && \
4407
		tar xfvj OOo_$(UPSTREAM_VERSION)_src_system.tar.bz2 && \
1022.24.51 by Rene Engelhard
fix/update get-orig-source to current state wrt hyphenation patterns
4408
		for i in da_DK ru_RU; do \
1022.10.325 by Rail Aliev
Use the upstream tarballs when WITH_SPLIT=n
4409
			rm $(TAG)/dictionaries/$$i/hyph_$${i}.dic; \
4410
		done && \
4411
		tar cfvj OOo_$(UPSTREAM_VERSION)_src_system.tar.bz2.dfsg $(TAG) && \
4412
		rm -rf $(TAG) && \
4413
		ln -sf OOo_$(UPSTREAM_VERSION)_src_system.tar.bz2.dfsg OOo_$(UPSTREAM_VERSION)_src_system.tar.bz2 && \
4414
		tar xfvj OOo_$(UPSTREAM_VERSION)_src_extensions.tar.bz2 && \
4415
			zip -d $(TAG)/jfreereport/download/liblayout.zip \
4416
				liblayout/resource/rfc1345.txt && \
4417
		tar cfvj OOo_$(UPSTREAM_VERSION)_src_extensions.tar.bz2.dfsg $(TAG) && \
4418
		rm -rf $(TAG) && \
4419
		ln -sf OOo_$(UPSTREAM_VERSION)_src_extensions.tar.bz2.dfsg OOo_$(UPSTREAM_VERSION)_src_extensions.tar.bz2 && \
4420
		cd $$TMPD && tar cfvz openoffice.org_$(UPSTREAM_VERSION).orig.tar.gz openoffice.org-$(UPSTREAM_VERSION) && \
4421
		rm -rf openoffice.org-$(UPSTREAM_VERSION) && \
4422
		mv  openoffice.org_$(UPSTREAM_VERSION).orig.tar.gz $(CURDIR)/.. && \
4423
		rmdir $$TMPD
4424
else
1022.1.182 by Chris Cheney
whitespace and spelling fixes
4425
	if test -n "$$TMP"; then \
4426
		TMPD=`mktemp -d -p $$TMP`; \
4427
	else \
4428
		TMPD=`mktemp -d`; \
4429
	fi && \
4430
	cd $$TMPD && \
1022.17.18 by Rene Engelhard
update get-orig-source target for new way of downloading the tarballs
4431
        mkdir -p openoffice.org-$(UPSTREAM_VERSION) && \
4432
        cd openoffice.org-$(UPSTREAM_VERSION) && \
1022.24.20 by Rene Engelhard
remove MIRROR hack again and use proper CGIT tarballs again. fix get-orig-source again.
4433
		cp -ra $(CURDIR)/$(OOO_BUILD_TREE) $(OOO_BUILD_TREE); \
4434
		cd $(OOO_BUILD_TREE) && \
4435
		./configure --with-tag=$(TAG) --with-distro=$(PATCHSET) \
4436
			--without-git --with-lang="$(BUILD_ISOS)" && \
4437
			./download || wait 60; ./download || wait 60; ./download && \
4438
			rm -f src/$(TAG)-l10n.tar.bz2 && \
4439
			./download || wait 60; ./download || wait 60; ./download; \
4440
			mkdir -p ../sources && mv src/$(TAG)*bz2 ../sources && \
4441
			mkdir -p ../ext-sources-$(OOO_BUILD_TREE) && \
4442
			for i in biblio.tar.bz2 extras-3.tar.bz2 ooo_oxygen_images-2009-06-17.tar.gz; do \
4443
				mv src/$$i ../ext-sources-$(OOO_BUILD_TREE); \
4444
			done && \
4445
		cd .. && \
4446
		tar cfvz $(CURDIR)/../openoffice.org_$(UPSTREAM_VERSION).orig-ext-sources-$(OOO_BUILD_TREE).tar.gz ext-sources-$(OOO_BUILD_TREE) && \
4447
		rm -rf $(OOO_BUILD_TREE) ext-sources-$(OOO_BUILD_TREE) && \
1022.24.14 by Rene Engelhard
update also ooo-build tarballs/CGIT part for sources/ and update to actually work with 3.0 (quilt) now
4448
		cd sources && \
1022.10.91 by Rene Engelhard
missed this
4449
		tar xfvj $(TAG)-libs-extern-sys.tar.bz2 && \
1022.1.182 by Chris Cheney
whitespace and spelling fixes
4450
		for i in da_DK en_GB nl_NL ru_RU; do \
1022.17.18 by Rene Engelhard
update get-orig-source target for new way of downloading the tarballs
4451
			rm ooo/$(MWS)_$(MILESTONE)/dictionaries/$$i/hyph_$${i}.dic; \
1106 by Rene Engelhard
add get-orig-source target
4452
		done && \
1022.17.18 by Rene Engelhard
update get-orig-source target for new way of downloading the tarballs
4453
		tar cfvj $(TAG)-libs-extern-sys.tar.bz2.dfsg ooo && \
1022.10.91 by Rene Engelhard
missed this
4454
		ln -sf $(TAG)-libs-extern-sys.tar.bz2.dfsg $(TAG)-libs-extern-sys.tar.bz2 && \
1022.17.18 by Rene Engelhard
update get-orig-source target for new way of downloading the tarballs
4455
		rm -rf ooo && \
1022.10.90 by Rene Engelhard
update get-orig-source for new tarball names
4456
		tar xfvj $(TAG)-libs-gui.tar.bz2 && \
1022.17.18 by Rene Engelhard
update get-orig-source target for new way of downloading the tarballs
4457
		for i in `find ooo/$(MWS)_$(MILESTONE)/psprint_config/configuration/ppds ! -name "SGEN*" -name "*.PS"`; do \
1022.6.18 by Rene Engelhard
update dfsg'ing and fix downloading in get-orig-source
4458
			rm $$i; \
4459
		done && \
1022.17.18 by Rene Engelhard
update get-orig-source target for new way of downloading the tarballs
4460
		tar cfvj $(TAG)-libs-gui.tar.bz2.dfsg ooo && \
1022.10.90 by Rene Engelhard
update get-orig-source for new tarball names
4461
		ln -sf $(TAG)-libs-gui.tar.bz2.dfsg $(TAG)-libs-gui.tar.bz2 && \
1022.17.18 by Rene Engelhard
update get-orig-source target for new way of downloading the tarballs
4462
		rm -rf ooo && \
1022.10.80 by Rene Engelhard
merge
4463
		tar xfvj $(TAG)-extensions.tar.bz2 && \
1022.17.18 by Rene Engelhard
update get-orig-source target for new way of downloading the tarballs
4464
			zip -d ooo/$(MWS)_$(MILESTONE)/jfreereport/download/liblayout.zip \
1022.10.80 by Rene Engelhard
merge
4465
				liblayout/resource/rfc1345.txt && \
1022.17.18 by Rene Engelhard
update get-orig-source target for new way of downloading the tarballs
4466
		tar cfvj $(TAG)-extensions.tar.bz2.dfsg ooo && \
1022.10.80 by Rene Engelhard
merge
4467
		ln -sf $(TAG)-extensions.tar.bz2.dfsg $(TAG)-extensions.tar.bz2 && \
1022.17.18 by Rene Engelhard
update get-orig-source target for new way of downloading the tarballs
4468
		rm -rf ooo && \
1106 by Rene Engelhard
add get-orig-source target
4469
		cd $$TMPD && tar cfvz openoffice.org_$(UPSTREAM_VERSION).orig.tar.gz openoffice.org-$(UPSTREAM_VERSION) && \
4470
		rm -rf openoffice.org-$(UPSTREAM_VERSION) && \
1022.1.244 by Rene Engelhard
reenble Mono packages, remove $TMPD in get-orig-source
4471
		mv  openoffice.org_$(UPSTREAM_VERSION).orig.tar.gz $(CURDIR)/.. && \
1022.1.298 by Rene Engelhard
hrmpf
4472
		rmdir $$TMPD
1022.10.325 by Rail Aliev
Use the upstream tarballs when WITH_SPLIT=n
4473
endif
1022.17.222 by Rene Engelhard
update get-orig-source to create .orig-ooo-build-X.Y.z.tar.gz, too and remove obsolete vcsupdate target:q
4474
ifeq "$(DEBSRC_VERSION)" "3.0"
4475
	# get ooo-build
4476
	if test -n "$$TMP"; then \
4477
		TMPD=`mktemp -d -p $$TMP`; \
4478
	else \
4479
		TMPD=`mktemp -d`; \
4480
	fi && \
1022.24.20 by Rene Engelhard
remove MIRROR hack again and use proper CGIT tarballs again. fix get-orig-source again.
4481
	if [ ! -d $(OOO_BUILD_TREE) ]; then ./debian/rules get-ooo-build; fi
4482
	tar cfvz ../openoffice.org_$(UPSTREAM_VERSION).orig-$(OOO_BUILD_TREE).tar.gz $(OOO_BUILD_TREE)
1022.17.222 by Rene Engelhard
update get-orig-source to create .orig-ooo-build-X.Y.z.tar.gz, too and remove obsolete vcsupdate target:q
4483
endif
1106 by Rene Engelhard
add get-orig-source target
4484
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4485
# Download the latest sources needed for ooo-build. Note that is
4486
# might download more than actually needed here....
1022.17.184 by Rene Engelhard
move to "3.0 (quilt)" source package
4487
download: $(OOO_BUILD_TREE)/config.status
4488
	$(OOO_BUILD_TREE)/download	
33 by Chris Halls
Imported openoffice.org_1.1.4-4
4489
708 by Rene Engelhard
split binary-* targets, remove binary-common, remove makebinariestar, we now have a -dbg, register UDK documentation with doc-base, fix some links in the UDK Java docs
4490
.PHONY: control
46 by Martin Kretzschmar
Imported openoffice.org2_1.9.76-0ubuntu1
4491
.PHONY: clean-debdir clean-instsetoo clean-objectdirs clean default configure
4492
.PHONY: build build-indep build-arch install-arch install-indep
18 by Chris Halls
Imported openoffice_org-1_0_2-2
4493
.PHONY: $(stampdir_targets)
1 by Chris Halls
Import from old cvs.debian.org
4494
4495
# vim:set noet ai sts=8 sw=8 tw=0: