aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2001-12-18 09:52:58 +0800
committerpat <pat@FreeBSD.org>2001-12-18 09:52:58 +0800
commit257fe3a2015421b73050378188d7f596f96519c5 (patch)
treeca9b6e8bc080ee4422786678933c7983c2844c7f /x11
parent7a6ac7524538dd731481de517d3ec695c3f5ef43 (diff)
downloadfreebsd-ports-gnome-257fe3a2015421b73050378188d7f596f96519c5.tar.gz
freebsd-ports-gnome-257fe3a2015421b73050378188d7f596f96519c5.tar.zst
freebsd-ports-gnome-257fe3a2015421b73050378188d7f596f96519c5.zip
Add port misc/wmessage, a WINGs based message viewer similar to xmessage
Diffstat (limited to 'x11')
-rw-r--r--x11/wmessage/Makefile28
-rw-r--r--x11/wmessage/distinfo1
-rw-r--r--x11/wmessage/files/patch-Makefile22
-rw-r--r--x11/wmessage/files/patch-panel.c26
-rw-r--r--x11/wmessage/pkg-comment1
-rw-r--r--x11/wmessage/pkg-descr4
-rw-r--r--x11/wmessage/pkg-plist4
7 files changed, 86 insertions, 0 deletions
diff --git a/x11/wmessage/Makefile b/x11/wmessage/Makefile
new file mode 100644
index 000000000000..cb3a7b2c4881
--- /dev/null
+++ b/x11/wmessage/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: wmessage
+# Date created: Mon Dec 17 20:18:07 EST 2001
+# Whom: Patrick Li <pat@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= wmessage
+PORTVERSION= 0.11
+CATEGORIES= misc windowmaker
+MASTER_SITES= http://members.ozemail.com.au/~crn/wmessage/
+
+MAINTAINER= pat@FreeBSD.org
+
+BUILD_DEPENDS= get-wraster-flags:${PORTSDIR}/x11-wm/windowmaker
+
+USE_X_PREFIX= yes
+USE_XPM= yes
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/wmessage ${PREFIX}/bin
+.ifndef(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README \
+ ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/x11/wmessage/distinfo b/x11/wmessage/distinfo
new file mode 100644
index 000000000000..6f2ef2c1f42c
--- /dev/null
+++ b/x11/wmessage/distinfo
@@ -0,0 +1 @@
+MD5 (wmessage-0.11.tar.gz) = 141cb3d0c2096eb44c2912d13b8cee34
diff --git a/x11/wmessage/files/patch-Makefile b/x11/wmessage/files/patch-Makefile
new file mode 100644
index 000000000000..545573ab7138
--- /dev/null
+++ b/x11/wmessage/files/patch-Makefile
@@ -0,0 +1,22 @@
+--- Makefile.orig Sun Dec 16 19:13:01 2001
++++ Makefile Mon Dec 17 20:23:42 2001
+@@ -1,16 +1,13 @@
+-PREFIX = /usr/local
+
+-CFLAGS = `get-wraster-flags --cflags` -Wall
+-LDFLAGS = `get-wraster-flags --ldflags`
+-LIBS = `get-wraster-flags --libs`
+-CC = gcc
++CFLAGS += `${X11BASE}/bin/get-wraster-flags --cflags` -I${X11BASE}/include/WINGs -Wall
++LDFLAGS = `${X11BASE}/bin/get-wraster-flags --ldflags`
++LIBS = `${X11BASE}/bin/get-wraster-flags --libs`
+
+ all: wmessage
+
+ wmessage: wmessage.o panel.o
+ $(CC) -o wmessage wmessage.o panel.o \
+ $(CFLAGS) $(LDFLAGS) $(LIBS) -lWMaker -lWINGs
+- strip wmessage
+
+ install: wmessage
+ install -c wmessage $(PREFIX)/bin/wmessage
diff --git a/x11/wmessage/files/patch-panel.c b/x11/wmessage/files/patch-panel.c
new file mode 100644
index 000000000000..b903693ca5ad
--- /dev/null
+++ b/x11/wmessage/files/patch-panel.c
@@ -0,0 +1,26 @@
+--- panel.c.orig Sun Dec 16 19:11:01 2001
++++ panel.c Mon Dec 17 20:28:33 2001
+@@ -221,7 +221,7 @@
+ char *data;
+
+ strcpy (tmpname, "/tmp/wmessage.XXXXXX"); /* last 6 chars must be X */
+- mktemp (tmpname);
++ mkstemp (tmpname);
+
+ if (!tmpname)
+ return NULL; /* couldn't generate unique name */
+@@ -344,12 +344,12 @@
+ int i, j=0, lines=0, longest=0;
+
+ msg = readFile (panel, settings);
+- if (msg == NULL)
++ if (msg == NULL) {
+ if ((settings->reload > 0) && (settings->force == True))
+ msg = wstrdup ("Cannot open file -- will keep trying.\n");
+ else
+ return NULL;
+-
++ }
+ for (i = 0; i < strlen (msg); i++) /* count lines */
+ if ((*(msg+i)) == '\n') {
+ lines++;
diff --git a/x11/wmessage/pkg-comment b/x11/wmessage/pkg-comment
new file mode 100644
index 000000000000..fa9a56c8d7b2
--- /dev/null
+++ b/x11/wmessage/pkg-comment
@@ -0,0 +1 @@
+A WINGs based message viewer similar to xmessage
diff --git a/x11/wmessage/pkg-descr b/x11/wmessage/pkg-descr
new file mode 100644
index 000000000000..7dcc15a277a2
--- /dev/null
+++ b/x11/wmessage/pkg-descr
@@ -0,0 +1,4 @@
+wmessage is a WINGs based message viewer similar to xmessage
+
+WWW: http://members.ozemail.com.au/~crn/wmessage/
+Author: Craig Nellist <crn@ozemail.com.au>
diff --git a/x11/wmessage/pkg-plist b/x11/wmessage/pkg-plist
new file mode 100644
index 000000000000..b320f676e803
--- /dev/null
+++ b/x11/wmessage/pkg-plist
@@ -0,0 +1,4 @@
+bin/wmessage
+%%PORTDOCS%%share/doc/wmessage/ChangeLog
+%%PORTDOCS%%share/doc/wmessage/README
+%%PORTDOCS%%@dirrm share/doc/wmessage