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.

65 lines
1.9 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.4
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@SF/freetype
  13. PKG_HASH:=86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784
  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. PKG_BUILD_DEPENDS:=meson/host
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../../devel/meson/meson.mk
  21. define Package/libfreetype
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=A free, high-quality and portable font engine
  25. URL:=http://www.freetype.org/
  26. DEPENDS:=+zlib +libpng
  27. endef
  28. define Package/libfreetype/description
  29. The FreeType project is a team of volunteers who develop free,
  30. portable and high-quality software solutions for digital typography.
  31. They specifically target embedded systems and focus on bringing small,
  32. efficient and ubiquitous products.
  33. endef
  34. MESON_ARGS += \
  35. -Dzlib=system \
  36. -Dbzip2=disabled \
  37. -Dpng=enabled \
  38. -Dharfbuzz=disabled \
  39. -Dbrotli=disabled \
  40. -Dmmap=enabled
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include/freetype2
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/freetype2/* $(1)/usr/include/freetype2/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.{a,so}* $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freetype2.pc $(1)/usr/lib/pkgconfig/freetype2.pc
  48. endef
  49. define Package/libfreetype/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,libfreetype))