2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/freetype
16 PKG_MD5SUM:=d76233108aca9c9606cdbd341562ad9a
20 include $(INCLUDE_DIR)/package.mk
22 define Package/libfreetype
26 TITLE:=A free, high-quality and portable font engine
27 URL:=http://www.freetype.org/
30 define Package/libfreetype/description
31 The FreeType project is a team of volunteers who develop free,
32 portable and high-quality software solutions for digital typography.
33 They specifically target embedded systems and focus on bringing small,
34 efficient and ubiquitous products.
37 TARGET_CFLAGS += $(FPIC)
44 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
47 define Build/InstallDev
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/freetype-config $(2)/bin/
50 mkdir -p $(1)/usr/include
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/freetype2 $(1)/usr/include/
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/ft2build.h $(1)/usr/include/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.{a,so*} $(1)/usr/lib/
55 mkdir -p $(1)/usr/lib/pkgconfig
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freetype2.pc $(1)/usr/lib/pkgconfig/
57 $(SED) 's,-I$$$$includedir/freetype2,-I$(STAGING_DIR)/usr/include/freetype2,g' $(2)/bin/freetype-config
58 $(SED) 's,/usr/include/freetype2/,$(STAGING_DIR)/usr/include/freetype2/,g' $(2)/bin/freetype-config
62 define Package/libfreetype/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/
67 $(eval $(call BuildPackage,libfreetype))