Add iceauth package.
[openwrt/svn-archive/archive.git] / XOrg / app / iceauth / Makefile
1 #
2 # Copyright (C) 2007-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 # blogic@openwrt.org
8 # $Id$
9
10 include $(TOPDIR)/rules.mk
11
12 PKG_BASE_NAME:=iceauth
13 PKG_NAME:=iceauth
14 PKG_RELEASE:=2
15 PKG_VERSION:=1.0.2
16 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.3/src/app
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
19
20 _DEPEND:=
21 ifneq (iceauth,xinit)
22 _DEPEND+=xorg-server-essentials
23 endif
24
25 include $(INCLUDE_DIR)/package.mk
26
27 TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
28
29 PKG_INSTALL=1
30
31 define Package/iceauth
32 SECTION:=xorg-app
33 CATEGORY:=Xorg
34 SUBMENU:=app
35 DEPENDS:= @DISPLAY_SUPPORT
36 TITLE:=iceauth
37 URL:=http://xorg.freedesktop.org/
38 endef
39
40 define Build/InstallDev
41 DESTDIR=$(1) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
42 endef
43
44 define Package/iceauth/install
45 $(INSTALL_DIR) $(1)
46 $(CP) $(PKG_INSTALL_DIR)/* $(1)
47 rm -rf $(1)/usr/man/
48 endef
49
50 define Package/xinit/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(CP) $(PKG_INSTALL_DIR)/usr/bin/xinit $(1)/usr/bin/xinit
53 cd $(1)/usr/bin/; ln -s xinit startx
54 endef
55
56 $(eval $(call BuildPackage,iceauth))