From f4bf6e95a934fc91172fe85468ae1841611471de Mon Sep 17 00:00:00 2001 From: Pete Fritchman Date: Thu, 30 May 2002 22:53:34 +0000 Subject: Add wmfortune 0.241, a dockapp that outputs fortune messages. PR: 38134 Submitted by: Alexey Dokuchaev --- games/wmfortune/Makefile | 22 ++++++++++++++ games/wmfortune/distinfo | 1 + games/wmfortune/files/patch-Makefile | 53 +++++++++++++++++++++++++++++++++ games/wmfortune/files/patch-wmfortune.c | 22 ++++++++++++++ games/wmfortune/pkg-comment | 1 + games/wmfortune/pkg-descr | 3 ++ games/wmfortune/pkg-plist | 1 + 7 files changed, 103 insertions(+) create mode 100644 games/wmfortune/Makefile create mode 100644 games/wmfortune/distinfo create mode 100644 games/wmfortune/files/patch-Makefile create mode 100644 games/wmfortune/files/patch-wmfortune.c create mode 100644 games/wmfortune/pkg-comment create mode 100644 games/wmfortune/pkg-descr create mode 100644 games/wmfortune/pkg-plist (limited to 'games/wmfortune') 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 +# +# $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 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 + #include +@@ -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 -- cgit v1.2.3