summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patches/xterm-331.local.patch92
-rw-r--r--vars/build.vars7
2 files changed, 98 insertions, 1 deletions
diff --git a/patches/xterm-331.local.patch b/patches/xterm-331.local.patch
new file mode 100644
index 00000000..9b06485a
--- /dev/null
+++ b/patches/xterm-331.local.patch
@@ -0,0 +1,92 @@
+diff -ru xterm-331.orig/configure xterm-331/configure
+--- xterm-331.orig/configure 2017-12-25 13:39:17.000000000 +0100
++++ xterm-331/configure 2018-02-07 21:24:41.886291513 +0100
+@@ -2574,7 +2574,7 @@
+ cf_xopen_source="-D_SGI_SOURCE"
+ cf_XOPEN_SOURCE=
+ ;;
+-(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
++(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|midipix*)
+
+ echo "$as_me:2579: checking if we must define _GNU_SOURCE" >&5
+ echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
+diff -ru xterm-331.orig/main.c xterm-331/main.c
+--- xterm-331.orig/main.c 2017-12-20 02:17:24.000000000 +0100
++++ xterm-331/main.c 2018-02-07 21:35:36.776089906 +0100
+@@ -154,7 +154,7 @@
+ #define KANJI
+ #endif
+
+-#ifdef linux
++#if defined(linux) || defined(__midipix__)
+ #define USE_SYSV_PGRP
+ #define USE_SYSV_SIGNALS
+ #define WTMP
+@@ -2785,7 +2785,7 @@
+ }
+ }
+
+-#if defined(__osf__) || (defined(__GLIBC__) && !defined(USE_USG_PTYS)) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
++#if defined(__osf__) || (defined(__GLIBC__) && !defined(USE_USG_PTYS)) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__midipix__)
+ #define USE_OPENPTY 1
+ static int opened_tty = -1;
+ #endif
+diff -ru xterm-331.orig/ptyx.h xterm-331/ptyx.h
+--- xterm-331.orig/ptyx.h 2017-12-30 15:42:05.000000000 +0100
++++ xterm-331/ptyx.h 2018-02-07 21:04:06.021826172 +0100
+@@ -185,7 +185,7 @@
+ #undef USE_PTY_SEARCH
+ #elif defined(PUCC_PTYD)
+ #undef USE_PTY_SEARCH
+-#elif (defined(sun) && defined(SVR4)) || defined(_ALL_SOURCE) || defined(__CYGWIN__)
++#elif (defined(sun) && defined(SVR4)) || defined(_ALL_SOURCE) || defined(__CYGWIN__) || defined(__midipix__)
+ #undef USE_PTY_SEARCH
+ #elif defined(__OpenBSD__)
+ #undef USE_PTY_SEARCH
+diff -ru xterm-331.orig/xtermcap.h xterm-331/xtermcap.h
+--- xterm-331.orig/xtermcap.h 2013-06-23 17:34:37.000000000 +0200
++++ xterm-331/xtermcap.h 2018-02-07 21:15:52.683355025 +0100
+@@ -60,6 +60,8 @@
+
+ #ifdef HAVE_NCURSES_CURSES_H
+ #include <ncurses/curses.h>
++#elif defined(__midipix__)
++#include <ncurses/ncurses.h>
+ #else
+ #include <curses.h>
+ #endif
+diff -ru xterm-331.orig/xterm.h xterm-331/xterm.h
+--- xterm-331.orig/xterm.h 2017-12-26 12:37:37.000000000 +0100
++++ xterm-331/xterm.h 2018-02-07 21:10:07.983160836 +0100
+@@ -162,7 +162,7 @@
+ #define HAVE_UTMP_UT_XTIME 1
+ #endif
+
+-#if defined(linux) || defined(__CYGWIN__)
++#if defined(linux) || defined(__CYGWIN__) || defined(__midipix__)
+ #define USE_LASTLOG
+ #define HAVE_LASTLOG_H
+ #define USE_STRUCT_LASTLOG
+@@ -199,7 +199,7 @@
+ #define USE_TTY_GROUP
+ #endif
+
+-#if defined(__CYGWIN__)
++#if defined(__CYGWIN__) || defined(__midipix__)
+ #define HAVE_NCURSES_TERM_H 1
+ #endif
+
+diff -ru xterm-331.orig/xterm_io.h xterm-331/xterm_io.h
+--- xterm-331.orig/xterm_io.h 2017-05-18 23:15:14.000000000 +0200
++++ xterm-331/xterm_io.h 2018-02-07 21:06:56.362468943 +0100
+@@ -74,6 +74,10 @@
+ #define USE_TERMIOS
+ #endif
+
++#ifdef __midipix__
++#define USE_POSIX_TERMIOS
++#endif
++
+ #ifdef __SCO__
+ #define USE_TERMIOS
+ #ifndef _SVID3
diff --git a/vars/build.vars b/vars/build.vars
index b99d0b0b..1496088d 100644
--- a/vars/build.vars
+++ b/vars/build.vars
@@ -851,7 +851,7 @@ patch patchutils perl python2 python3 ruby smallbasic tcl";
# Packages list native_packages_etc
NATIVE_PACKAGES_ETC_PACKAGES="
cron hexcurse htop infounzip infozip john less mc mintty nano ncdu
-p7zip procps_ng qpdf rxvt_unicode st tmux vim xeyes xwd";
+p7zip procps_ng qpdf rxvt_unicode st tmux vim xeyes xterm xwd";
: ${PKG_CRON_URLS_GIT:="pkg-cron.git=git://anonscm.debian.org/pkg-cron/pkg-cron.git@debian/3.0pl1-128"};
: ${PKG_CRON_ENV_VARS_EXTRA:="CC=${DEFAULT_TARGET}-gcc:CFLAGS=${NATIVE_PACKAGES_CFLAGS_CONFIGURE} -D__GNU__"};
: ${PKG_CRON_IN_TREE:=1};
@@ -931,6 +931,11 @@ p7zip procps_ng qpdf rxvt_unicode st tmux vim xeyes xwd";
: ${PKG_XEYES_SHA256SUM:=975e98680cd59e1f9439016386609546ed08c284d0f05a95276f96aca6e8a521};
: ${PKG_XEYES_VERSION:=1.1.1};
: ${PKG_XEYES_URL:=https://www.x.org/releases/individual/app/xeyes-${PKG_XEYES_VERSION}.tar.bz2};
+: ${PKG_XTERM_SHA256SUM:=9ae856a30fd93046be93952a6898ba47f6f88ad6a988a7c949c4c80d5199ef10};
+: ${PKG_XTERM_VERSION:=331};
+: ${PKG_XTERM_URL:=ftp://ftp.invisible-island.net/xterm/xterm-${PKG_XTERM_VERSION}.tgz};
+: ${PKG_XTERM_CONFIGURE_ARGS_EXTRA:="--disable-setuid --disable-setgid --disable-full-tgetent --enable-ansi-color --enable-88-color --enable-256-color --enable-broken-osc --enable-broken-st --enable-load-vt-fonts --enable-i18n --enable-doublechars --enable-warnings --enable-tcap-query --enable-logging --enable-dabbrev --enable-freetype --enable-luit --enable-mini-luit --enable-narrowproto --enable-exec-xterm --enable-sixel-graphics --with-utempter"};
+: ${PKG_XTERM_ENV_VARS_EXTRA:=LIBS=-lncurses};
: ${PKG_XWD_SHA256SUM:=3bb396a2268d78de4b1c3e5237a85f7849d3434e87b3cd1f4d57eef614227d79};
: ${PKG_XWD_VERSION:=1.0.6};
: ${PKG_XWD_URL:=https://www.x.org/releases/individual/app/xwd-${PKG_XWD_VERSION}.tar.bz2};