source: packages/XOrg/app/xmessage/Makefile @ 9695

Last change on this file since 9695 was 9695, checked in by nbd, 9 years ago

packages: Use $(CP) instead of $(INSTALL_BIN) for binaries.

Signed-off-by: Andy Boyett <agb-openwrt@…>

File size: 1.7 KB
Line 
1#
2# Copyright (C) 2007 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
9include $(TOPDIR)/rules.mk
10
11PKG_BASE_NAME:=xmessage
12PKG_NAME:=xmessage
13PKG_RELEASE:=1
14PKG_VERSION:=X11R7.0-1.0.1
15PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.2/src/app
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}-$(PKG_VERSION)/
18
19_DEPEND:=
20ifneq (xmessage,xinit)
21_DEPEND+=xorg-server-essentials
22endif
23
24include $(INCLUDE_DIR)/package.mk
25
26define Package/xmessage
27  SECTION:=xorg-app
28  CATEGORY:=Xorg
29  SUBMENU:=app
30  DEPENDS:=${_DEPEND} @DISPLAY_SUPPORT
31  TITLE:=xmessage
32  URL:=http://xorg.freedesktop.org/
33endef
34
35define Build/InstallDev
36        DESTDIR=$(1) $(MAKE) -C $(PKG_BUILD_DIR)  $(MAKE_FLAGS) install
37endef
38
39ifeq (xmessage,xdm)
40CONFIGURE_ARGS+=--with-random-device=/dev/urandom
41endif
42
43CONFIGURE_ARGS+=LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib" 
44
45define Build/Compile
46        make -C $(PKG_BUILD_DIR)
47        make -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) install
48endef
49
50define Build/Configure
51        (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
52        if [ -x $(CONFIGURE_CMD) ]; then \
53                $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
54                $(CONFIGURE_VARS) \
55                $(CONFIGURE_CMD) \
56                $(CONFIGURE_ARGS_XTRA) \
57                $(CONFIGURE_ARGS) ;\
58        fi \
59        )
60endef
61
62define Package/xmessage/install
63        $(INSTALL_DIR) $(1)
64        $(CP) $(PKG_INSTALL_DIR)/* $(1)
65        rm -rf $(1)/usr/man/
66endef
67
68define Package/xinit/install
69        $(INSTALL_DIR) $(1)/usr/bin
70        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xinit $(1)/usr/bin/xinit
71        cd $(1)/usr/bin/; ln -s xinit startx
72endef
73
74$(eval $(call BuildPackage,xmessage))
Note: See TracBrowser for help on using the repository browser.