bluez-tools: Add package bluezetools
[feed/packages.git] / libs / freetype / Makefile
1 #
2 # Copyright (C) 2006-2015 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:=freetype
11 PKG_VERSION:=2.11.0
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@SF/freetype
16 PKG_HASH:=8bee39bd3968c4804b70614a0a3ad597299ad0e824bc8aad5ce8aaf48067bde7
17
18 PKG_MAINTAINER:=Val Kulkov <val.kulkov@gmail.com>
19 PKG_LICENSE:=FTL GPL-2.0-only MIT ZLIB GPL-3.0-or-later
20 PKG_LICENSE_FILES:=docs/LICENSE.TXT docs/FTL.TXT docs/GPLv2.TXT src/bdf/README src/pcf/README src/gzip/zlib.h builds/unix/config.sub builds/unix/config.guess builds/unix/libtool
21 PKG_CPE_ID:=cpe:/a:freetype:freetype2
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/meson.mk
25
26 define Package/libfreetype
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=A free, high-quality and portable font engine
30 URL:=http://www.freetype.org/
31 DEPENDS:=+zlib +libpng
32 endef
33
34 define Package/libfreetype/description
35 The FreeType project is a team of volunteers who develop free,
36 portable and high-quality software solutions for digital typography.
37 They specifically target embedded systems and focus on bringing small,
38 efficient and ubiquitous products.
39 endef
40
41 MESON_ARGS += \
42 -Dzlib=enabled \
43 -Dbzip2=disabled \
44 -Dpng=enabled \
45 -Dharfbuzz=disabled \
46 -Dbrotli=disabled \
47 -Dmmap=enabled
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include/freetype2
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/freetype2/* $(1)/usr/include/freetype2/
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.{a,so}* $(1)/usr/lib/
54 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freetype2.pc $(1)/usr/lib/pkgconfig/freetype2.pc
56 endef
57
58 define Package/libfreetype/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libfreetype))