packages/XOrg/app/common.mk
blogic 42af9405ab small changes to the way Xorg apps are installed
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8897 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-21 00:16:23 +00:00

51 lines
1.2 KiB
Makefile

#
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# blogic@openwrt.org
PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.2/src/app
_CATEGORY:=app
_DEPEND+=xorg-server-X11R7.2-essentials
include ../../common.mk
ifeq ($(PKG_NAME),xdm-X11R7.2)
CONFIGURE_ARGS+=--with-random-device=/dev/urandom
endif
CONFIGURE_ARGS+=LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
define Build/Compile
make -C $(PKG_BUILD_DIR)
make -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) install
endef
define Build/Configure
(cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
if [ -x $(CONFIGURE_CMD) ]; then \
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
$(CONFIGURE_VARS) \
$(CONFIGURE_CMD) \
$(CONFIGURE_ARGS_XTRA) \
$(CONFIGURE_ARGS) ;\
fi \
)
endef
define xinit-X11R7.2/install
rm -rf $(1)/usr
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/xinit $(1)/usr/bin/xinit
cd $(1)/usr/bin/; ln -s xinit startx
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)
$(CP) $(PKG_INSTALL_DIR)/* $(1)
rm -rf $(1)/usr/man/
$(call $(PKG_NAME)/install,$(1))
endef