blob: 40705444d14c488b0de9a6db4ff05dd05cc5a6c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'harfbuzz'
version = '1.7.5'
stype = SourceType.TARBALL
url = 'https://www.freedesktop.org/software/%(name)s/release/%(name)s-%(version)s.tar.bz2'
licenses = [License.LGPLv2Plus]
deps = ['fontconfig', 'cairo', 'glib']
configure_options = "--enable-static --with-icu=no"
autoreconf = True
files_bins = ['hb-ot-shape-closure', 'hb-view', 'hb-shape']
files_libs = ['libharfbuzz']
files_devel = ['include/harfbuzz/*.h', 'lib/pkgconfig/harfbuzz.pc']
def prepare(self):
if self.config.target_platform == Platform.ANDROID:
v = DistroVersion.get_android_api_version(self.config.target_distro_version)
if self.config.target_arch in [Architecture.ARM, Architecture.ARMv7, Architecture.X86] and v < 21:
# FIXME: HACK to make projects using mmap compile with NDK 16
# we fail to compile with -D_FILE_OFFSET_BITS=64
# because we don't use clang and we use a platform < 21 (Lollipop)
# See $NDK_ROOT/sysroot/usr/include/sys/mman.h as one example
self.set_env('ac_cv_func_mmap', 'no')
|