Add xinit package.
[openwrt/svn-archive/archive.git] / Xorg / app / xinit / Makefile
1 #
2 # Copyright (C) 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xinit
11 PKG_RELEASE:=1
12 PKG_VERSION:=1.0.5
13 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.3/src/app
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
16
17 include $(INCLUDE_DIR)/package.mk
18
19 PKG_INSTALL:=1
20
21 TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
22
23 define Package/xinit
24 SECTION:=xorg-app
25 CATEGORY:=Xorg
26 SUBMENU:=app
27 DEPENDS:=@DISPLAY_SUPPORT
28 TITLE:=xinit
29 URL:=http://xorg.freedesktop.org/
30 endef
31
32 define Package/xinit/install
33 $(INSTALL_DIR) $(1)/usr/bin
34 $(INSTALL_BIN) \
35 $(PKG_INSTALL_DIR)/usr/bin/* \
36 $(1)/usr/bin/
37 endef
38
39 $(eval $(call BuildPackage,xinit))