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