[mapnik] 01/01: Add patch to use pkg-config when freetype-config is not available. (closes: #892062)
Bas Couwenberg
sebastic at debian.org
Sat Mar 10 08:45:21 UTC 2018
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch experimental
in repository mapnik.
commit 8588c516be133d1f40176b843bd2da98df75c363
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Mar 9 10:25:12 2018 +0100
Add patch to use pkg-config when freetype-config is not available. (closes: #892062)
---
debian/changelog | 7 ++++++
debian/patches/freetype-pkgconfig.patch | 41 +++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 49 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index f0ab439..cc6a018 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+mapnik (3.0.19+ds-1~exp2) UNRELEASED; urgency=medium
+
+ * Add patch to use pkg-config when freetype-config is not available.
+ (closes: #892062)
+
+ -- Bas Couwenberg <sebastic at debian.org> Fri, 09 Mar 2018 10:24:28 +0100
+
mapnik (3.0.19+ds-1~exp1) experimental; urgency=medium
* New upstream release.
diff --git a/debian/patches/freetype-pkgconfig.patch b/debian/patches/freetype-pkgconfig.patch
new file mode 100644
index 0000000..9fdc646
--- /dev/null
+++ b/debian/patches/freetype-pkgconfig.patch
@@ -0,0 +1,41 @@
+Description: Use pkg-config when freetype-config is not available.
+Author: Bas Couwenberg <sebastic at debian.org>
+Bug: https://github.com/mapnik/mapnik/issues/3870
+Bug-Debian: https://bugs.debian.org/892451
+
+--- a/SConstruct
++++ b/SConstruct
+@@ -1393,6 +1393,8 @@ if not preconfigured:
+ ['harfbuzz', 'harfbuzz/hb.h',True,'C++']
+ ]
+
++ CHECK_PKG_CONFIG = conf.CheckPKGConfig('0.15.0')
++
+ if env.get('FREETYPE_LIBS') or env.get('FREETYPE_INCLUDES'):
+ REQUIRED_LIBSHEADERS.insert(0,['freetype','ft2build.h',True,'C'])
+ if env.get('FREETYPE_INCLUDES'):
+@@ -1413,6 +1415,15 @@ if not preconfigured:
+ env['EXTRA_FREETYPE_LIBS'].append('bz2')
+ except OSError as e:
+ pass
++ elif env['RUNTIME_LINK'] == 'static':
++ temp_env = env.Clone()
++ temp_env['LIBS'] = []
++ try:
++ temp_env.ParseConfig('pkg-config freetype2 --libs')
++ if 'bz2' in temp_env['LIBS']:
++ env['EXTRA_FREETYPE_LIBS'].append('bz2')
++ except OSError as e:
++ pass
+
+ # libxml2 should be optional but is currently not
+ # https://github.com/mapnik/mapnik/issues/913
+@@ -1635,8 +1646,6 @@ if not preconfigured:
+ env['MISSING_DEPS'].append('ICU_DATA')
+
+
+- CHECK_PKG_CONFIG = conf.CheckPKGConfig('0.15.0')
+-
+ if len(env['REQUESTED_PLUGINS']):
+ if env['HOST']:
+ for plugin in env['REQUESTED_PLUGINS']:
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..72c5420
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+freetype-pkgconfig.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapnik.git
More information about the Pkg-grass-devel
mailing list