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