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