2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@SF
/freetype
17 PKG_MD5SUM
:=11e1186ca5520c5a284fa0a03f652035
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libfreetype
27 TITLE
:=A free
, high-quality and portable font engine
28 URL
:=http
://www.freetype.org
/
31 define 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.
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" all install
46 define Build
/InstallDev
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/
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$(1)/usr/include/freetype2,g' $(2)/bin
/freetype-config
57 $(SED
) 's,/usr/include/freetype2/,$(1)/usr/include/freetype2/,g' $(2)/bin
/freetype-config
60 define Package
/libfreetype
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfreetype.so.
* $(1)/usr
/lib
/
65 $(eval
$(call BuildPackage
,libfreetype
))