seperate xorg-tree from other x11-stuff
[openwrt/svn-archive/archive.git] / Xorg / xorg / app / font-util / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=1.0.1
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.3/src/font
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/font-util
21 SECTION:=xorg-font
22 CATEGORY:=Xorg
23 SUBMENU:=app
24 TITLE:=misc tool to generate x fonts
25 DEPENDS:=+xserver
26 endef
27
28 define Build/Configure
29 cd $(PKG_BUILD_DIR)/; ./configure
30 endef
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR)
34 $(MAKE) -C $(PKG_BUILD_DIR) install DESTDIR="$(PKG_INSTALL_DIR)"
35 endef
36
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/lib/X11 $(2)/bin
39 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/local/lib/pkgconfig/fontutil.pc $(1)/usr/lib/pkgconfig
40 $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/X11/* $(1)/usr/lib/X11/
41 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/* $(2)/bin/
42 endef
43
44 $(eval $(call BuildPackage,font-util))