2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-04-26 08:26:14 +02:00
|
|
|
#
|
|
|
|
# freetype
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-10-21 14:19:59 +02:00
|
|
|
|
2022-05-03 07:15:36 +02:00
|
|
|
FREETYPE_VERSION = 2.12.1
|
2019-07-07 13:44:14 +02:00
|
|
|
FREETYPE_SOURCE = freetype-$(FREETYPE_VERSION).tar.xz
|
2016-07-13 14:57:43 +02:00
|
|
|
FREETYPE_SITE = http://download.savannah.gnu.org/releases/freetype
|
2008-10-09 14:50:56 +02:00
|
|
|
FREETYPE_INSTALL_STAGING = YES
|
2014-09-27 21:32:38 +02:00
|
|
|
FREETYPE_MAKE_OPTS = CCexe="$(HOSTCC)"
|
2017-03-30 15:43:32 +02:00
|
|
|
FREETYPE_LICENSE = Dual FTL/GPL-2.0+
|
2022-01-08 10:32:06 +01:00
|
|
|
FREETYPE_LICENSE_FILES = LICENSE.TXT docs/FTL.TXT docs/GPLv2.TXT
|
2021-02-06 17:51:15 +01:00
|
|
|
FREETYPE_CPE_ID_VENDOR = freetype
|
2013-10-27 00:44:54 +02:00
|
|
|
FREETYPE_DEPENDENCIES = host-pkgconf
|
2013-02-07 13:35:06 +01:00
|
|
|
FREETYPE_CONFIG_SCRIPTS = freetype-config
|
2008-10-09 14:50:56 +02:00
|
|
|
|
2020-10-02 07:44:29 +02:00
|
|
|
# harfbuzz already depends on freetype so disable harfbuzz in freetype to avoid
|
|
|
|
# a circular dependency
|
|
|
|
FREETYPE_CONF_OPTS = --without-harfbuzz
|
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
HOST_FREETYPE_DEPENDENCIES = host-pkgconf
|
2020-10-01 22:26:25 +02:00
|
|
|
HOST_FREETYPE_CONF_OPTS = \
|
2020-10-01 22:26:26 +02:00
|
|
|
--without-brotli \
|
2020-10-01 22:26:25 +02:00
|
|
|
--without-bzip2 \
|
|
|
|
--without-harfbuzz \
|
|
|
|
--without-png \
|
|
|
|
--without-zlib
|
2013-10-27 00:44:54 +02:00
|
|
|
|
2018-11-28 20:15:17 +01:00
|
|
|
# since 2.9.1 needed for freetype-config install
|
|
|
|
FREETYPE_CONF_OPTS += --enable-freetype-config
|
|
|
|
HOST_FREETYPE_CONF_OPTS += --enable-freetype-config
|
|
|
|
|
2013-10-27 00:44:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
FREETYPE_DEPENDENCIES += zlib
|
2014-09-27 21:32:44 +02:00
|
|
|
FREETYPE_CONF_OPTS += --with-zlib
|
2013-10-27 00:44:54 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FREETYPE_CONF_OPTS += --without-zlib
|
2013-10-27 00:44:54 +02:00
|
|
|
endif
|
|
|
|
|
2020-10-01 22:26:26 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
|
|
|
FREETYPE_DEPENDENCIES += brotli
|
|
|
|
FREETYPE_CONF_OPTS += --with-brotli
|
|
|
|
else
|
|
|
|
FREETYPE_CONF_OPTS += --without-brotli
|
|
|
|
endif
|
|
|
|
|
2013-10-27 00:44:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
|
|
FREETYPE_DEPENDENCIES += bzip2
|
2014-09-27 21:32:44 +02:00
|
|
|
FREETYPE_CONF_OPTS += --with-bzip2
|
2013-10-27 00:44:54 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FREETYPE_CONF_OPTS += --without-bzip2
|
2013-10-27 00:44:54 +02:00
|
|
|
endif
|
2009-11-03 00:10:08 +01:00
|
|
|
|
2013-10-25 13:34:38 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
|
|
FREETYPE_DEPENDENCIES += libpng
|
2020-10-01 22:26:24 +02:00
|
|
|
FREETYPE_CONF_OPTS += --with-png
|
2013-10-25 13:34:38 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FREETYPE_CONF_OPTS += --without-png
|
2013-10-25 13:34:38 +02:00
|
|
|
endif
|
|
|
|
|
2013-06-13 15:00:23 +02:00
|
|
|
# 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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|