aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2002-05-30 22:53:34 +0000
committerPete Fritchman <petef@FreeBSD.org>2002-05-30 22:53:34 +0000
commitf4bf6e95a934fc91172fe85468ae1841611471de (patch)
tree7d0537ea2f8af3b0de4b7caebf3f30895ce41c1c
parentb2b0846bf2ed19d08bfdec4c0ab408953d60eb6e (diff)
downloadports-f4bf6e95a934fc91172fe85468ae1841611471de.tar.gz
ports-f4bf6e95a934fc91172fe85468ae1841611471de.zip
Notes
-rw-r--r--games/Makefile1
-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
8 files changed, 104 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index ee152da23be5..52b2f0232f10 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -294,6 +294,7 @@
SUBDIR += vamos
SUBDIR += virt
SUBDIR += wmeyes
+ SUBDIR += wmfortune
SUBDIR += wmminichess
SUBDIR += wmshuffle
SUBDIR += wmtictactoe
diff --git a/games/wmfortune/Makefile b/games/wmfortune/Makefile
new file mode 100644
index 000000000000..223e71051910
--- /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 000000000000..1f17bcd6511b
--- /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 000000000000..b90d32a36b73
--- /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 000000000000..7d3c314fd8a2
--- /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 000000000000..7675aff0816c
--- /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 000000000000..4712342fe095
--- /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 000000000000..772f7be68905
--- /dev/null
+++ b/games/wmfortune/pkg-plist
@@ -0,0 +1 @@
+bin/wmfortune