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.

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