summaryrefslogtreecommitdiff
path: root/package/xterm
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2010-06-07 18:22:20 +0200
committerPhil Sutter <phil@nwl.cc>2010-06-20 16:20:46 +0200
commitdf58b9c606edf2c33abb87595fd3c7d4b7ee1ee5 (patch)
tree89b6ba75e835fc2752a8b194d69d79bc0a67f619 /package/xterm
parent6753dd303c33fcd2e7ecf35e5d1c785c4726105b (diff)
port xterm
Diffstat (limited to 'package/xterm')
-rw-r--r--package/xterm/Makefile30
-rw-r--r--package/xterm/patches/patch-Makefile_in22
2 files changed, 52 insertions, 0 deletions
diff --git a/package/xterm/Makefile b/package/xterm/Makefile
new file mode 100644
index 000000000..720516586
--- /dev/null
+++ b/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
diff --git a/package/xterm/patches/patch-Makefile_in b/package/xterm/patches/patch-Makefile_in
new file mode 100644
index 000000000..1282767e2
--- /dev/null
+++ b/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