remove UninstallDev
[openwrt/svn-archive/archive.git] / libs / freetype / Makefile
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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=freetype
12 PKG_VERSION:=2.3.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/freetype
17 PKG_MD5SUM:=11e1186ca5520c5a284fa0a03f652035
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libfreetype
22 SECTION:=libs
23 CATEGORY:=Libraries
24 DEPENDS:=+zlib
25 TITLE:=A free, high-quality and portable font engine
26 URL:=http://www.freetype.org/
27 endef
28
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.
34 endef
35
36 CONFIGURE_ARGS += \
37 --enable-shared \
38 --enable-static \
39
40 define Build/Configure
41 $(call Build/Configure/Default)
42 $(call libtool_disable_rpath)
43 endef
44
45 define Build/Compile
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
49 endef
50
51 define Build/InstallDev
52 mkdir -p $(2)/bin
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/
57 mkdir -p $(1)/usr/lib
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
63 endef
64
65 define Package/libfreetype/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libfreetype))