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.xz
15 PKG_SOURCE_URL
:=https
://fontconfig.org
/release
/
16 PKG_HASH
:=a5f052cb73fd479ffb7b697980510903b563bbb55b8f7a2b001fcfb94026003c
21 PKG_CPE_ID
:=cpe
:/a
:fontconfig_project
:fontconfig
23 PKG_BUILD_DEPENDS
:=gperf
/host
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/meson.mk
28 define Package
/fontconfig
33 DEPENDS
:=+libpthread
+libexpat
+libfreetype
34 URL
:=http
://fontconfig.org
/
44 define Build
/InstallDev
45 $(INSTALL_DIR
) $(1)/usr
/include
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/fontconfig
$(1)/usr
/include/
47 $(INSTALL_DIR
) $(1)/usr
/lib
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfontconfig.
* $(1)/usr
/lib
/
49 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/fontconfig.
pc $(1)/usr
/lib
/pkgconfig
/
53 define Package
/fontconfig
/install
54 $(INSTALL_DIR
) $(1)/usr
/bin
$(1)/usr
/lib
$(1)/usr
/share
/fontconfig
/conf.avail
55 $(INSTALL_DIR
) $(1)/etc
/fonts
/conf.d
56 $(CP
) $(PKG_INSTALL_DIR
)/etc
/fonts
/fonts.conf
$(1)/etc
/fonts
57 $(CP
) $(PKG_INSTALL_DIR
)/etc
/fonts
/conf.d
/* $(1)/etc
/fonts
/conf.d
58 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/fontconfig
/conf.avail
/* $(1)/usr
/share
/fontconfig
/conf.avail
61 $(INSTALL_DIR
) $(1)/etc
/init.d
62 # $(INSTALL_BIN) ./files/fontconfig.init $(1)/etc/init.d/fontconfig
65 $(eval
$(call BuildPackage
,fontconfig
))