[packages] add missing & update current urls
[openwrt/svn-archive/archive.git] / Xorg / xorg / app / fontconfig / Makefile
1 #
2 # Copyright (C) 2008-2010 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.6.0
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:=ab54ec1d4ddd836313fdbc0cd5299d6d
17 PKG_FIXUP:=libtool
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/fontconfig
23 SECTION:=xorg-util
24 CATEGORY:=Xorg
25 SUBMENU:=font-utils
26 TITLE:=fontconfig
27 DEPENDS:=+libexpat +libfreetype
28 URL:=http://fontconfig.org/
29 endef
30
31 CONFIGURE_ARGS+= \
32 --disable-docs \
33 --with-cache-dir=/usr/share/fontconfig/cache \
34 --with-arch=$(ARCH) \
35
36 CONFIGURE_VARS+= \
37 ac_cv_prog_HASDOCBOOK=no \
38
39 define Build/Compile
40 $(foreach dir,fc-arch fc-case fc-lang fc-glyphname, \
41 $(MAKE) -C $(PKG_BUILD_DIR)/$(dir) CFLAGS="$(HOST_CFLAGS)" \
42 CPPFLAGS="" LDFLAGS="$(HOST_LDFLAGS)" || exit 1;)
43 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" DOCSRC="" install
44 endef
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/fontconfig $(1)/usr/include/
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfontconfig.* $(1)/usr/lib/
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fontconfig.pc $(1)/usr/lib/pkgconfig/
53 endef
54
55 define Package/fontconfig/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfontconfig.so.* $(1)/usr/lib/
60 $(INSTALL_DIR) $(1)/etc/fonts/conf.avail
61 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/fonts/conf.avail/*.conf $(1)/etc/fonts/conf.avail/
62 $(INSTALL_DIR) $(1)/etc/fonts/conf.d
63 $(CP) $(PKG_INSTALL_DIR)/etc/fonts/conf.d/*.conf $(1)/etc/fonts/conf.d/
64 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/fonts/fonts.{conf,dtd} $(1)/etc/fonts/
65 endef
66
67 $(eval $(call BuildPackage,fontconfig))