source: packages/Xorg/lib/libXft/Makefile @ 13382

Last change on this file since 13382 was 13382, checked in by lars, 8 years ago

Fix libXft dependencies.

File size: 1.2 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_BASE_NAME:=libXft
11PKG_NAME:=libXft
12PKG_RELEASE:=1
13PKG_VERSION:=2.1.13
14PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/lib/
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}-$(PKG_VERSION)/
17
18PKG_FIXUP=libtool
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/libXft
23  SECTION:=xorg-libraries
24  CATEGORY:=Xorg
25  SUBMENU:=libraries
26  DEPENDS:=+fontconfig +libfreetype +libXrender
27  TITLE:=libXft
28  URL:=http://xorg.freedesktop.org/
29endef
30
31define Build/Compile
32        $(call $(PKG_NAME)/Compile)
33        make -C $(PKG_BUILD_DIR)
34        mkdir -p $(PKG_INSTALL_DIR)
35        DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
36endef
37
38define Package/libXft/install
39        $(INSTALL_DIR) $(1)/usr/lib
40        find $(PKG_INSTALL_DIR)/usr/lib/ -name lib*so* | $(XARGS) -I % -t cp -P % $(1)/usr/lib
41endef
42
43define Build/InstallDev
44        $(INSTALL_DIR) $(1)
45        $(CP) $(PKG_INSTALL_DIR)/* $(1)/
46endef
47
48$(eval $(call BuildPackage,libXft))
Note: See TracBrowser for help on using the repository browser.