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.

68 lines
2.0 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:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://fontconfig.org/release/
  13. PKG_HASH:=ea968631eadc5739bc7c8856cef5c77da812d1f67b763f5e51b57b8026c1a0a0
  14. PKG_CPE_ID:=cpe:/a:fontconfig_project:fontconfig
  15. PKG_FIXUP:=libtool
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_BUILD_DEPENDS:=gperf/host
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/fontconfig
  21. SECTION:=xorg-util
  22. CATEGORY:=Xorg
  23. SUBMENU:=Font-Utils
  24. TITLE:=fontconfig
  25. DEPENDS:=+libpthread +libexpat +libfreetype
  26. URL:=http://fontconfig.org/
  27. endef
  28. #TODO: better put cache on persistent storage for faster boot time?
  29. CONFIGURE_ARGS+= \
  30. --with-cache-dir=/tmp/fontconfig/cache \
  31. --with-arch=$(ARCH) \
  32. --disable-iconv \
  33. --disable-libxml2 \
  34. --disable-docs
  35. CONFIGURE_VARS+= \
  36. ac_cv_prog_HASDOCBOOK=no \
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/fontconfig $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfontconfig.* $(1)/usr/lib/
  42. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fontconfig.pc $(1)/usr/lib/pkgconfig/
  44. endef
  45. define Package/fontconfig/install
  46. $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib $(1)/usr/share/fontconfig/conf.avail
  47. $(INSTALL_DIR) $(1)/etc/fonts/conf.d
  48. $(CP) $(PKG_INSTALL_DIR)/etc/fonts/fonts.conf $(1)/etc/fonts
  49. $(CP) $(PKG_INSTALL_DIR)/etc/fonts/conf.d/* $(1)/etc/fonts/conf.d
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  52. $(CP) $(PKG_INSTALL_DIR)/usr/share/fontconfig/conf.avail/* $(1)/usr/share/fontconfig/conf.avail
  53. $(INSTALL_DIR) $(1)/etc/init.d
  54. # $(INSTALL_BIN) ./files/fontconfig.init $(1)/etc/init.d/fontconfig
  55. endef
  56. $(eval $(call BuildPackage,fontconfig))