CI: add PKG-INFO metadata file
[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.13.94
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://fontconfig.org/release/
16 PKG_HASH:=a5f052cb73fd479ffb7b697980510903b563bbb55b8f7a2b001fcfb94026003c
17
18 PKG_MAINTAINER:=
19 PKG_LICENSE:=
20 PKG_LICENSE_FILES:=
21 PKG_CPE_ID:=cpe:/a:fontconfig_project:fontconfig
22
23 PKG_INSTALL:=1
24 PKG_BUILD_DEPENDS:=gperf/host
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/meson.mk
28
29 define Package/fontconfig
30 SECTION:=xorg-util
31 CATEGORY:=Xorg
32 SUBMENU:=Font-Utils
33 TITLE:=fontconfig
34 DEPENDS:=+libpthread +libexpat +libfreetype
35 URL:=http://fontconfig.org/
36 endef
37
38 MESON_ARGS += \
39 -Ddoc=disabled \
40 -Ddoc-txt=disabled \
41 -Dnls=disabled \
42 -Dtests=disabled \
43 -Dtools=enabled
44
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/
52 endef
53
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
64 endef
65
66 $(eval $(call BuildPackage,fontconfig))