Enable multibyte character encodings at configure time, with default to

off. Add a resource file to document how it can be enabled. Add a message
to point at the resource file.

Unfortunately the same method does not work for greek keyboard support,
as the resource handling for this is documented but not implemented in
this rxvt version.

Fixes PR pkg/13273, as good as we can for this rxvt version.
This commit is contained in:
martin 2001-08-06 06:09:55 +00:00
parent ef240f0bb6
commit c1854b42fc
3 changed files with 64 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.25 2001/08/06 03:37:45 hubertf Exp $
# $NetBSD: Makefile,v 1.26 2001/08/06 06:09:55 martin Exp $
# FreeBSD Id: Makefile,v 1.13 1997/03/07 12:29:49 obrien Exp
#
@ -16,6 +16,7 @@ COMMENT= Low memory usage xterm replacement that supports color
USE_BUILDLINK_ONLY= YES
USE_X11BASE= YES
GNU_CONFIGURE= YES
MESSAGE_SUBST+= X11BASE="${X11BASE}"
CONFIGURE_ARGS+= --enable-utmp \
--enable-wtmp \
@ -29,9 +30,27 @@ CONFIGURE_ARGS+= --enable-utmp \
--enable-xgetdefault \
--enable-frills \
--enable-keepscrolling \
--enable-mousewheel
--enable-mousewheel \
--enable-languages \
--with-encoding=noenc
# Note: greek support could not be enabled, as the resource file handling
# to disable it at runtime is documented but not implemented in the current
# version. See files/Rxvt and check if it works for newer versions. When
# enabling it, please fix pkg/MESSAGE as well.
# --enable-greek
CPPFLAGS+= -I${BUILDLINK_DIR}/include/X11
post-patch:
${MV} ${WRKSRC}/src/feature.h ${WRKSRC}/src/feature.h.orig
${SED} < ${WRKSRC}/src/feature.h.orig > ${WRKSRC}/src/feature.h \
-e "s:/usr/lib/X11/app-defaults:${X11BASE}/lib/X11/app-defaults:"
pre-install:
if [ ! -f ${X11BASE}/lib/X11/app-defaults/Rxvt ]; then \
${INSTALL_DATA} ${FILESDIR}/Rxvt ${X11BASE}/lib/X11/app-defaults; \
fi
.include "../../graphics/xpm/buildlink.mk"
.include "../../mk/bsd.pkg.mk"

30
x11/rxvt/files/Rxvt Normal file
View file

@ -0,0 +1,30 @@
! $NetBSD: Rxvt,v 1.1 2001/08/06 06:09:56 martin Exp $
!
! This is a default Rxvt app defaults file that just disables greek keyboard
! support and multibyte character encodings. We build rxvt with support
! for these, but since the current rxvt version does not properly switch
! these features on or off at runtime, we controll them via resources.
!
! To enable one of these features, just comment the current active one
! and uncomment the one you prefere.
! ---- NOTE -------------------
! Greek keyboard support is not compiled into rxvt, as the following
! resource is documented but not implemented in the current version.
! ---- NOTE -------------------
! greek keyboard support:
! default:
! Rxvt.greek_keyboard: iso
! Disable greek keyboard support (by disabling the toggle key):
! Rxvt.greektoggle_key: VoidSymbol
! Enable default greek keyboard support: use ModeSwitch to switch
! into greek input mode:
! Rxvt.greektoggle_key: ModeSwitch
! Select multibyte character sheme
Rxvt.multichar_encoding: noenc
! Rxvt.multichar_encoding: eucj
! Rxvt.multichar_encoding: sjis
! Rxvt.multichar_encoding: big5
! Rxvt.multichar_encoding: gb
! Rxvt.multichar_encoding: kr

13
x11/rxvt/pkg/MESSAGE Normal file
View file

@ -0,0 +1,13 @@
======================================================================
$NetBSD: MESSAGE,v 1.1 2001/08/06 06:09:56 martin Exp $
The rxvt binary is able to use greek keyboard extensions and
multibyte character encodings. Due to errors in the current
version, the greek keyboard support is not compiled into the
binary (it can not be disabled at runtime and causes problems
for users in other locales).
The multibyte character encoding support is compiled in, but
by default disabled. To enable it, please edit the file
${X11BASE}/lib/X11/app-defaults/Rxvt.
======================================================================