2 # Copyright (C) 2008-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://fontconfig.org
/release
/
16 PKG_HASH
:=dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99
18 PKG_CPE_ID
:=cpe
:/a
:fontconfig_project
:fontconfig
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/fontconfig
30 DEPENDS
:=+libpthread
+libexpat
+libfreetype
31 URL
:=http
://fontconfig.org
/
34 #TODO: better put cache on persistent storage for faster boot time?
36 --with-cache-dir
=/tmp
/fontconfig
/cache \
43 ac_cv_prog_HASDOCBOOK
=no \
45 define Build
/InstallDev
46 $(INSTALL_DIR
) $(1)/usr
/include
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/fontconfig
$(1)/usr
/include/
48 $(INSTALL_DIR
) $(1)/usr
/lib
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfontconfig.
* $(1)/usr
/lib
/
50 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fontconfig.
pc $(1)/usr
/lib
/pkgconfig
/
54 define Package
/fontconfig
/install
55 $(INSTALL_DIR
) $(1)/usr
/bin
$(1)/usr
/lib
$(1)/usr
/share
/fontconfig
/conf.avail
56 $(INSTALL_DIR
) $(1)/etc
/fonts
/conf.d
57 $(CP
) $(PKG_INSTALL_DIR
)/etc
/fonts
/fonts.conf
$(1)/etc
/fonts
58 $(CP
) $(PKG_INSTALL_DIR
)/etc
/fonts
/conf.d
/* $(1)/etc
/fonts
/conf.d
59 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/fontconfig
/conf.avail
/* $(1)/usr
/share
/fontconfig
/conf.avail
62 $(INSTALL_DIR
) $(1)/etc
/init.d
63 # $(INSTALL_BIN) ./files/fontconfig.init $(1)/etc/init.d/fontconfig
66 $(eval
$(call BuildPackage
,fontconfig
))