2006-01-19 21:23:33 +01:00
|
|
|
# $NetBSD: Makefile,v 1.25 2006/01/19 20:23:33 joerg Exp $
|
2001-12-17 15:34:17 +01:00
|
|
|
|
2006-01-19 21:23:33 +01:00
|
|
|
DISTNAME= xterm-208
|
2001-12-17 15:34:17 +01:00
|
|
|
CATEGORIES= x11
|
2004-05-14 13:24:49 +02:00
|
|
|
MASTER_SITES= ftp://invisible-island.net/xterm/
|
2004-12-16 17:25:09 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2001-12-17 15:34:17 +01:00
|
|
|
|
2006-01-03 20:28:40 +01:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-12-17 15:34:17 +01:00
|
|
|
HOMEPAGE= http://dickey.his.com/xterm/xterm.html
|
|
|
|
COMMENT= Latest terminal emulator for the X Window System
|
|
|
|
|
2004-05-14 13:24:49 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-02-16 23:13:47 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
2001-12-17 15:34:17 +01:00
|
|
|
|
2004-05-14 13:34:28 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated. These
changes affect about 1000 files.
The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files. Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred. This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.
The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.
The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc. The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.
The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files. Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories. These files are used as input
to imake since imake can't use stdin for that purpose.
The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead. This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed. Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries. Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 20:02:37 +02:00
|
|
|
.include "../../mk/x11.buildlink3.mk"
|
2004-05-14 13:34:28 +02:00
|
|
|
|
Update to 202, provided by Jeroen Ruigrok van der Werven in private mail.
Add some options to the package.
Changes:
* add extended shift- and control-modifier cursor keys to "xterm+pcfkeys"
terminfo entry to correspond to ncurses 20050430 patch.
* fix a rare case where text would be written with the wrong colors because
output of scrolled text would reset the colors and the new text would be
written with the same colors
* add environment variables $XTERM_SHELL and $XTERM_VERSION
* corrected workaround for background color of menubar, which gave a
too-broad expression, coloring the background of the VT100 widget unless
overridden by another resource setting.
* correct an error in the logic which decides when sched_yield() is run; it
would occasionally hang when contending with other pseudo-terminal
applications such as screen
* improve resource files to show how the menubar and popup menus can be
colored
* modify parsing of OSC (and SOS, etc), strings so their contents are not
interpreted as UTF-8. This allows non-ASCII title strings to be set,
provided that the window manager complies (report by Thomas Wolff).
* improved some of the built-in line-drawing glyphs.
* correct color of "box" character drawn for line-drawing glyph 1 (report
by Nicolas George).
* improve behavior when switching to UTF-8 mode after startup so xterm will
check if the current fonts are already wide (ISO10646-1). If they are not,
xterm will use the utf8Fonts subresource to load appropriate fonts
* modify logic for setting title-string so it applies to the current widget
rather than the vt100 widget.
* correct computation of width for wide characters with the invisible
attribute
* modify interaction between +u8 and locale resource to allow the
command-line option to override the resource
* ignore error in the I/O initialization that tries to set the tty to 7-bit
input for the case where eightBitInput resource is false
* modify command-processing to accept an optional parameter that tells
xterm which shell program to use
* correct logic of ReallocateBufOffsets() which did not copy the content of
the old screen buffer to the proper location, making a repaint clear
after switching to wide-character mode
* implement the remaining pieces to make xterm allocate cells for
wide-characters when the "UTF-8" menu entry is selected. Also, load the
UTF-8 font when that menu entry is selected, or the escape sequence for
UTF-8 mode is received
2005-06-04 19:42:31 +02:00
|
|
|
.if exists(/usr/include/wchar.h)
|
|
|
|
CONFIGURE_ARGS+= --enable-wide-chars
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
2004-05-14 13:34:28 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
2001-12-17 15:34:17 +01:00
|
|
|
INSTALL_FILE= ${WRKDIR}/INSTALL
|
|
|
|
DEINSTALL_FILE= ${INSTALL_FILE}
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@${SED} -e 's#@MV@#${MV}#g' \
|
2001-12-17 15:47:02 +01:00
|
|
|
-e 's#@LOCALBASE@#${LOCALBASE}#g' \
|
|
|
|
-e 's#@PREFIX@#${PREFIX}#g' \
|
2005-06-12 07:06:11 +02:00
|
|
|
${PKGDIR}/INSTALL.openwin >${INSTALL_FILE}
|
2001-12-17 15:34:17 +01:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
post-install:
|
2001-12-17 15:47:02 +01:00
|
|
|
${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
|
2004-05-14 13:34:28 +02:00
|
|
|
.endif
|
2001-12-17 15:34:17 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|