1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
14 # Major Contributor(s):
15 # Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
18 # All Rights Reserved.
20 # For minor contributions see the git repository.
22 # Alternatively, the contents of this file may be used under the terms of
23 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 # instead of those above.
28 $(eval
$(call gb_InstallModule_InstallModule
,scp2
/ooo
))
30 $(eval
$(call gb_InstallModule_use_packages
,scp2
/ooo
,\
35 $(eval
$(call gb_InstallModule_define_if_set
,scp2
/ooo
,\
47 ENABLE_ONLINE_UPDATE \
68 SYSTEM_LIBEXTTEXTCAT \
88 $(eval
$(call gb_InstallModule_define_value_if_set
,scp2
/ooo
,\
93 $(eval
$(call gb_InstallModule_define_mingw_dll_if_set
,scp2
/ooo
,\
94 MINGW_BOOST_DATE_TIME_DLL \
100 MINGW_FONTCONFIG_DLL \
104 MINGW_GPG_ERROR_DLL \
105 MINGW_GRAPHITE2_DLL \
140 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
141 $(if
$(filter MACOSX
,$(OS
)),\
142 -DENABLE_CAIROCANVAS \
144 $(if
$(filter INTERNAL
,$(ENABLE_LIBRSVG
)),\
147 $(if
$(filter gcj
,$(JDK
)),\
150 $(if
$(filter TRUE
,$(ENABLE_GSTREAMER
)),\
153 $(if
$(WINDOWS_SDK_HOME
),\
156 $(if
$(filter YES
,$(SYSTEM_HSQLDB
)),\
157 -DHSQLDB_JAR
=\""$(call gb_Helper_make_path,$(HSQLDB_JAR))"\" \
159 $(if
$(filter YES
,$(SYSTEM_SAXON
)),\
160 -DSAXON_JAR
=\""$(call gb_Helper_make_path,$(SAXON_JAR))"\" \
162 $(if
$(filter-out YES
,$(WITH_MOZILLA
)),\
165 $(if
$(filter-out YES
,$(WITH_MYSPELL_DICTS
)),\
166 -DWITHOUT_MYSPELL_DICTS \
170 ifeq ($(DISABLE_PYTHON
),TRUE
)
171 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
174 else ifeq ($(SYSTEM_PYTHON
),YES
)
175 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
180 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
181 -DICU_MAJOR
=$(ICU_MAJOR
) \
182 -DICU_MINOR
=$(ICU_MINOR
) \
183 -DICU_MICRO
=$(ICU_MICRO
) \
186 ifneq ($(SYSTEM_LIBXSLT
),YES
)
187 include $(OUTDIR
)/inc
/libxsltversion.mk
189 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
190 -DLIBXSLT_MAJOR
=$(LIBXSLT_MAJOR
) \
194 ifneq ($(SYSTEM_REDLAND
),YES
)
195 include $(OUTDIR
)/inc
/redlandversion.mk
197 $(eval
$(call gb_InstallModule_add_defs
,scp2
/ooo
,\
198 -DRAPTOR_MAJOR
=$(RAPTOR_MAJOR
) \
199 -DRASQAL_MAJOR
=$(RASQAL_MAJOR
) \
200 -DREDLAND_MAJOR
=$(REDLAND_MAJOR
) \
204 $(eval
$(call gb_InstallModule_add_templates
,scp2
/ooo
,\
205 scp2
/source
/templates
/module_helppack \
206 scp2
/source
/templates
/module_helppack_root \
207 scp2
/source
/templates
/module_langpack \
208 scp2
/source
/templates
/module_langpack_root \
211 $(eval
$(call gb_InstallModule_add_scpfiles
,scp2
/ooo
,\
212 scp2
/source
/ooo
/common_brand \
213 scp2
/source
/ooo
/common_brand_readme \
214 scp2
/source
/ooo
/directory_ooo_macosx \
215 scp2
/source
/ooo
/file_extra_ooo \
216 scp2
/source
/ooo
/file_font_ooo \
217 scp2
/source
/ooo
/file_library_ooo \
218 scp2
/source
/ooo
/file_ooo \
219 scp2
/source
/ooo
/file_resource_ooo \
220 scp2
/source
/ooo
/installation_ooo \
221 scp2
/source
/ooo
/module_help_template \
222 scp2
/source
/ooo
/module_hidden_ooo \
223 scp2
/source
/ooo
/module_lang_template \
224 scp2
/source
/ooo
/ooo_brand \
225 scp2
/source
/ooo
/profile_ooo \
226 scp2
/source
/ooo
/profileitem_ooo \
227 scp2
/source
/ooo
/scpaction_ooo \
228 scp2
/source
/ooo
/shortcut_ooo \
229 scp2
/source
/ooo
/ure_into_ooo \
230 $(if
$(filter WNTGCC
,$(GUI
)$(COM
)),\
231 scp2
/source
/ooo
/mingw_dlls \
235 $(eval
$(call gb_InstallModule_add_localized_scpfiles
,scp2
/ooo
,\
236 scp2
/source
/ooo
/directory_ooo \
237 scp2
/source
/ooo
/module_helppack \
238 scp2
/source
/ooo
/module_langpack \
239 scp2
/source
/ooo
/module_ooo \
240 scp2
/source
/ooo
/module_systemint \
243 # vim: set shiftwidth=4 tabstop=4 noexpandtab: