2008-12-01 23:07:01 +00:00
|
|
|
#
|
2010-02-19 01:20:44 +00:00
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2007-09-25 20:23:15 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# blogic@openwrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=xterm
|
2009-03-09 00:58:58 +00:00
|
|
|
PKG_VERSION:=242
|
2007-09-25 20:23:15 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2009-03-09 00:58:58 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=ftp://mirror1.openwrt.org/
|
2010-02-19 01:20:44 +00:00
|
|
|
PKG_MD5SUM:=663fa3aac8e30e4c2d4bf07c0aee4dca
|
|
|
|
|
2009-03-09 00:58:58 +00:00
|
|
|
PKG_INSTALL:=1
|
2007-09-25 20:23:15 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/xterm
|
|
|
|
SECTION:=xorg-extra
|
|
|
|
CATEGORY:=Xorg
|
2007-10-09 20:02:40 +00:00
|
|
|
SUBMENU:=terminals
|
2007-09-25 20:23:15 +00:00
|
|
|
TITLE:=xterm
|
2008-12-01 23:07:01 +00:00
|
|
|
DEPENDS:=+libX11 +libncurses +libXaw
|
2007-09-25 20:23:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2009-03-09 00:58:58 +00:00
|
|
|
# sed -e "s%/usr/contrib/X11R6%${STAGING_DIR}/usr/lib%g" -i $(PKG_BUILD_DIR)/configure
|
2007-09-25 20:23:15 +00:00
|
|
|
cd $(PKG_BUILD_DIR)/; $(TARGET_CONFIGURE_OPTS) $(CONFIGURE_VARS) \
|
|
|
|
$(CONFIGURE_CMD) \
|
|
|
|
$(CONFIGURE_ARGS_XTRA) \
|
|
|
|
$(CONFIGURE_ARGS) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--x-includes=$(STAGING_DIR)/usr/include/ \
|
|
|
|
--x-libraries=$(STAGING_DIR)/usr/lib/ \
|
|
|
|
LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xterm/install
|
2009-07-05 12:11:35 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/ $(1)/usr/share/applications $(1)/usr/share/icons
|
2008-06-13 22:45:39 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin $(1)/usr/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
|
2009-07-05 12:11:35 +00:00
|
|
|
$(CP) ./files/xterm.desktop $(1)/usr/share/applications/
|
|
|
|
$(CP) ./files/terminal.png $(1)/usr/share/icons/
|
2007-09-25 20:23:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,xterm))
|