瀏覽代碼

port xterm

Phil Sutter 14 年之前
父節點
當前提交
df58b9c606
共有 3 個文件被更改,包括 53 次插入0 次删除
  1. 1 0
      package/Config.in
  2. 30 0
      package/xterm/Makefile
  3. 22 0
      package/xterm/patches/patch-Makefile_in

+ 1 - 0
package/Config.in

@@ -633,6 +633,7 @@ source "package/twm/Config.in"
 source "package/xauth/Config.in"
 source "package/xinit/Config.in"
 source "package/xlsfonts/Config.in"
+source "package/xterm/Config.in"
 endmenu
 
 menu "X fonts"

+ 30 - 0
package/xterm/Makefile

@@ -0,0 +1,30 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=		xterm
+PKG_VERSION:=		259
+PKG_RELEASE:=		1
+PKG_MD5SUM:=		22037e1b794d749072310cb142800f05
+PKG_DESCR:=		Terminal Emulator for X Windows
+PKG_SECTION:=		x11
+PKG_DEPENDS:=		xorg-server libXaw
+PKG_URL:=		http://invisible-island.net/xterm/xterm.html
+PKG_SITES:=		ftp://invisible-island.net/xterm/
+
+DISTFILES:=             ${PKG_NAME}-${PKG_VERSION}.tgz
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,XTERM,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+post-install:
+	$(INSTALL_DIR) $(IDIR_XTERM)/usr/bin
+	$(INSTALL_BIN) $(WRKINST)/usr/bin/{koi8rxterm,resize,uxterm,xterm} \
+		$(IDIR_XTERM)/usr/bin/
+	$(INSTALL_DIR) $(IDIR_XTERM)/usr/lib/X11/app-defaults
+	$(INSTALL_DATA) ${WRKINST}/usr/lib/X11/app-defaults/{KOI8RXTerm,KOI8RXTerm-color,UXTerm,UXTerm-color,XTerm,XTerm-color} \
+		${IDIR_XTERM}/usr/lib/X11/app-defaults/
+
+include ${TOPDIR}/mk/pkg-bottom.mk

+ 22 - 0
package/xterm/patches/patch-Makefile_in

@@ -0,0 +1,22 @@
+	Fix shell compatibility problem. Note: this is rather hacky, as it
+	changes the actual semantics of the code - instead of evaluating the
+	shell statement when being used as parameter to a command, now the
+	$(shell) function is being used and therefore the result computed at
+	variable assignment stage.
+--- xterm-259.orig/Makefile.in	2010-04-05 00:41:32.000000000 +0200
++++ xterm-259/Makefile.in	2010-06-06 22:35:13.384934404 +0200
+@@ -175,10 +175,10 @@ resize$x : $(OBJS2)
+ 
+ charproc$o : main.h @CHARPROC_DEPS@
+ ################################################################################
+-actual_xterm  = `echo xterm|        sed '$(transform)'`
+-actual_resize = `echo resize|       sed '$(transform)'`
+-actual_uxterm = `echo uxterm|       sed '$(transform)'`
+-actual_k8term = `echo koi8rxterm|   sed '$(transform)'`
++actual_xterm  = $(shell echo xterm|        sed '$(transform)')
++actual_resize = $(shell echo resize|       sed '$(transform)')
++actual_uxterm = $(shell echo uxterm|       sed '$(transform)')
++actual_k8term = $(shell echo koi8rxterm|   sed '$(transform)')
+ 
+ binary_xterm  = $(actual_xterm)$x
+ binary_resize = $(actual_resize)$x