source: packages/libs/freetype/Makefile @ 11771

Last change on this file since 11771 was 11771, checked in by florian, 8 years ago

Upgrade freetype to 2.3.7, and add an UninstallDev template

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=freetype
12PKG_VERSION:=2.3.7
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=@SF/freetype
17PKG_MD5SUM:=83306194817ebdea554133b4232a34aa
18
19PKG_FIXUP = libtool
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libfreetype
24  SECTION:=libs
25  CATEGORY:=Libraries
26  DEPENDS:=+zlib
27  TITLE:=A free, high-quality and portable font engine
28  URL:=http://www.freetype.org/
29endef
30
31define Package/libfreetype/description
32 The FreeType project is a team of volunteers who develop free,
33 portable and high-quality software solutions for digital typography.
34 They specifically target embedded systems and focus on bringing small,
35 efficient and ubiquitous products.
36endef
37
38CONFIGURE_ARGS += \
39        --enable-shared \
40        --enable-static \
41
42define Build/Compile
43        $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
44endef
45
46define Build/InstallDev
47        mkdir -p $(2)/bin
48        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/freetype-config $(2)/bin/
49        mkdir -p $(1)/usr/include
50        $(CP) $(PKG_INSTALL_DIR)/usr/include/freetype2 $(1)/usr/include/
51        $(CP) $(PKG_INSTALL_DIR)/usr/include/ft2build.h $(1)/usr/include/
52        mkdir -p $(1)/usr/lib
53        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.{a,so*} $(1)/usr/lib/
54        mkdir -p $(1)/usr/lib/pkgconfig
55        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freetype2.pc $(1)/usr/lib/pkgconfig/
56        $(SED) 's,-I$$$$includedir/freetype2,-I$(STAGING_DIR)/usr/include/freetype2,g' $(2)/bin/freetype-config
57        $(SED) 's,/usr/include/freetype2/,$(STAGING_DIR)/usr/include/freetype2/,g' $(2)/bin/freetype-config
58endef
59
60define Build/UninstallDev
61        rm -rf $(1)/bin/freetype-config \
62                $(1)/usr/include/freetype2 \
63                $(1)/usr/include/ft2build.h \
64                $(1)/usr/lib/libfreetype.{a,so*} \
65                $(1)/usr/lib/pkgconfig/freetype2.pc
66endef
67
68define Package/libfreetype/install
69        $(INSTALL_DIR) $(1)/usr/lib
70        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/
71endef
72
73$(eval $(call BuildPackage,libfreetype))
Note: See TracBrowser for help on using the repository browser.