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
|
|
|
|
2013-10-25 13:34:38 +02:00
|
|
|
FREETYPE_VERSION_MAJOR = 2.5.0
|
|
|
|
FREETYPE_VERSION_MINOR = 1
|
|
|
|
FREETYPE_VERSION = $(FREETYPE_VERSION_MAJOR).$(FREETYPE_VERSION_MINOR)
|
2008-10-09 14:50:56 +02:00
|
|
|
FREETYPE_SOURCE = freetype-$(FREETYPE_VERSION).tar.bz2
|
2013-10-25 13:34:38 +02:00
|
|
|
FREETYPE_SITE = http://downloads.sourceforge.net/project/freetype/freetype2/$(FREETYPE_VERSION_MAJOR)
|
2008-10-09 14:50:56 +02:00
|
|
|
FREETYPE_INSTALL_STAGING = YES
|
|
|
|
FREETYPE_MAKE_OPT = CCexe="$(HOSTCC)"
|
2012-12-27 06:39:10 +01:00
|
|
|
FREETYPE_LICENSE = Dual FTL/GPLv2+
|
2012-12-28 01:34:17 +01:00
|
|
|
FREETYPE_LICENSE_FILES = docs/FTL.TXT docs/GPLv2.TXT
|
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
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
HOST_FREETYPE_DEPENDENCIES = host-pkgconf
|
2013-10-27 00:44:54 +02:00
|
|
|
HOST_FREETYPE_CONF_OPT = --without-zlib --without-bzip2 --without-png
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
FREETYPE_DEPENDENCIES += zlib
|
|
|
|
FREETYPE_CONF_OPT += --with-zlib
|
|
|
|
else
|
|
|
|
FREETYPE_CONF_OPT += --without-zlib
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
|
|
FREETYPE_DEPENDENCIES += bzip2
|
|
|
|
FREETYPE_CONF_OPT += --with-bzip2
|
|
|
|
else
|
|
|
|
FREETYPE_CONF_OPT += --without-bzip2
|
|
|
|
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
|
|
|
|
FREETYPE_CONF_OPT += LIBPNG_CFLAGS="`$(STAGING_DIR)/usr/bin/libpng-config --cflags`" \
|
|
|
|
LIBPNG_LDFLAGS="`$(STAGING_DIR)/usr/bin/libpng-config --ldflags`"
|
|
|
|
else
|
|
|
|
FREETYPE_CONF_OPT += --without-png
|
|
|
|
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))
|