aboutsummaryrefslogtreecommitdiffstats
path: root/games/wmfortune
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2002-05-31 06:53:34 +0800
committerpetef <petef@FreeBSD.org>2002-05-31 06:53:34 +0800
commitdfed89d96194d816e39402fcff1a7c3fe70976cf (patch)
treed640580a8fe6841dfed07e4f0fd33509e8f9be20 /games/wmfortune
parentb85c83141e3cbe26f72fd44edff65470a5607548 (diff)
downloadfreebsd-ports-graphics-dfed89d96194d816e39402fcff1a7c3fe70976cf.tar.gz
freebsd-ports-graphics-dfed89d96194d816e39402fcff1a7c3fe70976cf.tar.zst
freebsd-ports-graphics-dfed89d96194d816e39402fcff1a7c3fe70976cf.zip
Add wmfortune 0.241, a dockapp that outputs fortune messages.
PR: 38134 Submitted by: Alexey Dokuchaev <danfe@regency.nsu.ru>
Diffstat (limited to 'games/wmfortune')
-rw-r--r--games/wmfortune/Makefile22
-rw-r--r--games/wmfortune/distinfo1
-rw-r--r--games/wmfortune/files/patch-Makefile53
-rw-r--r--games/wmfortune/files/patch-wmfortune.c22
-rw-r--r--games/wmfortune/pkg-comment1
-rw-r--r--games/wmfortune/pkg-descr3
-rw-r--r--games/wmfortune/pkg-plist1
7 files changed, 103 insertions, 0 deletions
diff --git a/games/wmfortune/Makefile b/games/wmfortune/Makefile
new file mode 100644
index 00000000000..223e7105191
--- /dev/null
+++ b/games/wmfortune/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: wmfortune
+# Date created: 16 May 2002
+# Whom: Alexey Dokuchaev <danfe@regency.nsu.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= wmfortune
+PORTVERSION= 0.241
+CATEGORIES= games windowmaker afterstep
+MASTER_SITES= http://www.01.246.ne.jp/~m-sugano/
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_GMAKE= yes
+USE_XPM= yes
+USE_X_PREFIX= yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/wmfortune ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/games/wmfortune/distinfo b/games/wmfortune/distinfo
new file mode 100644
index 00000000000..1f17bcd6511
--- /dev/null
+++ b/games/wmfortune/distinfo
@@ -0,0 +1 @@
+MD5 (wmfortune-0.241.tar.gz) = fa8db5d9a46d9afe7757f498c781e8c9
diff --git a/games/wmfortune/files/patch-Makefile b/games/wmfortune/files/patch-Makefile
new file mode 100644
index 00000000000..b90d32a36b7
--- /dev/null
+++ b/games/wmfortune/files/patch-Makefile
@@ -0,0 +1,53 @@
+$FreeBSD$
+
+--- Makefile.orig Thu May 16 10:51:45 2002
++++ Makefile Thu May 16 10:53:56 2002
+@@ -1,35 +1,18 @@
+-### Edit here as you like :)
+-BINDIR = /usr/local/bin
+-############################
++CC ?= gcc
++CFLAGS += -c -Wall
++INCDIR = -I${X11BASE}/include -I/usr/local/include
++LIBDIR = -L${X11BASE}/lib
++LIBS = -lXpm -lXext -lX11
++OBJS = wmfortune.o dockapp.o
+
+-DEST = wmfortune
++.c.o:
++ ${CC} ${CFLAGS} ${INCDIR} $< -o $*.o
+
+-# Programs used to move the binary to the proper place.
+-INSTALL = /usr/bin/install
+-INSTALL_PROGRAM = ${INSTALL} -m 755
+-UNINSTALL_PROGRAM = rm -f
++wmfortune: $(OBJS)
++ ${CC} -o wmfortune $^ ${LIBDIR} ${LIBS}
+
+-CC = gcc
+-OPTIMIZE = -O2
+-XLIBDIR = /usr/X11R6/lib
+-#XLIB = -ldockapp -lXpm -lXext -lX11
+-XLIB = -lXpm -lXext -lX11
+-OBJ = wmfortune.o dockapp.o
+-
+-$(DEST) : $(OBJ)
+- $(CC) $(OBJ) -L$(XLIBDIR) $(XLIB) -o $(DEST)
+-
+-dockapp.o: dockapp.c
+- $(CC) $(OPTIMIZE) $< -c
+-
+-wmfortune.o: wmfortune.c
+- $(CC) $(OPTIMIZE) $< -c
+-
+-install:
+- $(INSTALL_PROGRAM) ./$(DEST) $(BINDIR)/$(DEST)
+-
+-uninstall:
+- $(UNINSTALL_PROGRAM) $(BINDIR)/$(DEST)
++all: wmfortune
+
+ clean:
+- rm -rf $(DEST) $(OBJ) *~
++ rm -f *.o
++ rm -f wmfortune core
diff --git a/games/wmfortune/files/patch-wmfortune.c b/games/wmfortune/files/patch-wmfortune.c
new file mode 100644
index 00000000000..7d3c314fd8a
--- /dev/null
+++ b/games/wmfortune/files/patch-wmfortune.c
@@ -0,0 +1,22 @@
+$FreeBSD$
+
+--- wmfortune.c.orig Thu May 16 11:01:43 2002
++++ wmfortune.c Thu May 16 11:02:18 2002
+@@ -21,7 +21,7 @@
+ *
+ */
+ #define BUFF_SIZE 1024
+-#define SCROLL_DEFAULT_SPEED 1000
++#define SCROLL_DEFAULT_SPEED 10000
+
+ #include <unistd.h>
+ #include <stdio.h>
+@@ -110,7 +110,7 @@
+
+ static DAProgramOption options[] = {
+ {"-d", "--displayname", "display to use.", DOString, False, {&displayName}},
+- {"-s", "--speed", "scrolling speed. (default 1000 dot/ms)", DOInteger, False, {&speed}},
++ {"-s", "--speed", "scrolling speed. (default 10000 dot/ms)", DOInteger, False, {&speed}},
+ };
+
+ static void
diff --git a/games/wmfortune/pkg-comment b/games/wmfortune/pkg-comment
new file mode 100644
index 00000000000..7675aff0816
--- /dev/null
+++ b/games/wmfortune/pkg-comment
@@ -0,0 +1 @@
+A dockapp that outputs fortune messages
diff --git a/games/wmfortune/pkg-descr b/games/wmfortune/pkg-descr
new file mode 100644
index 00000000000..4712342fe09
--- /dev/null
+++ b/games/wmfortune/pkg-descr
@@ -0,0 +1,3 @@
+WMFortune outputs fortune messages, just as its name says.
+
+WWW: http://www.01.246.ne.jp/~m-sugano/apps.html
diff --git a/games/wmfortune/pkg-plist b/games/wmfortune/pkg-plist
new file mode 100644
index 00000000000..772f7be6890
--- /dev/null
+++ b/games/wmfortune/pkg-plist
@@ -0,0 +1 @@
+bin/wmfortune