From df58b9c606edf2c33abb87595fd3c7d4b7ee1ee5 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 7 Jun 2010 18:22:20 +0200 Subject: port xterm --- package/Config.in | 1 + package/xterm/Makefile | 30 ++++++++++++++++++++++++++++++ package/xterm/patches/patch-Makefile_in | 22 ++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 package/xterm/Makefile create mode 100644 package/xterm/patches/patch-Makefile_in diff --git a/package/Config.in b/package/Config.in index 2f7aecaa4..000403d56 100644 --- a/package/Config.in +++ b/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" 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 -- cgit v1.2.3