771e120e8e
Release notes: https://sourceforge.net/projects/freetype/files/freetype2/2.13.0/ Updated license hash due to upstream commits: "fix spelling err in LICENSE.txt"c0b4f6a862
[autofit] Don't depend on 'hb-ft'.ebe7e9128c
Since we build freetype without harfbuzz support anyway, the affected files are not compiled (the code is entirely guarded), so no changes to the license information of this package are necessary. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
72 lines
2.0 KiB
Makefile
72 lines
2.0 KiB
Makefile
################################################################################
|
|
#
|
|
# freetype
|
|
#
|
|
################################################################################
|
|
|
|
FREETYPE_VERSION = 2.13.0
|
|
FREETYPE_SOURCE = freetype-$(FREETYPE_VERSION).tar.xz
|
|
FREETYPE_SITE = http://download.savannah.gnu.org/releases/freetype
|
|
FREETYPE_INSTALL_STAGING = YES
|
|
FREETYPE_MAKE_OPTS = CCexe="$(HOSTCC)"
|
|
FREETYPE_LICENSE = Dual FTL/GPL-2.0+
|
|
FREETYPE_LICENSE_FILES = LICENSE.TXT docs/FTL.TXT docs/GPLv2.TXT
|
|
FREETYPE_CPE_ID_VENDOR = freetype
|
|
FREETYPE_DEPENDENCIES = host-pkgconf
|
|
FREETYPE_CONFIG_SCRIPTS = freetype-config
|
|
|
|
# harfbuzz already depends on freetype so disable harfbuzz in freetype to avoid
|
|
# a circular dependency
|
|
FREETYPE_CONF_OPTS = --without-harfbuzz
|
|
|
|
HOST_FREETYPE_DEPENDENCIES = host-pkgconf
|
|
HOST_FREETYPE_CONF_OPTS = \
|
|
--without-brotli \
|
|
--without-bzip2 \
|
|
--without-harfbuzz \
|
|
--without-png \
|
|
--without-zlib
|
|
|
|
# since 2.9.1 needed for freetype-config install
|
|
FREETYPE_CONF_OPTS += --enable-freetype-config
|
|
HOST_FREETYPE_CONF_OPTS += --enable-freetype-config
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
FREETYPE_DEPENDENCIES += zlib
|
|
FREETYPE_CONF_OPTS += --with-zlib
|
|
else
|
|
FREETYPE_CONF_OPTS += --without-zlib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
|
FREETYPE_DEPENDENCIES += brotli
|
|
FREETYPE_CONF_OPTS += --with-brotli
|
|
else
|
|
FREETYPE_CONF_OPTS += --without-brotli
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
FREETYPE_DEPENDENCIES += bzip2
|
|
FREETYPE_CONF_OPTS += --with-bzip2
|
|
else
|
|
FREETYPE_CONF_OPTS += --without-bzip2
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
FREETYPE_DEPENDENCIES += libpng
|
|
FREETYPE_CONF_OPTS += --with-png
|
|
else
|
|
FREETYPE_CONF_OPTS += --without-png
|
|
endif
|
|
|
|
# Extra fixing since includedir and libdir are expanded from configure values
|
|
define FREETYPE_FIX_CONFIG_FILE
|
|
$(SED) 's:^includedir=.*:includedir="$${prefix}/include":' \
|
|
-e 's:^libdir=.*:libdir="$${exec_prefix}/lib":' \
|
|
$(STAGING_DIR)/usr/bin/freetype-config
|
|
endef
|
|
FREETYPE_POST_INSTALL_STAGING_HOOKS += FREETYPE_FIX_CONFIG_FILE
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|