ad3f8b7ca3a8c21c67fc5e16e686502b37eb1589
[openwrt/svn-archive/archive.git] / XOrg / misc / freetype / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=freetype
12 PKG_VERSION:=2.1.10
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/freetype/
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/freetype
21 SECTION:=xorg-misc
22 CATEGORY:=Xorg
23 SUBMENU:=misc
24 TITLE:=Freetype font rendering library
25 endef
26
27 define Build/Configure
28 (cd $(PKG_BUILD_DIR)/builds/unix; \
29 ./configure --host=$(GNU_TARGET_NAME) ; \
30 $(TARGET_CONFIGURE_OPTS) \
31 AC_PROG_LIBTOOL="$(PKG_BUILD_DIR)/builds/unix/libtool"; \
32 aclocal -I . );
33 (cd $(PKG_BUILD_DIR)/; \
34 $(TARGET_CONFIGURE_OPTS) \
35 ./configure --host=$(GNU_TARGET_NAME) --without-zlib);
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR)
40 mkdir -p $(PKG_INSTALL_DIR)
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 install
44 endef
45
46 define Build/InstallDev
47 $(CP) -r $(PKG_BUILD_DIR)/include/* $(STAGING_DIR)/include/
48 $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libfreetype.so* $(STAGING_DIR)/usr/lib/
49 $(CP) $(PKG_BUILD_DIR)/builds/unix/freetype2.pc $(STAGING_DIR)/usr/lib/pkgconfig/
50 endef
51
52 define Package/freetype/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libfreetype.so* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,freetype))