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