2007-10-04 19:02:48 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# blogic@openwrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=fontconfig
|
2007-10-05 23:07:14 +00:00
|
|
|
PKG_VERSION:=2.3.95
|
2007-10-04 19:02:48 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://fontconfig.org/release/
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-10-05 23:07:14 +00:00
|
|
|
CONFIGURE_ARGS+=LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib" --disable-docs
|
2007-10-04 19:02:48 +00:00
|
|
|
|
|
|
|
define Package/fontconfig
|
|
|
|
SECTION:=xorg-util
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=font-utils
|
|
|
|
TITLE:=fontconfig
|
|
|
|
DEPENDS:=+xorg-server-essentials +libexpat
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
cd $(PKG_BUILD_DIR)/; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-10-05 23:07:14 +00:00
|
|
|
$(CONFIGURE_VARS) \
|
2007-10-04 19:02:48 +00:00
|
|
|
$(CONFIGURE_CMD) \
|
|
|
|
$(CONFIGURE_ARGS_XTRA) \
|
|
|
|
$(CONFIGURE_ARGS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2007-10-05 23:07:14 +00:00
|
|
|
$(foreach dir,fc-case fc-lang fc-glyphname, $(MAKE) -C $(PKG_BUILD_DIR)/$(dir) CFLAGS="";)
|
2007-10-04 19:02:48 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fontconfig/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/{lib,include}
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
|
|
$(SED) "s,"libdir\=\'/usr/lib\'",libdir='$(1)/usr/lib\'," $(1)/usr/lib/libfontconfig.la
|
2007-10-04 19:02:48 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,fontconfig))
|