aboutsummaryrefslogtreecommitdiff
path: root/x11/xfishtank
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1997-06-17 06:47:57 +0000
committerThomas Gellekum <tg@FreeBSD.org>1997-06-17 06:47:57 +0000
commitad56ea0707283146fecb442a1d510b997099470a (patch)
tree5410dbc09e757cda0c0f879cc3b96a66158e8d46 /x11/xfishtank
parent59f83054b782a43dfb5b95eb9765238f6ce1c144 (diff)
downloadports-ad56ea0707283146fecb442a1d510b997099470a.tar.gz
ports-ad56ea0707283146fecb442a1d510b997099470a.zip
Notes
Diffstat (limited to 'x11/xfishtank')
-rw-r--r--x11/xfishtank/Makefile21
-rw-r--r--x11/xfishtank/distinfo1
-rw-r--r--x11/xfishtank/files/patch-aa95
-rw-r--r--x11/xfishtank/files/patch-ab11
-rw-r--r--x11/xfishtank/pkg-comment1
-rw-r--r--x11/xfishtank/pkg-descr8
-rw-r--r--x11/xfishtank/pkg-plist1
7 files changed, 138 insertions, 0 deletions
diff --git a/x11/xfishtank/Makefile b/x11/xfishtank/Makefile
new file mode 100644
index 000000000000..2b745f85bdfc
--- /dev/null
+++ b/x11/xfishtank/Makefile
@@ -0,0 +1,21 @@
+#New ports collection makefile for: xfishtank
+# Version required: 2.2
+# Date created: 24th April 1997
+# Whom: jacs
+#
+# $Id$
+#
+DISTNAME= xfishtank-2.2
+CATEGORIES= x11
+MASTER_SITES= ftp://ftp.uni-koeln.de/windows/xcontrib/
+
+MAINTAINER= jacs@gnome.co.uk
+
+USE_IMAKE= yes
+WRKSRC= ${WRKDIR}/xfishtank2.0
+NO_INSTALL_MANPAGES=yes
+
+post-patch:
+ cd ${WRKDIR}/xfishtank2.0; make clean
+
+.include <bsd.port.mk> \ No newline at end of file
diff --git a/x11/xfishtank/distinfo b/x11/xfishtank/distinfo
new file mode 100644
index 000000000000..d34dba2a128d
--- /dev/null
+++ b/x11/xfishtank/distinfo
@@ -0,0 +1 @@
+MD5 (xfishtank-2.2.tar.gz) = 9d2d1a004992295d7c9d49f535bae42e
diff --git a/x11/xfishtank/files/patch-aa b/x11/xfishtank/files/patch-aa
new file mode 100644
index 000000000000..80df889e4eb7
--- /dev/null
+++ b/x11/xfishtank/files/patch-aa
@@ -0,0 +1,95 @@
+--- xfish.c.orig Thu Dec 17 22:26:17 1992
++++ xfish.c Tue Jun 17 08:31:49 1997
+@@ -46,13 +46,23 @@
+
+ /* constants are based on rand(3C) returning an integer between 0 and 32767 */
+
+-#if defined(ultrix) || defined(sun) || defined(linux)
++#if defined(ultrix) || defined(sun)
+ #define RAND_I_1_16 134217728
+ #define RAND_F_1_8 268435455.875
+ #define RAND_I_1_4 536870911
+ #define RAND_I_1_2 1073741823
+ #define RAND_I_3_4 1610612735
+ #define RAND_F_MAX 2147483647.0
++#else
++#if defined(__FreeBSD__)
++#include <stdlib.h>
++
++#define RAND_I_1_16 (RAND_MAX>>4)
++#define RAND_F_1_8 ((float)(RAND_MAX>>3))
++#define RAND_I_1_4 (RAND_MAX>>2)
++#define RAND_I_1_2 (RAND_MAX>>1)
++#define RAND_I_3_4 ((RAND_MAX>>2)*3)
++#define RAND_F_MAX ((float)RAND_MAX)
+ #else
+ #define RAND_I_1_16 2048
+ #define RAND_F_1_8 4096.0
+@@ -61,7 +71,7 @@
+ #define RAND_I_3_4 24575
+ #define RAND_F_MAX 32767.0
+ #endif
+-
++#endif
+
+ extern unsigned char *ReadBitmap();
+
+@@ -982,7 +992,6 @@
+ XColor hdef, edef;
+ struct colr_data *cdp;
+ struct colr_data colrs[256];
+- extern char *malloc();
+
+ colormap = XDefaultColormap(Dpy, screen);
+
+@@ -1218,7 +1227,6 @@
+ unsigned char *data;
+ register int i, j, k;
+ int cnt, wcnt;
+- extern char *malloc();
+
+ cnt = 1;
+ cnt += Pcnt;
+@@ -1465,34 +1473,6 @@
+ void
+ init_signals()
+ {
+- int ret;
+-#ifdef linux
+- signal(SIGUSR1, toggle_secure);
+-#else
+-#if defined(MOTOROLA) || defined(SCO)
+- sigset(SIGUSR1, toggle_secure);
+-#else
+- struct sigvec vec;
+-
+- vec.sv_handler = toggle_secure;
+- vec.sv_mask = 0;
+- vec.sv_onstack = 0;
+-
+-#ifndef hpux
+- ret = sigvec(SIGUSR1, &vec, &vec);
+- if (ret != 0)
+- {
+- fprintf(stderr, "sigvec call failed\n");
+- }
+- else
+- {
+- fprintf(stderr, "sigvec call OK\n");
+- }
+-#else
+- sigvector(SIGUSR1, &vec, &vec);
+-#endif
+-#endif /* MOTOROLA */
+-#endif /* LINUX */
+ }
+
+
+@@ -1505,7 +1485,6 @@
+ XWindowAttributes winfo;
+ XSetWindowAttributes attr;
+ XGCValues vals;
+- extern char *malloc();
+ XSizeHints xsh;
+ XImage *pimage;
+ int i, size, cnt;
diff --git a/x11/xfishtank/files/patch-ab b/x11/xfishtank/files/patch-ab
new file mode 100644
index 000000000000..87ccd1e5b1e1
--- /dev/null
+++ b/x11/xfishtank/files/patch-ab
@@ -0,0 +1,11 @@
+--- Imakefile.orig Wed Dec 16 01:04:35 1992
++++ Imakefile Tue Jun 17 08:36:51 1997
+@@ -2,7 +2,7 @@
+ LOCAL_LIBRARIES = $(XLIB)
+ DEPLIBS = $(DEPXLIB)
+ SYS_LIBRARIES = -lm
+- CDEBUGFLAGS = -g
++XCOMM CDEBUGFLAGS = -g
+
+ SRCS = xfish.c medcut.c read.c gifread.c
+ OBJS = xfish.o medcut.o read.o gifread.o
diff --git a/x11/xfishtank/pkg-comment b/x11/xfishtank/pkg-comment
new file mode 100644
index 000000000000..63a4acabb6b8
--- /dev/null
+++ b/x11/xfishtank/pkg-comment
@@ -0,0 +1 @@
+Make fish swim in the background of your screen.
diff --git a/x11/xfishtank/pkg-descr b/x11/xfishtank/pkg-descr
new file mode 100644
index 000000000000..8994accdee77
--- /dev/null
+++ b/x11/xfishtank/pkg-descr
@@ -0,0 +1,8 @@
+There are lots of programs for lots of platforms to make fish swim in the
+background of your screen. This is a modification of an old one called
+xfish (also called Xaquarium), that I have added more features to.
+
+This version does not work on true colour displays.
+
+--Chris
+jacs@gnome.co.uk
diff --git a/x11/xfishtank/pkg-plist b/x11/xfishtank/pkg-plist
new file mode 100644
index 000000000000..793cc679f5f3
--- /dev/null
+++ b/x11/xfishtank/pkg-plist
@@ -0,0 +1 @@
+bin/xfishtank