Skip to content

Commit

Permalink
x11/mrxvt: Refactor
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
5u623l20 committed Feb 12, 2023
1 parent 0a9cb44 commit eacbf30
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 25 deletions.
31 changes: 16 additions & 15 deletions x11/mrxvt/Makefile
Expand Up @@ -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/

LIB_DEPENDS= libpng.so:graphics/png
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

CONFLICTS= mrxvt-0.5.*
LIB_DEPENDS= libpng.so:graphics/png

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 \
Expand All @@ -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}
Expand All @@ -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>
6 changes: 3 additions & 3 deletions x11/mrxvt/files/patch-src-logging.c
@@ -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 */

Expand Down
6 changes: 3 additions & 3 deletions x11/mrxvt/files/patch-src-main.c
@@ -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)
{
Expand Down
6 changes: 3 additions & 3 deletions x11/mrxvt/files/patch-src-strings.c
@@ -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
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion x11/mrxvt/pkg-plist
@@ -1,4 +1,4 @@
bin/mrxvt
@(,,4511) bin/mrxvt
man/man1/mrxvt.1.gz
share/pixmaps/mrxvt-csh.png
share/pixmaps/mrxvt-csh.xpm
Expand Down

0 comments on commit eacbf30

Please sign in to comment.