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.

66 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2008-2016 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:=fontconfig
  9. PKG_VERSION:=2.13.93
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://fontconfig.org/release/
  13. PKG_HASH:=ea968631eadc5739bc7c8856cef5c77da812d1f67b763f5e51b57b8026c1a0a0
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=
  16. PKG_LICENSE_FILES:=
  17. PKG_CPE_ID:=cpe:/a:fontconfig_project:fontconfig
  18. PKG_INSTALL:=1
  19. PKG_BUILD_DEPENDS:=gperf/host
  20. include $(INCLUDE_DIR)/package.mk
  21. include ../../devel/meson/meson.mk
  22. define Package/fontconfig
  23. SECTION:=xorg-util
  24. CATEGORY:=Xorg
  25. SUBMENU:=Font-Utils
  26. TITLE:=fontconfig
  27. DEPENDS:=+libpthread +libexpat +libfreetype
  28. URL:=http://fontconfig.org/
  29. endef
  30. MESON_ARGS += \
  31. -Ddoc=disabled \
  32. -Ddoc-txt=disabled \
  33. -Dnls=disabled \
  34. -Dtests=disabled \
  35. -Dtools=enabled
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/fontconfig $(1)/usr/include/
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfontconfig.* $(1)/usr/lib/
  41. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fontconfig.pc $(1)/usr/lib/pkgconfig/
  43. endef
  44. define Package/fontconfig/install
  45. $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib $(1)/usr/share/fontconfig/conf.avail
  46. $(INSTALL_DIR) $(1)/etc/fonts/conf.d
  47. $(CP) $(PKG_INSTALL_DIR)/etc/fonts/fonts.conf $(1)/etc/fonts
  48. $(CP) $(PKG_INSTALL_DIR)/etc/fonts/conf.d/* $(1)/etc/fonts/conf.d
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  51. $(CP) $(PKG_INSTALL_DIR)/usr/share/fontconfig/conf.avail/* $(1)/usr/share/fontconfig/conf.avail
  52. $(INSTALL_DIR) $(1)/etc/init.d
  53. # $(INSTALL_BIN) ./files/fontconfig.init $(1)/etc/init.d/fontconfig
  54. endef
  55. $(eval $(call BuildPackage,fontconfig))