rxvt-unicode ports tweaks. add flavours:

(default package) = upstream's defaults plus enable 256-colour support

"everything" = upstream's "--enable-everything" build

"small" = reduce size/dep's - starting with upstream's "--disable-everything"
but --enable-frills is added to avoid a build failure

the default package no longer includes "--enable-unicode3" which
upstream recommends not to use "unless you really need a lot of non-BMP
characters" .. "can store and display unicode characters above 65535
even without this flag, but the number of such characters is limited to
a few thousand", if you need that then switch to "everything".

also: update DESCR, take maintainer
This commit is contained in:
sthen 2022-05-16 09:43:48 +00:00
parent 5e79726a90
commit c4908bd3d8
5 changed files with 105 additions and 72 deletions

View File

@ -273,6 +273,8 @@
SUBDIR += ruby-tk,ruby30
SUBDIR += ruby-tk,ruby31
SUBDIR += rxvt-unicode
SUBDIR += rxvt-unicode,small
SUBDIR += rxvt-unicode,everything
SUBDIR += sakura
SUBDIR += sawfish
SUBDIR += sclock

View File

@ -2,42 +2,61 @@ COMMENT = clone of rxvt with Unicode and Xft support
DISTNAME = rxvt-unicode-9.30
CATEGORIES = x11
FIX_EXTRACT_PERMISSIONS = Yes
REVISION = 0
EXTRACT_SUFX = .tar.bz2
MASTER_SITES = http://dist.schmorp.de/rxvt-unicode/ \
http://dist.schmorp.de/rxvt-unicode/Attic/
HOMEPAGE = http://software.schmorp.de/pkg/rxvt-unicode.html
MAINTAINER = Stuart Henderson <stu.ports@spacehopper.org>
FLAVORS = everything small
FLAVOR ?=
# GPLv3
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} X11 Xft Xmu Xrender Xt c fontconfig
WANTLIB += freetype gdk_pixbuf-2.0 glib-2.0 gobject-2.0 intl m
WANTLIB += perl ptytty startup-notification-1 z
WANTLIB += ${COMPILER_LIBCXX} X11 Xmu Xt c m ptytty
COMPILER = base-clang ports-gcc base-gcc
DEBUG_PACKAGES = ${BUILD_PACKAGES}
LIB_DEPENDS = devel/gettext,-runtime \
CONFIGURE_STYLE = autoconf
AUTOCONF_VERSION = 2.71
LIB_DEPENDS = sysutils/libptytty
# update DESCR if changing build options
.if ${FLAVOR} == small
CONFIGURE_ARGS += --disable-everything \
--enable-frills
.elif ${FLAVOR} == everything
CONFIGURE_ARGS += --enable-everything
.elif empty(FLAVOR)
CONFIGURE_ARGS += --enable-256-color
.else
ERRORS += "Fatal: invalid FLAVOR combination"
.endif
.if !${FLAVOR:Msmall}
LIB_DEPENDS += devel/gettext,-runtime \
devel/startup-notification \
graphics/gdk-pixbuf2 \
sysutils/libptytty
graphics/gdk-pixbuf2
WANTLIB += Xft Xrender fontconfig freetype gdk_pixbuf-2.0 glib-2.0
WANTLIB += gobject-2.0 intl perl startup-notification-1 z
.endif
FAKE_FLAGS = INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}"
CONFIGURE_STYLE = autoconf
AUTOCONF_VERSION = 2.71
CONFIGURE_ARGS = --enable-256-color \
--enable-perl \
--enable-pixbuf \
--enable-startup-notification \
--enable-unicode3 \
--enable-utmp \
--enable-wtmp
MAKE_ENV += TERMINFO=${WRKINST}${PREFIX}/share/terminfo
CONFIGURE_ENV += CPPFLAGS="-I${X11BASE}/include" \
pt_cv_tty_group=yes
MAKE_ENV += TERMINFO=${WRKINST}${PREFIX}/share/terminfo
.include <bsd.port.mk>

View File

@ -1,4 +1,15 @@
rxvt-unicode is a clone of the well known terminal emulator rxvt,
modified to store text in Unicode (either UCS-2 or UCS-4) and to
use locale-correct input and output. It also supports mixing multiple
fonts at the same time, including Xft fonts.
rxvt-unicode is a customizable terminal emulator forked from rxvt.
Features of rxvt-unicode include international language support through
Unicode, transparency, the ability to display multiple font types and
support for Perl extensions.
The standard package mostly follows upstream's default build options,
with only 256-colour support added.
Other flavours are available:
everything - built with "--enable-everything" to enable all
features, including some heavier-weight ones
small - built with only limited options (to reduce size
and dependencies)

View File

@ -0,0 +1,52 @@
lib/urxvt/
lib/urxvt/perl/
lib/urxvt/perl/background
lib/urxvt/perl/bell-command
lib/urxvt/perl/block-graphics-to-ascii
lib/urxvt/perl/clipboard-osc
lib/urxvt/perl/confirm-paste
lib/urxvt/perl/digital-clock
lib/urxvt/perl/eval
lib/urxvt/perl/example-refresh-hooks
lib/urxvt/perl/keysym-list
lib/urxvt/perl/kuake
lib/urxvt/perl/matcher
lib/urxvt/perl/option-popup
lib/urxvt/perl/overlay-osc
lib/urxvt/perl/readline
lib/urxvt/perl/remote-clipboard
lib/urxvt/perl/searchable-scrollback
lib/urxvt/perl/selection
lib/urxvt/perl/selection-autotransform
lib/urxvt/perl/selection-pastebin
lib/urxvt/perl/selection-popup
lib/urxvt/perl/selection-to-clipboard
lib/urxvt/perl/tabbed
lib/urxvt/perl/urxvt-popup
lib/urxvt/perl/xim-onthespot
lib/urxvt/urxvt.pm
@man man/man1/urxvt-background.1
@man man/man1/urxvt-bell-command.1
@man man/man1/urxvt-block-graphics-to-ascii.1
@man man/man1/urxvt-clipboard-osc.1
@man man/man1/urxvt-confirm-paste.1
@man man/man1/urxvt-digital-clock.1
@man man/man1/urxvt-eval.1
@man man/man1/urxvt-example-refresh-hooks.1
@man man/man1/urxvt-extensions.1
@man man/man1/urxvt-keysym-list.1
@man man/man1/urxvt-kuake.1
@man man/man1/urxvt-matcher.1
@man man/man1/urxvt-option-popup.1
@man man/man1/urxvt-overlay-osc.1
@man man/man1/urxvt-readline.1
@man man/man1/urxvt-remote-clipboard.1
@man man/man1/urxvt-searchable-scrollback.1
@man man/man1/urxvt-selection-autotransform.1
@man man/man1/urxvt-selection-pastebin.1
@man man/man1/urxvt-selection-popup.1
@man man/man1/urxvt-selection-to-clipboard.1
@man man/man1/urxvt-selection.1
@man man/man1/urxvt-tabbed.1
@man man/man1/urxvt-xim-onthespot.1
@man man/man3/urxvtperl.3

View File

@ -10,65 +10,14 @@
@bin bin/urxvtd
@mode
@group
lib/urxvt/
lib/urxvt/perl/
lib/urxvt/perl/background
lib/urxvt/perl/bell-command
lib/urxvt/perl/block-graphics-to-ascii
lib/urxvt/perl/clipboard-osc
lib/urxvt/perl/confirm-paste
lib/urxvt/perl/digital-clock
lib/urxvt/perl/eval
lib/urxvt/perl/example-refresh-hooks
lib/urxvt/perl/keysym-list
lib/urxvt/perl/kuake
lib/urxvt/perl/matcher
lib/urxvt/perl/option-popup
lib/urxvt/perl/overlay-osc
lib/urxvt/perl/readline
lib/urxvt/perl/remote-clipboard
lib/urxvt/perl/searchable-scrollback
lib/urxvt/perl/selection
lib/urxvt/perl/selection-autotransform
lib/urxvt/perl/selection-pastebin
lib/urxvt/perl/selection-popup
lib/urxvt/perl/selection-to-clipboard
lib/urxvt/perl/tabbed
lib/urxvt/perl/urxvt-popup
lib/urxvt/perl/xim-onthespot
lib/urxvt/urxvt.pm
@man man/man1/urclock.1
@man man/man1/urxvt-background.1
@man man/man1/urxvt-bell-command.1
@man man/man1/urxvt-block-graphics-to-ascii.1
@man man/man1/urxvt-clipboard-osc.1
@man man/man1/urxvt-confirm-paste.1
@man man/man1/urxvt-digital-clock.1
@man man/man1/urxvt-eval.1
@man man/man1/urxvt-example-refresh-hooks.1
@man man/man1/urxvt-extensions.1
@man man/man1/urxvt-keysym-list.1
@man man/man1/urxvt-kuake.1
@man man/man1/urxvt-matcher.1
@man man/man1/urxvt-option-popup.1
@man man/man1/urxvt-overlay-osc.1
@man man/man1/urxvt-readline.1
@man man/man1/urxvt-remote-clipboard.1
@man man/man1/urxvt-searchable-scrollback.1
@man man/man1/urxvt-selection-autotransform.1
@man man/man1/urxvt-selection-pastebin.1
@man man/man1/urxvt-selection-popup.1
@man man/man1/urxvt-selection-to-clipboard.1
@man man/man1/urxvt-selection.1
@man man/man1/urxvt-tabbed.1
@man man/man1/urxvt-xim-onthespot.1
@man man/man1/urxvt.1
@man man/man1/urxvtc.1
@man man/man1/urxvtd.1
@man man/man3/urxvtperl.3
@man man/man7/urxvt.7
share/doc/pkg-readmes/${PKGSTEM}
share/terminfo/
share/terminfo/r/
share/terminfo/r/rxvt-unicode
share/terminfo/r/rxvt-unicode-256color
!%%small%%