x11/mrxvt: Refactor

- Add LICENSE GPLv2
- Change to USES=localbase
- Add description for JAPANESE OPTION
- Convert post-install target to @ keywork
- make patches make-makepatch compatible
- Take MAINTAINERSHIP
This commit is contained in:
Muhammad Moinur Rahman 2023-02-12 10:48:49 -06:00
parent 0a9cb44345
commit eacbf30357
5 changed files with 26 additions and 25 deletions

View file

@ -4,27 +4,23 @@ PORTREVISION= 10
CATEGORIES= x11
MASTER_SITES= SF/materm/${PORTNAME}%20source/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= bofh@FreeBSD.org
COMMENT= Tabbed version of rxvt
WWW= http://materm.sourceforge.net/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png
CONFLICTS= mrxvt-0.5.*
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-lastlog --disable-wtmp
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
USES= cpe jpeg tar:tgz xorg
USES= cpe jpeg localbase tar:tgz xorg
CPE_VENDOR= ${PORTNAME}_project
USE_XORG= x11
OPTIONS_DEFINE= DOCS JAPANESE XFT
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-lastlog --disable-wtmp
JAPANESE_CONFIGURE_ON= --enable-xim --enable-cjk --with-encoding=eucj
XFT_LIB_DEPENDS= libXft.so:x11-fonts/libXft
XFT_CONFIGURE_ENABLE= xft
CONFLICTS= mrxvt-0.5.*
PORTDOCS= TIPS \
README.greek \
@ -35,6 +31,14 @@ PORTDOCS= TIPS \
mrxvt.vbs \
mrxvtset.pl
OPTIONS_DEFINE= DOCS JAPANESE XFT
JAPANESE_DESC= Japanese Language support
JAPANESE_CONFIGURE_ON= --enable-xim --enable-cjk --with-encoding=eucj
XFT_LIB_DEPENDS= libXft.so:x11-fonts/libXft
XFT_CONFIGURE_ENABLE= xft
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MXFT} && ${PORT_OPTIONS:MJAPANESE}
@ -49,7 +53,4 @@ CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv_open=no
CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv_open=yes
.endif
post-install:
${CHMOD} 4511 ${STAGEDIR}${PREFIX}/bin/mrxvt
.include <bsd.port.post.mk>

View file

@ -1,6 +1,6 @@
--- src/logging.c.orig 2010-01-15 17:27:05.000000000 +0100
+++ src/logging.c 2010-01-15 17:29:39.000000000 +0100
@@ -114,14 +114,22 @@
--- src/logging.c.orig 2004-11-11 00:20:28 UTC
+++ src/logging.c
@@ -114,14 +114,22 @@ rxvt_makeutent(rxvt_t *r, int page, const char *pty, c
if (!STRNCMP(pty, "/dev/", 5))
pty += 5; /* skip /dev/ prefix */

View file

@ -1,6 +1,6 @@
--- src/main.c.orig Fri Jul 22 19:42:38 2005
+++ src/main.c Fri Jul 22 19:43:03 2005
@@ -1568,7 +1568,7 @@
--- src/main.c.orig 2005-08-31 05:30:41 UTC
+++ src/main.c
@@ -1568,7 +1568,7 @@ rxvt_set_utf8_property (rxvt_t* r, Atom prop, Window w
void
rxvt_set_utf8_property (rxvt_t* r, Atom prop, Window win, const char* str)
{

View file

@ -1,5 +1,5 @@
--- src/strings.c.orig Fri Jul 22 19:49:43 2005
+++ src/strings.c Fri Jul 22 19:50:40 2005
--- src/strings.c.orig 2005-03-21 00:42:08 UTC
+++ src/strings.c
@@ -44,6 +44,7 @@
#ifdef HAVE_WCHAR_H
@ -8,7 +8,7 @@
char*
rxvt_wcstombs (const wchar_t* str, int len)
{
@@ -70,6 +71,7 @@
@@ -70,6 +71,7 @@ rxvt_wcstombs (const wchar_t* str, int len)
return r;
}

View file

@ -1,4 +1,4 @@
bin/mrxvt
@(,,4511) bin/mrxvt
man/man1/mrxvt.1.gz
share/pixmaps/mrxvt-csh.png
share/pixmaps/mrxvt-csh.xpm