2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/individual/app
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
18 PKG_MD5SUM:=cc1816bc62a3722ad509373b0b7f30fe
23 include $(INCLUDE_DIR)/package.mk
29 DEPENDS:=+libX11 +libXmu +libXau +libXaw
31 URL:=http://xorg.freedesktop.org/
35 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
38 define Build/Configure
39 $(call Build/Configure/Default, \
41 --with-random-device=/dev/urandom \
42 --disable-dynamic-greeter \
47 define Package/xdm/install
48 $(INSTALL_DIR) $(1)/usr/{bin,lib/X11/xdm,share/X11/app-defaults}
50 $(PKG_INSTALL_DIR)/usr/bin/* \
53 $(PKG_INSTALL_DIR)/usr/lib/X11/xdm/{X*,chooser,GiveConsole,TakeConsole,xdm-config,pixmaps} \
56 $(PKG_INSTALL_DIR)/usr/share/X11/app-defaults/* \
57 $(1)/usr/share/X11/app-defaults/
60 $(eval $(call BuildPackage,xdm))