summaryrefslogtreecommitdiff
path: root/freetype
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-10-23 23:32:43 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-10-24 12:40:39 +0200
commit9a3fe78320fdb7e2f1cb1ac9dbf6f9a5201af9b6 (patch)
tree0134baae6e37f574b8a78cdb49e07bacc4ce26c5 /freetype
parent526c9bdd0408cc0b983c11b35a0aaefda93fad13 (diff)
freetype: convert to gbuild
Change-Id: I67f550385fa1f4073873f1e503eb153665e718ef
Diffstat (limited to 'freetype')
-rw-r--r--freetype/ExternalPackage_freetype.mk79
-rw-r--r--freetype/ExternalProject_freetype.mk30
-rw-r--r--freetype/Makefile7
-rw-r--r--freetype/Module_freetype.mk22
-rw-r--r--freetype/UnpackedTarball_freetype.mk20
-rw-r--r--freetype/makefile.mk59
-rw-r--r--freetype/prj/d.lst8
-rw-r--r--freetype/prj/dmake0
8 files changed, 158 insertions, 67 deletions
diff --git a/freetype/ExternalPackage_freetype.mk b/freetype/ExternalPackage_freetype.mk
new file mode 100644
index 000000000000..0c9016508ef5
--- /dev/null
+++ b/freetype/ExternalPackage_freetype.mk
@@ -0,0 +1,79 @@
+# -*- 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_ExternalPackage_ExternalPackage,freetype,freetype))
+
+$(eval $(call gb_ExternalPackage_use_external_project,freetype,freetype))
+
+$(eval $(call gb_ExternalPackage_add_unpacked_files,freetype,inc/external,\
+ include/ft2build.h \
+))
+
+$(eval $(call gb_ExternalPackage_add_unpacked_files,freetype,inc/external/freetype,\
+ include/freetype/freetype.h \
+ include/freetype/ftadvanc.h \
+ include/freetype/ftbbox.h \
+ include/freetype/ftbdf.h \
+ include/freetype/ftbitmap.h \
+ include/freetype/ftbzip2.h \
+ include/freetype/ftcache.h \
+ include/freetype/ftchapters.h \
+ include/freetype/ftcid.h \
+ include/freetype/fterrdef.h \
+ include/freetype/fterrors.h \
+ include/freetype/ftgasp.h \
+ include/freetype/ftglyph.h \
+ include/freetype/ftgxval.h \
+ include/freetype/ftgzip.h \
+ include/freetype/ftimage.h \
+ include/freetype/ftincrem.h \
+ include/freetype/ftlcdfil.h \
+ include/freetype/ftlist.h \
+ include/freetype/ftlzw.h \
+ include/freetype/ftmac.h \
+ include/freetype/ftmm.h \
+ include/freetype/ftmodapi.h \
+ include/freetype/ftmoderr.h \
+ include/freetype/ftotval.h \
+ include/freetype/ftoutln.h \
+ include/freetype/ftpfr.h \
+ include/freetype/ftrender.h \
+ include/freetype/ftsizes.h \
+ include/freetype/ftsnames.h \
+ include/freetype/ftstroke.h \
+ include/freetype/ftsynth.h \
+ include/freetype/ftsystem.h \
+ include/freetype/fttrigon.h \
+ include/freetype/fttypes.h \
+ include/freetype/ftwinfnt.h \
+ include/freetype/ftxf86.h \
+ include/freetype/t1tables.h \
+ include/freetype/ttnameid.h \
+ include/freetype/tttables.h \
+ include/freetype/tttags.h \
+ include/freetype/ttunpat.h \
+))
+
+$(eval $(call gb_ExternalPackage_add_unpacked_files,freetype,inc/external/freetype/config,\
+ include/freetype/config/ftconfig.h \
+ include/freetype/config/ftheader.h \
+ include/freetype/config/ftmodule.h \
+ include/freetype/config/ftoption.h \
+ include/freetype/config/ftstdlib.h \
+))
+
+$(eval $(call gb_ExternalPackage_add_files,freetype,lib,\
+ objs/.libs/libfreetype.a \
+))
+
+$(eval $(call gb_ExternalPackage_add_files,freetype,bin,\
+ builds/unix/freetype-config \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/freetype/ExternalProject_freetype.mk b/freetype/ExternalProject_freetype.mk
new file mode 100644
index 000000000000..f689e2e42d97
--- /dev/null
+++ b/freetype/ExternalProject_freetype.mk
@@ -0,0 +1,30 @@
+# -*- 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,freetype))
+
+$(eval $(call gb_ExternalProject_use_unpacked,freetype,freetype))
+
+$(eval $(call gb_ExternalProject_register_targets,freetype,\
+ build \
+))
+
+$(call gb_ExternalProject_get_state_target,freetype,build) :
+ cd $(EXTERNAL_WORKDIR) \
+ && ./configure \
+ --disable-shared \
+ --without-zlib \
+ --without-bzip2 \
+ --prefix=$(OUTDIR) --includedir=$(OUTDIR)/inc/external \
+ --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) \
+ && chmod +x builds/unix/freetype-config \
+ && $(GNUMAKE) \
+ && touch $@
+
+# vim: set noet sw=4 ts=4:
diff --git a/freetype/Makefile b/freetype/Makefile
new file mode 100644
index 000000000000..ccb1c85a04da
--- /dev/null
+++ b/freetype/Makefile
@@ -0,0 +1,7 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+
+module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
+
+include $(module_directory)/../solenv/gbuild/partial_build.mk
+
+# vim: set noet sw=4 ts=4:
diff --git a/freetype/Module_freetype.mk b/freetype/Module_freetype.mk
new file mode 100644
index 000000000000..e0965a0deb2b
--- /dev/null
+++ b/freetype/Module_freetype.mk
@@ -0,0 +1,22 @@
+# -*- 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_Module_Module,freetype))
+
+ifeq ($(OS),ANDROID)
+
+$(eval $(call gb_Module_add_targets,freetype,\
+ ExternalPackage_freetype \
+ ExternalProject_freetype \
+ UnpackedTarball_freetype \
+))
+
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/freetype/UnpackedTarball_freetype.mk b/freetype/UnpackedTarball_freetype.mk
new file mode 100644
index 000000000000..a1060adbf335
--- /dev/null
+++ b/freetype/UnpackedTarball_freetype.mk
@@ -0,0 +1,20 @@
+# -*- 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_UnpackedTarball_UnpackedTarball,freetype))
+
+$(eval $(call gb_UnpackedTarball_set_tarball,freetype,$(FREETYPE_TARBALL)))
+
+$(eval $(call gb_UnpackedTarball_set_patchlevel,freetype,3))
+
+$(eval $(call gb_UnpackedTarball_add_patches,freetype,\
+ freetype/freetype-2.4.8.patch \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/freetype/makefile.mk b/freetype/makefile.mk
deleted file mode 100644
index 52f73663e952..000000000000
--- a/freetype/makefile.mk
+++ /dev/null
@@ -1,59 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2010 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ=.
-
-PRJNAME=freetype
-TARGET=freetype
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-TARFILE_NAME=freetype-2.4.8
-TARFILE_MD5=dbf2caca1d3afd410a29217a9809d397
-
-PATCH_FILES=$(TARFILE_NAME).patch
-
-CONFIGURE_ACTION=./configure
-
-CONFIGURE_FLAGS=\
- --disable-shared \
- --without-zlib \
- --without-bzip2 \
- --prefix=$(SOLARVER)/$(INPATH) --includedir=$(SOLARVER)/$(INPATH)/inc/external \
- --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
-
-BUILD_ACTION=chmod +x builds/unix/freetype-config && $(GNUMAKE)
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : set_ext.mk
-.INCLUDE : target.mk
-.INCLUDE : tg_ext.mk
diff --git a/freetype/prj/d.lst b/freetype/prj/d.lst
index ac34ac49efb3..e69de29bb2d1 100644
--- a/freetype/prj/d.lst
+++ b/freetype/prj/d.lst
@@ -1,8 +0,0 @@
-..\%__SRC%\misc\build\freetype*\objs\.libs\*.a %_DEST%\lib
-
-..\%__SRC%\misc\build\freetype*\builds\unix\freetype-config %_DEST%\bin
-
-mkdir: %_DEST%\inc\external\freetype\config
-..\%__SRC%\misc\build\freetype*\include\ft2build.h %_DEST%\inc\external
-..\%__SRC%\misc\build\freetype*\include\freetype\*.h %_DEST%\inc\external\freetype
-..\%__SRC%\misc\build\freetype*\include\freetype\config\*.h %_DEST%\inc\external\freetype\config
diff --git a/freetype/prj/dmake b/freetype/prj/dmake
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/freetype/prj/dmake
+++ /dev/null