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
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libfreetype
25 TITLE
:=A free
, high-quality and portable font engine
26 URL
:=http
://www.freetype.org
/
29 define Package
/libfreetype
/description
30 The FreeType project is a team of volunteers who develop free
,
31 portable and high-quality software solutions for digital typography.
32 They specifically target embedded systems and focus on bringing small
,
33 efficient and ubiquitous products.
40 define Build
/Configure
41 $(call Build
/Configure
/Default
)
42 $(call libtool_disable_rpath
)
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) all
47 $(call libtool_fixup_libdir
,$(PKG_INSTALL_DIR
))
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" install
51 define Build
/InstallDev
53 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/freetype-config
$(2)/bin
/
54 mkdir
-p
$(1)/usr
/include
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/freetype2
$(1)/usr
/include/
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ft2build.h
$(1)/usr
/include/
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfreetype.
{a
,so
*} $(1)/usr
/lib
/
59 mkdir
-p
$(1)/usr
/lib
/pkgconfig
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/freetype2.
pc $(1)/usr
/lib
/pkgconfig
/
61 $(SED
) 's,-I$$$$includedir/freetype2,-I$(1)/usr/include/freetype2,g' $(2)/bin
/freetype-config
62 $(SED
) 's,/usr/include/freetype2/,$(1)/usr/include/freetype2/,g' $(2)/bin
/freetype-config
65 define Build
/UninstallDev
66 rm -rf
$(2)/bin
/freetype-config \
67 $(1)/usr
/include/freetype2 \
68 $(1)/usr
/include/ft2build.h \
69 $(1)/usr
/lib
/libfreetype.
{a
,so
*} \
70 $(1)/usr
/lib
/pkgconfig
/freetype2.
pc
73 define Package
/libfreetype
/install
74 $(INSTALL_DIR
) $(1)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfreetype.so.
* $(1)/usr
/lib
/
78 $(eval
$(call BuildPackage
,libfreetype
))