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
12 PKG_RELEASE
:=$(AUTORELEASE
)
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
24 PKG_BUILD_DEPENDS
:=gperf
/host
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/meson.mk
29 define Package
/fontconfig
34 DEPENDS
:=+libpthread
+libexpat
+libfreetype
35 URL
:=http
://fontconfig.org
/
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
))