You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
################################################################################
|
|
#
|
|
# freetype
|
|
#
|
|
################################################################################
|
|
|
|
FREETYPE_VERSION = 2.11.0
|
|
FREETYPE_DIR = freetype-$(FREETYPE_VERSION)
|
|
FREETYPE_SOURCE = freetype-$(FREETYPE_VERSION).tar.xz
|
|
FREETYPE_SITE = https://sourceforge.net/projects/freetype/files/freetype2/$(FREETYPE_VERSION)
|
|
|
|
FREETYPE_DEPENDENCIES = zlib libpng
|
|
|
|
FREETYPE_CONFIG_SCRIPTS = freetype-config
|
|
|
|
FREETYPE_CONF_OPTS = \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--enable-freetype-config \
|
|
--with-png \
|
|
--with-zlib \
|
|
--without-harfbuzz \
|
|
--without-bzip2
|
|
|
|
define FREETYPE_PATCH_MODULES_CFG
|
|
$(SED) '/^FONT_MODULES += \(type1\|cid\|pfr\|type42\|pcf\|bdf\|winfonts\|cff\)/d' $(PKG_BUILD_DIR)/modules.cfg
|
|
endef
|
|
FREETYPE_POST_PATCH_HOOKS += FREETYPE_PATCH_MODULES_CFG
|
|
|
|
define FREETYPE_EXECUTE_AUTOTOOLS
|
|
$(CHDIR)/$($(PKG)_DIR)/builds/unix; \
|
|
libtoolize --force --copy; \
|
|
aclocal -I .; \
|
|
autoconf
|
|
endef
|
|
FREETYPE_POST_PATCH_HOOKS += FREETYPE_EXECUTE_AUTOTOOLS
|
|
|
|
define FREETYPE_LINK_FREETYPE
|
|
ln -sf freetype2 $(TARGET_includedir)/freetype
|
|
endef
|
|
FREETYPE_TARGET_FINALIZE_HOOKS += FREETYPE_LINK_FREETYPE
|
|
|
|
define FREETYPE_TARGET_CLEANUP
|
|
$(TARGET_RM) $(TARGET_datadir)/aclocal
|
|
endef
|
|
FREETYPE_TARGET_FINALIZE_HOOKS += FREETYPE_TARGET_CLEANUP
|
|
|
|
freetype: | $(TARGET_DIR)
|
|
$(call autotools-package)
|
|
|