[deps]
libx11
libxaw
libxft
ncurses

[main]
filesize=958656
sha512=c13d618e2849460747e59c5cde74d0554b283e906452d356f14a3c8d31db1ad63b5ebbcd1afc8515f48c9bb6490eb92f8b31383c27dadb7ae9fd833e23bca66c

[mirrors]
ftp://invisible-island.net/xterm/xterm-269.tgz

[build]
# the configure script fails to pass all required -l dependencies to some test
# for some reason ld fails to find them in /lib, unless we use -rpath= or this
export LD_RUN_PATH=$R/lib

# Gleiches mit gleichem vergelten.
CFLAGS="-include termcap.h -g -D__GNU__ -D__GLIBC__=2 -D__GLIBC_MINOR__=10 -D_POSIX_SOURCE -D_GNU_SOURCE" ./configure -C \
  --prefix=/ --mandir=/share/man --enable-256-color ac_cv_header_lastlog_h=no cf_cv_path_lastlog=no || exit 1
cat <<EOF >>ptyx.h
#ifndef HACKY_HACKY_GETPT 
#define HACKY_HACKY_GETPT
static inline int getpt() { return open("/dev/ptmx",O_RDWR|O_NOCTTY); }
#endif
EOF
make -j$MAKE_THREADS  || exit 1
make DESTDIR="$butch_install_dir" install || exit 1
