nuke $Id$ in /packages as well
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=freetype
11 PKG_VERSION:=2.3.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/freetype
16 PKG_MD5SUM:=83306194817ebdea554133b4232a34aa
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libfreetype
23 SECTION:=libs
24 CATEGORY:=Libraries
25 DEPENDS:=+zlib
26 TITLE:=A free, high-quality and portable font engine
27 URL:=http://www.freetype.org/
28 endef
29
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.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 CONFIGURE_ARGS += \
40 --enable-shared \
41 --enable-static \
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(2)/bin
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/
53 mkdir -p $(1)/usr/lib
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
59 endef
60
61
62 define Package/libfreetype/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,libfreetype))