Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Freetype font rendering library" |
| 2 | DESCRIPTION = "FreeType is a software font engine that is designed to be small, efficient, \ |
| 3 | highly customizable, and portable while capable of producing high-quality output (glyph \ |
| 4 | images). It can be used in graphics libraries, display servers, font conversion tools, text \ |
| 5 | image generation tools, and many other products as well." |
| 6 | HOMEPAGE = "http://www.freetype.org/" |
| 7 | BUGTRACKER = "https://savannah.nongnu.org/bugs/?group=freetype" |
| 8 | SECTION = "libs" |
| 9 | |
| 10 | LICENSE = "FreeType | GPLv2+" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 11 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=a5927784d823d443c6cae55701d01553 \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | file://docs/FTL.TXT;md5=9f37b4e6afa3fef9dba8932b16bd3f97 \ |
| 13 | file://docs/GPLv2.TXT;md5=8ef380476f642c20ebf40fecb0add2ec" |
| 14 | |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 15 | SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/${BPN}/${BP}.tar.xz \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 16 | file://use-right-libtool.patch \ |
| 17 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 18 | SRC_URI[sha256sum] = "8bee39bd3968c4804b70614a0a3ad597299ad0e824bc8aad5ce8aaf48067bde7" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 19 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 20 | UPSTREAM_CHECK_REGEX = "freetype-(?P<pver>\d+(\.\d+)+)" |
| 21 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 22 | inherit autotools pkgconfig multilib_header |
| 23 | |
| 24 | # Adapt autotools to work with the minimal autoconf usage in freetype |
| 25 | AUTOTOOLS_SCRIPT_PATH = "${S}/builds/unix" |
| 26 | CONFIGURE_SCRIPT = "${S}/configure" |
| 27 | EXTRA_AUTORECONF += "--exclude=autoheader --exclude=automake" |
| 28 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 29 | PACKAGECONFIG ??= "zlib pixmap" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 30 | |
| 31 | PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2" |
| 32 | # harfbuzz results in a circular dependency so enabling is non-trivial |
| 33 | PACKAGECONFIG[harfbuzz] = "--with-harfbuzz,--without-harfbuzz,harfbuzz" |
| 34 | PACKAGECONFIG[pixmap] = "--with-png,--without-png,libpng" |
| 35 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" |
| 36 | PACKAGECONFIG[freetypeconfig] = "--enable-freetype-config=yes,--enable-freetype-config=no," |
| 37 | |
| 38 | EXTRA_OECONF = "CC_BUILD='${BUILD_CC}'" |
| 39 | |
| 40 | TARGET_CPPFLAGS += "-D_FILE_OFFSET_BITS=64" |
| 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | do_install:append() { |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 43 | oe_multilib_header freetype2/freetype/config/ftconfig.h |
| 44 | } |
| 45 | |
| 46 | BBCLASSEXTEND = "native nativesdk" |