Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [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 | |
| 15 | SRC_URI = "${SOURCEFORGE_MIRROR}/freetype/freetype-${PV}.tar.bz2 \ |
| 16 | file://use-right-libtool.patch" |
| 17 | |
| 18 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/freetype/files/freetype2/" |
| 19 | UPSTREAM_CHECK_REGEX = "freetype-(?P<pver>\d+(\.\d+)+)" |
| 20 | |
| 21 | SRC_URI[md5sum] = "513c403c110016fdc7e537216a642b1d" |
| 22 | SRC_URI[sha256sum] = "e6ffba3c8cef93f557d1f767d7bc3dee860ac7a3aaff588a521e081bc36f4c8a" |
| 23 | |
| 24 | inherit autotools pkgconfig binconfig-disabled multilib_header |
| 25 | |
| 26 | # Adapt autotools to work with the minimal autoconf usage in freetype |
| 27 | AUTOTOOLS_SCRIPT_PATH = "${S}/builds/unix" |
| 28 | CONFIGURE_SCRIPT = "${S}/configure" |
| 29 | EXTRA_AUTORECONF += "--exclude=autoheader --exclude=automake" |
| 30 | |
| 31 | PACKAGECONFIG ??= "zlib" |
| 32 | |
| 33 | PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2" |
| 34 | # harfbuzz results in a circular dependency so enabling is non-trivial |
| 35 | PACKAGECONFIG[harfbuzz] = "--with-harfbuzz,--without-harfbuzz,harfbuzz" |
| 36 | PACKAGECONFIG[pixmap] = "--with-png,--without-png,libpng" |
| 37 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" |
| 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 | BINCONFIG = "${bindir}/freetype-config" |
| 48 | |
| 49 | BBCLASSEXTEND = "native nativesdk" |