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.

59 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=freetype
  9. PKG_VERSION:=2.10.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@SF/freetype
  13. PKG_HASH:=1543d61025d2e6312e0a1c563652555f17378a204a61e99928c9fcef030a2d8b
  14. PKG_MAINTAINER:=Val Kulkov <val.kulkov@gmail.com>
  15. PKG_LICENSE:=FTL GPL-2.0-only MIT ZLIB GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=docs/LICENSE.TXT docs/FTL.TXT docs/GPLv2.TXT src/bdf/README src/pcf/README src/gzip/zlib.h builds/unix/config.sub builds/unix/config.guess builds/unix/libtool
  17. PKG_CPE_ID:=cpe:/a:freetype:freetype2
  18. CMAKE_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. CMAKE_BINARY_SUBDIR:=build
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/cmake.mk
  23. define Package/libfreetype
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=A free, high-quality and portable font engine
  27. URL:=http://www.freetype.org/
  28. DEPENDS:=+zlib +libpng
  29. endef
  30. define Package/libfreetype/description
  31. The FreeType project is a team of volunteers who develop free,
  32. portable and high-quality software solutions for digital typography.
  33. They specifically target embedded systems and focus on bringing small,
  34. efficient and ubiquitous products.
  35. endef
  36. CMAKE_OPTIONS += \
  37. -DBUILD_SHARED_LIBS=ON \
  38. -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=ON \
  39. -DFT_WITH_ZLIB=ON \
  40. -DFT_WITH_BZIP2=OFF \
  41. -DFT_WITH_PNG=ON \
  42. -DFT_WITH_HARFBUZZ=OFF \
  43. -DFT_WITH_BROTLI=OFF
  44. define Package/libfreetype/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,libfreetype))