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+" |
| 11 | LIC_FILES_CHKSUM = "file://docs/LICENSE.TXT;md5=4af6221506f202774ef74f64932878a1 \ |
| 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 | " |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 18 | SRC_URI[md5sum] = "bd42e75127f8431923679480efb5ba8f" |
| 19 | SRC_URI[sha256sum] = "16dbfa488a21fe827dc27eaf708f42f7aa3bb997d745d31a19781628c36ba26f" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 20 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 21 | UPSTREAM_CHECK_REGEX = "freetype-(?P<pver>\d+(\.\d+)+)" |
| 22 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 23 | inherit autotools pkgconfig multilib_header |
| 24 | |
| 25 | # Adapt autotools to work with the minimal autoconf usage in freetype |
| 26 | AUTOTOOLS_SCRIPT_PATH = "${S}/builds/unix" |
| 27 | CONFIGURE_SCRIPT = "${S}/configure" |
| 28 | EXTRA_AUTORECONF += "--exclude=autoheader --exclude=automake" |
| 29 | |
| 30 | PACKAGECONFIG ??= "zlib" |
| 31 | |
| 32 | PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2" |
| 33 | # harfbuzz results in a circular dependency so enabling is non-trivial |
| 34 | PACKAGECONFIG[harfbuzz] = "--with-harfbuzz,--without-harfbuzz,harfbuzz" |
| 35 | PACKAGECONFIG[pixmap] = "--with-png,--without-png,libpng" |
| 36 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" |
| 37 | PACKAGECONFIG[freetypeconfig] = "--enable-freetype-config=yes,--enable-freetype-config=no," |
| 38 | |
| 39 | EXTRA_OECONF = "CC_BUILD='${BUILD_CC}'" |
| 40 | |
| 41 | TARGET_CPPFLAGS += "-D_FILE_OFFSET_BITS=64" |
| 42 | |
| 43 | do_install_append() { |
| 44 | oe_multilib_header freetype2/freetype/config/ftconfig.h |
| 45 | } |
| 46 | |
| 47 | BBCLASSEXTEND = "native nativesdk" |