summaryrefslogtreecommitdiff
path: root/external/firebird/ExternalProject_firebird.mk
diff options
context:
space:
mode:
Diffstat (limited to 'external/firebird/ExternalProject_firebird.mk')
-rw-r--r--external/firebird/ExternalProject_firebird.mk57
1 files changed, 57 insertions, 0 deletions
diff --git a/external/firebird/ExternalProject_firebird.mk b/external/firebird/ExternalProject_firebird.mk
new file mode 100644
index 000000000000..bf6b45368ba7
--- /dev/null
+++ b/external/firebird/ExternalProject_firebird.mk
@@ -0,0 +1,57 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_ExternalProject_ExternalProject,firebird))
+
+$(eval $(call gb_ExternalProject_use_autoconf,firebird,build))
+
+$(eval $(call gb_ExternalProject_use_externals,firebird,\
+ boost_headers \
+ icu \
+ libatomic_ops \
+))
+
+$(eval $(call gb_ExternalProject_register_targets,firebird,\
+ build \
+))
+
+# note: this can intentionally only build against internal atomic_op
+# note: this can intentionally only build against internal tommath
+
+# do not set LDFLAGS - it is mysteriously not used by firebird on MacOSX
+$(call gb_ExternalProject_get_state_target,firebird,build):
+ $(call gb_ExternalProject_run,build,\
+ unset MAKEFLAGS \
+ && export PKG_CONFIG="" \
+ && export CXXFLAGS=" \
+ $(if $(filter NO,$(SYSTEM_BOOST)), \
+ -I$(call gb_UnpackedTarball_get_dir,boost),$(BOOST_CPPFLAGS) \
+ -L$(call gb_UnpackedTarball_get_dir,boost)/source/lib) \
+ $(if $(filter NO,$(SYSTEM_ICU)), \
+ -I$(call gb_UnpackedTarball_get_dir,icu)/source \
+ -I$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
+ -I$(call gb_UnpackedTarball_get_dir,icu)/source/common \
+ ,$(ICU_CPPFLAGS)) \
+ -L$(OUTDIR)/lib \
+ " \
+ && ./configure \
+ --without-editline \
+ --disable-superserver \
+ --with-system-icu --without-fbsample --without-fbsample-db \
+ $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
+ $(if $(filter IOS ANDROID,$(OS)),--disable-shared,--disable-static) \
+ && $(if $(filter WNT,$(OS)),\
+ PATH="$(shell cygpath -u $(OUTDIR)/bin):$$PATH",\
+ $(gb_Helper_set_ld_path)) \
+ $(MAKE) firebird_embedded \
+ $(if $(filter MACOSX,$(OS)),&& $(PERL) \
+ $(SOLARENV)/bin/macosx-change-install-names.pl shl OOO \
+ $(gb_Package_SOURCEDIR_firebird)/gen/firebird/lib/libfbembed.dylib.2.5.2) \
+ )
+# vim: set noet sw=4 ts=4: