summaryrefslogtreecommitdiff
path: root/fontconfig/ExternalProject_fontconfig.mk
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-10-23 21:42:24 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-10-24 12:40:39 +0200
commit526c9bdd0408cc0b983c11b35a0aaefda93fad13 (patch)
tree2c5a274a0454129ddff1163f1130dbc6d5595bde /fontconfig/ExternalProject_fontconfig.mk
parent4a326ad728b7f6065e5dfb4e31aca3da14e31e34 (diff)
fontconfig: convert to gbuild
Change-Id: Ia0ba9294e36c30147ed52826eac4b0059cfed200
Diffstat (limited to 'fontconfig/ExternalProject_fontconfig.mk')
-rw-r--r--fontconfig/ExternalProject_fontconfig.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/fontconfig/ExternalProject_fontconfig.mk b/fontconfig/ExternalProject_fontconfig.mk
new file mode 100644
index 000000000000..b7d2eb5843f9
--- /dev/null
+++ b/fontconfig/ExternalProject_fontconfig.mk
@@ -0,0 +1,34 @@
+# -*- 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,fontconfig))
+
+$(eval $(call gb_ExternalProject_use_unpacked,fontconfig,fontconfig))
+
+$(eval $(call gb_ExternalProject_use_packages,fontconfig,\
+ freetype \
+))
+
+$(eval $(call gb_ExternalProject_register_targets,fontconfig,\
+ build \
+))
+
+$(call gb_ExternalProject_get_state_target,fontconfig,build) :
+ cd $(EXTERNAL_WORKDIR) \
+ && $(if $(debug),CFLAGS=-g) ./configure \
+ --disable-shared \
+ --with-arch=arm \
+ --with-expat-includes=$(OUTDIR)/inc/external \
+ --with-expat-lib=$(OUTDIR)/lib \
+ --with-freetype-config=$(OUTDIR)/bin/freetype-config \
+ --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) \
+ && $(GNUMAKE) \
+ && touch $@
+
+# vim: set noet sw=4 ts=4: