[packages] luasec: update to 0.4
[openwrt/svn-archive/archive.git] / Xorg / app / xdm / Makefile
1 #
2 # Copyright (C) 2007-2009 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_NAME:=xdm
12 PKG_RELEASE:=1
13 PKG_VERSION:=1.1.8
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/individual/app
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/xdm
23 SECTION:=xorg-app
24 CATEGORY:=Xorg
25 SUBMENU:=app
26 DEPENDS:=+libX11 +libXmu +libXau +libXaw
27 TITLE:=xdm
28 URL:=http://xorg.freedesktop.org/
29 endef
30
31 TARGET_LDFLAGS+=\
32 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
33 -Wl,-rpath=/usr/lib
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --without-pam \
38 --with-random-device=/dev/urandom \
39 --disable-dynamic-greeter \
40 --disable-xprint \
41 )
42 endef
43
44 define Package/xdm/install
45 $(INSTALL_DIR) $(1)/usr/{bin,lib/X11/xdm,share/X11/app-defaults}
46 $(INSTALL_BIN) \
47 $(PKG_INSTALL_DIR)/usr/bin/* \
48 $(1)/usr/bin/
49 $(CP) \
50 $(PKG_INSTALL_DIR)/usr/lib/X11/xdm/{X*,chooser,GiveConsole,TakeConsole,xdm-config,pixmaps} \
51 $(1)/usr/lib/X11/xdm/
52 $(INSTALL_DATA) \
53 $(PKG_INSTALL_DIR)/usr/share/X11/app-defaults/* \
54 $(1)/usr/share/X11/app-defaults/
55 endef
56
57 $(eval $(call BuildPackage,xdm))