treewide: add PKG_CPE_ID for better cvescanner coverage
[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.11.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://fontconfig.org/release/
16 PKG_HASH:=dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99
17
18 PKG_CPE_ID:=cpe:/a:fontconfig_project:fontconfig
19
20 PKG_FIXUP:=libtool
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/fontconfig
26 SECTION:=xorg-util
27 CATEGORY:=Xorg
28 SUBMENU:=Font-Utils
29 TITLE:=fontconfig
30 DEPENDS:=+libpthread +libexpat +libfreetype
31 URL:=http://fontconfig.org/
32 endef
33
34 #TODO: better put cache on persistent storage for faster boot time?
35 CONFIGURE_ARGS+= \
36 --with-cache-dir=/tmp/fontconfig/cache \
37 --with-arch=$(ARCH) \
38 --disable-iconv \
39 --disable-libxml2 \
40 --disable-docs
41
42 CONFIGURE_VARS+= \
43 ac_cv_prog_HASDOCBOOK=no \
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))