Update fontconfig to 2.6.0
[openwrt/svn-archive/archive.git] / Xorg / xorg / app / fontconfig / Makefile
1 #
2 # Copyright (C) 2008-2009 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:=fontconfig
12 PKG_VERSION:=2.6.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://fontconfig.org/release/
17 PKG_MD5SUM:=
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/fontconfig
24 SECTION:=xorg-util
25 CATEGORY:=Xorg
26 SUBMENU:=font-utils
27 TITLE:=fontconfig
28 DEPENDS:=+libX11 +libexpat +libfreetype
29 endef
30
31 define Build/Configure
32 $(call Build/Configure/Default, \
33 --disable-docs \
34 --with-arch=$(ARCH) \
35 , \
36 ac_cv_prog_HASDOCBOOK=no \
37 )
38 endef
39
40 define Build/Compile
41 $(foreach dir,fc-arch fc-case fc-lang fc-glyphname src fc-cache fc-list, $(MAKE) -C $(PKG_BUILD_DIR)/$(dir) CFLAGS="-I$(STAGING_DIR)/usr/include" \
42 CPPFLAGS="" LDFLAGS="-L$(STAGING_DIR)/usr/lib";)
43 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" DOCSRC="" install
44 endef
45
46 define Package/fontconfig/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
51 $(INSTALL_DIR) $(1)/etc/fonts/conf.d
52 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/fonts/fonts.* $(1)/etc/fonts
53 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/fonts/conf.d/* $(1)/etc/fonts/conf.d
54 endef
55
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/{lib,include}
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ $(1)/usr/lib/
60 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
61 endef
62
63 $(eval $(call BuildPackage,fontconfig))