Fix small bug in xinit Makefile introduced in r12661.
[openwrt/svn-archive/archive.git] / XOrg / app / xinit / 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
9 include $(TOPDIR)/rules.mk
10
11 PKG_BASE_NAME:=xinit
12 PKG_NAME:=xinit
13 PKG_RELEASE:=2
14 PKG_VERSION:=1.0.5
15 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.3/src/app
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}-$(PKG_VERSION)/
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_INSTALL=1
22
23 define Package/xinit
24 SECTION:=xorg-app
25 CATEGORY:=Xorg
26 SUBMENU:=app
27 DEPENDS:=+libX11 @DISPLAY_SUPPORT
28 TITLE:=xinit
29 URL:=http://xorg.freedesktop.org/
30 endef
31
32 define Build/InstallDev
33 DESTDIR=$(1) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
34 endef
35
36 CONFIGURE_ARGS+=LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
37
38 define Package/xinit/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(CP) $(PKG_INSTALL_DIR)/usr/bin/xinit $(1)/usr/bin/xinit
41 cd $(1)/usr/bin/; ln -sf xinit startx
42 endef
43
44 $(eval $(call BuildPackage,xinit))