2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://fontconfig.org/release/
19 include $(INCLUDE_DIR)/package.mk
21 define Package/fontconfig
26 DEPENDS:=+xorg-server-essentials +libexpat
29 define Build/Configure
30 cd $(PKG_BUILD_DIR)/; \
31 $(TARGET_CONFIGURE_OPTS) \
34 $(CONFIGURE_ARGS_XTRA) \
39 $(foreach dir,fc-case fc-lang fc-glyphname, $(MAKE) -C $(PKG_BUILD_DIR)/$(dir) CFLAGS="" CPPFLAGS="" LDFLAGS="";)
40 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" DOCSRC="" install
43 define Package/fontconfig/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib
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/
55 $(eval $(call BuildPackage,fontconfig))