fix font-util compilation
[openwrt/svn-archive/archive.git] / XOrg / font-native / font-util / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 8299 2007-08-01 12:32:53Z nico $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=font-util
12 PKG_VERSION:=X11R7.1-1.0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.2/src/font
17
18 include $(INCLUDE_DIR)/package.mk
19 STAGING_DIR=$(STAGING_DIR_HOST)
20
21 define Package/font-util
22 SECTION:=xorg-font
23 CATEGORY:=Xorg
24 SUBMENU:=font-utils
25 TITLE:=misc tool to generate x fonts
26 DEPENDS:=+xorg-server @DISPLAY_SUPPORT
27 endef
28
29 define Build/Configure
30 cd $(PKG_BUILD_DIR)/; ./configure
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR)
35 $(MAKE) -C $(PKG_BUILD_DIR) install DESTDIR="$(PKG_INSTALL_DIR)"
36 endef
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/lib/X11 $(1)/usr/bin
40 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/local/lib/pkgconfig/fontutil.pc $(1)/usr/lib/pkgconfig
41 $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/X11/* $(1)/usr/lib/X11/
42 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/* $(1)/usr/bin/
43 endef
44
45 $(eval $(call BuildPackage,font-util))