aboutsummaryrefslogtreecommitdiff
path: root/x11/rxvt-unicode
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2007-01-05 13:35:15 +0000
committerThierry Thomas <thierry@FreeBSD.org>2007-01-05 13:35:15 +0000
commitebc7bde4333137417b5ff606215bf709cef8abb7 (patch)
treeb451062c4e242fefe65832fd4bdb018e3e93ad5d /x11/rxvt-unicode
parentc475e8072aaeaf4eac3de5d5d46f2f685d3d5282 (diff)
downloadports-ebc7bde4333137417b5ff606215bf709cef8abb7.tar.gz
ports-ebc7bde4333137417b5ff606215bf709cef8abb7.zip
Register rxvt-unicode in the terminfo database.
Note: $TERM still defined as rxvt ATM.
Notes
Notes: svn path=/head/; revision=181511
Diffstat (limited to 'x11/rxvt-unicode')
-rw-r--r--x11/rxvt-unicode/Makefile16
-rw-r--r--x11/rxvt-unicode/pkg-plist4
2 files changed, 20 insertions, 0 deletions
diff --git a/x11/rxvt-unicode/Makefile b/x11/rxvt-unicode/Makefile
index 52f2584f61e4..3b2780860532 100644
--- a/x11/rxvt-unicode/Makefile
+++ b/x11/rxvt-unicode/Makefile
@@ -7,6 +7,7 @@
PORTNAME= rxvt-unicode
PORTVERSION= 8.1
+PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://dist.schmorp.de/rxvt-unicode/%SUBDIR%/
MASTER_SITE_SUBDIR= . Attic
@@ -119,6 +120,16 @@ CONFIGURE_ARGS+= --disable-smart-resize
CONFIGURE_ARGS+= --enable-smart-resize
.endif
+.if defined(WITHOUT_TERMINFO)
+CONFIGURE_ARGS+= --without-terminfo
+PLIST_SUB+= TERMINFO="@comment "
+.else
+BUILD_DEPENDS+= tic:${PORTSDIR}/devel/ncurses
+CONFIGURE_ARGS+= --with-terminfo=${LOCALBASE}share/misc/terminfo.db
+RUN_DEPENDS+= ${LOCALBASE}/share/misc/terminfo.db:${PORTSDIR}/devel/ncurses
+PLIST_SUB+= TERMINFO=""
+.endif
+
CONFIGURE_ENV+= LIBS="-lutil"
.include <bsd.port.pre.mk>
@@ -169,6 +180,7 @@ pre-everything::
@${ECHO_MSG} "WITHOUT_MOUSEWHEEL disable support for scrolling via mouse wheel"
@${ECHO_MSG} "WITHOUT_SMART_RESIZE disable smart growth/shrink behaviour"
@${ECHO_MSG} "WITHOUT_IMLOCALE_FIX disable imlocale encoding conversion fix"
+ @${ECHO_MSG} "WITHOUT_TERMINFO don't register urxvt in the terminfo database"
@${ECHO_MSG}
.ifndef(WITH_ENCODING)
@${ECHO_MSG} "==> You can compile in support for additional codeset groups by setting the WITH_ENCODING variable"
@@ -195,6 +207,10 @@ pre-configure:
post-install:
${CHMOD} 4711 ${PREFIX}/bin/urxvt ${PREFIX}/bin/urxvtd
+.if !defined(WITHOUT_TERMINFO)
+ ${INSTALL_DATA} ${WRKSRC}/doc/etc/rxvt-unicode.terminfo \
+ ${LOCALBASE}/share/misc/
+.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
@${CP} ${PORTDOCS1:S|^|${WRKSRC}/|} ${WRKSRC}/doc
diff --git a/x11/rxvt-unicode/pkg-plist b/x11/rxvt-unicode/pkg-plist
index 8994856ef870..6d1140ae618e 100644
--- a/x11/rxvt-unicode/pkg-plist
+++ b/x11/rxvt-unicode/pkg-plist
@@ -22,3 +22,7 @@ bin/urxvtd
%%PERL%%lib/urxvt/urxvt.pm
%%PERL%%@dirrm lib/urxvt/perl
%%PERL%%@dirrm lib/urxvt
+%%TERMINFO%%@cwd %%LOCALBASE%%
+%%TERMINFO%%share/misc/rxvt-unicode.terminfo
+%%TERMINFO%%@exec tic %%LOCALBASE%%/share/misc/rxvt-unicode.terminfo
+@comment No unexec tic available