[package] unbreak mrd6, fix configuration files and init script installation (#5221)
[openwrt/svn-archive/archive.git] / Xorg / app / xterm / Makefile
1 #
2 # Copyright (C) 2007-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 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xterm
12 PKG_VERSION:=242
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://mirror1.openwrt.org/
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/xterm
22 SECTION:=xorg-extra
23 CATEGORY:=Xorg
24 SUBMENU:=terminals
25 TITLE:=xterm
26 DEPENDS:=+libX11 +libncurses +libXaw
27 endef
28
29 define Build/Configure
30 # sed -e "s%/usr/contrib/X11R6%${STAGING_DIR}/usr/lib%g" -i $(PKG_BUILD_DIR)/configure
31 cd $(PKG_BUILD_DIR)/; $(TARGET_CONFIGURE_OPTS) $(CONFIGURE_VARS) \
32 $(CONFIGURE_CMD) \
33 $(CONFIGURE_ARGS_XTRA) \
34 $(CONFIGURE_ARGS) \
35 --host=$(GNU_TARGET_NAME) \
36 --x-includes=$(STAGING_DIR)/usr/include/ \
37 --x-libraries=$(STAGING_DIR)/usr/lib/ \
38 LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
39 endef
40
41 define Package/xterm/install
42 $(INSTALL_DIR) $(1)/usr/
43 $(CP) $(PKG_INSTALL_DIR)/usr/bin $(1)/usr/
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
45 endef
46
47 $(eval $(call BuildPackage,xterm))