lots of package cleanups/fixes
[openwrt/svn-archive/archive.git] / XOrg / app / fontconfig / 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:=fontconfig
12 PKG_VERSION:=2.3.95
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://fontconfig.org/release/
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:=+xorg-server-essentials +libexpat
27 endef
28
29 define Build/Configure
30 cd $(PKG_BUILD_DIR)/; \
31 $(TARGET_CONFIGURE_OPTS) \
32 $(CONFIGURE_VARS) \
33 $(CONFIGURE_CMD) \
34 $(CONFIGURE_ARGS_XTRA) \
35 $(CONFIGURE_ARGS)
36 endef
37
38 define Build/Compile
39 $(foreach dir,fc-case fc-lang fc-glyphname, $(MAKE) -C $(PKG_BUILD_DIR)/$(dir) CFLAGS="";)
40 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
41 endef
42
43 define Package/fontconfig/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib
46 endef
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/{lib,include}
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ $(1)/usr/lib/
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
53 endef
54
55 $(eval $(call BuildPackage,fontconfig))