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.

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