fontconfig: update to 2.15.0
[feed/packages.git] / utils / fontconfig / Makefile
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.15.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://www.freedesktop.org/software/fontconfig/release/
16 PKG_HASH:=63a0658d0e06e0fa886106452b58ef04f21f58202ea02a94c39de0d3335d7c0e
17
18 PKG_MAINTAINER:=
19 PKG_LICENSE:=
20 PKG_LICENSE_FILES:=
21 PKG_CPE_ID:=cpe:/a:fontconfig_project:fontconfig
22
23 PKG_BUILD_DEPENDS:=gperf/host
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/meson.mk
27
28 define Package/fontconfig
29 SECTION:=xorg-util
30 CATEGORY:=Xorg
31 SUBMENU:=Font-Utils
32 TITLE:=fontconfig
33 DEPENDS:=+libpthread +libexpat +libfreetype
34 URL:=https://www.freedesktop.org/wiki/Software/fontconfig/
35 endef
36
37 MESON_ARGS += \
38 -Ddoc=disabled \
39 -Ddoc-txt=disabled \
40 -Dnls=disabled \
41 -Dtests=disabled \
42 -Dtools=enabled
43
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/
51 endef
52
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
63 endef
64
65 $(eval $(call BuildPackage,fontconfig))