summaryrefslogtreecommitdiff
path: root/x11/rxvt/Makefile
diff options
context:
space:
mode:
authormartin <martin@pkgsrc.org>2001-08-06 06:09:55 +0000
committermartin <martin@pkgsrc.org>2001-08-06 06:09:55 +0000
commitc1854b42fc9440ffc7546c5265c19ce470191cd0 (patch)
treed99fcdb3083c7f136d89242eca0097da4048b486 /x11/rxvt/Makefile
parentef240f0bb68d1d593d81333d64fdf0b3ff78546b (diff)
downloadpkgsrc-c1854b42fc9440ffc7546c5265c19ce470191cd0.tar.gz
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.
Diffstat (limited to 'x11/rxvt/Makefile')
-rw-r--r--x11/rxvt/Makefile23
1 files changed, 21 insertions, 2 deletions
diff --git a/x11/rxvt/Makefile b/x11/rxvt/Makefile
index a2477bb2309..950cf2ddb3e 100644
--- a/x11/rxvt/Makefile
+++ b/x11/rxvt/Makefile
@@ -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"