aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xaos
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1997-02-28 18:52:53 +0800
committertg <tg@FreeBSD.org>1997-02-28 18:52:53 +0800
commit70e0c10b2c7dbd8cb62b50a8ea546dc8025e8dca (patch)
tree1b541de0a6f8da429f7df2e19d6218721d6fec73 /graphics/xaos
parentdc38977bd3aaf79ff3135a05af1d80d7a7ebbdfb (diff)
downloadfreebsd-ports-graphics-70e0c10b2c7dbd8cb62b50a8ea546dc8025e8dca.tar.gz
freebsd-ports-graphics-70e0c10b2c7dbd8cb62b50a8ea546dc8025e8dca.tar.zst
freebsd-ports-graphics-70e0c10b2c7dbd8cb62b50a8ea546dc8025e8dca.zip
Import of the Xaos port. Xaos is a fast fractal browser.
Closes PR #2808. Submitted by: Joseph Koshy <koshy@india.hp.com>
Diffstat (limited to 'graphics/xaos')
-rw-r--r--graphics/xaos/Makefile42
-rw-r--r--graphics/xaos/distinfo1
-rw-r--r--graphics/xaos/files/patch-aa111
-rw-r--r--graphics/xaos/pkg-comment1
-rw-r--r--graphics/xaos/pkg-descr12
-rw-r--r--graphics/xaos/pkg-plist4
6 files changed, 171 insertions, 0 deletions
diff --git a/graphics/xaos/Makefile b/graphics/xaos/Makefile
new file mode 100644
index 00000000000..f3200076101
--- /dev/null
+++ b/graphics/xaos/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: XaoS
+# Version required: 2.2
+# Date created: 24 February 1996
+# Whom: Joseph Koshy <koshy@india.hp.com>
+#
+# $Id$
+#
+
+DISTNAME= XaoS-2.2
+PKGNAME= xaos-2.2
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_XCONTRIB} \
+ http://www.tedium.com/XaoS/dist/ \
+ ftp://ftp.ta.jcu.cz/pub/linux/hubicka/XaoS/2.2/ \
+ http://www.paru.cas.cz/~hubicka/XaoS/dist/
+MASTER_SITE_SUBDIR= graphics
+
+MAINTAINER= ports@FreeBSD.ORG
+
+# This port will benefit from all-stops-out optimization of the code
+
+GNU_CONFIGURE= yes
+CFLAGS+= -DHAVE_SYS_PARAM_H \
+ -O6 -m486 -fstrength-reduce -ffast-math -fomit-frame-pointer\
+ -fforce-mem -fforce-addr -funroll-loops
+
+# We need to supply our own install target as the distribution doesn't
+# supply one by default
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/xaos ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/xaos.6 ${PREFIX}/man/man6
+
+post-install:
+ strip ${PREFIX}/bin/xaos
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/XaoS
+ ${INSTALL_DATA} ${WRKSRC}/doc/tutorial.txt ${PREFIX}/share/doc/XaoS
+ ${INSTALL_DATA} ${WRKSRC}/doc/algorithm.txt ${PREFIX}/share/doc/XaoS
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/xaos/distinfo b/graphics/xaos/distinfo
new file mode 100644
index 00000000000..80ffd449aac
--- /dev/null
+++ b/graphics/xaos/distinfo
@@ -0,0 +1 @@
+MD5 (XaoS-2.2.tar.gz) = d86a1f4143a7fd1e3dd773ebcc7f2c16
diff --git a/graphics/xaos/files/patch-aa b/graphics/xaos/files/patch-aa
new file mode 100644
index 00000000000..ba8db541c23
--- /dev/null
+++ b/graphics/xaos/files/patch-aa
@@ -0,0 +1,111 @@
+--- mktable.c-- Wed Jan 22 16:38:33 1997
++++ mktable.c Mon Feb 24 14:37:28 1997
+@@ -20,10 +20,15 @@
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <stdlib.h>
++#if (!defined(BSD) || (BSD < 199506))
+ #include <malloc.h>
++#endif
+ #include "mktable.h"
+ #include "config.h"
+ #ifdef CURSES_DRIVER
+@@ -395,7 +400,11 @@
+ #define postoparams(pos,i1,i2,i3,i4) \
+ ((i1)=(pos)>>12),((i2)=((pos)>>8)&15),((i3)=((pos)>>4)&15),((i4)=((pos))&15)
+
++#ifdef isset
++#undef isset
++#endif
+ #define isset(n,i) (((i)&1<<(n))!=0)
++
+ #define canset(n,i) (!isset(n,i)&&isset(n+1,i))
+ static int width = 8;
+ void values(int c, int *v1, int *v2, int *v3, int *v4)
+--- timers.c-- Mon Jan 27 13:15:55 1997
++++ timers.c Mon Feb 24 14:33:42 1997
+@@ -25,11 +25,18 @@
+ #include <libc.h>
+ #else
+ #include "aconfig.h"
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
++#if (!defined(BSD) || (BSD < 199506))
+ #include <malloc.h>
++#endif
+ #include <stdio.h>
+ #include <unistd.h>
+ #ifndef _MAC
++#if (!defined(BSD) || (BSD < 199506))
+ #include <malloc.h>
++#endif
+ #endif
+ #ifdef HAVE_SETITIMER
+ #include <signal.h>
+--- ui_curses.c-- Mon Feb 24 14:21:41 1997
++++ ui_curses.c Mon Feb 24 12:57:00 1997
+@@ -21,9 +21,14 @@
+ */
+ #include "aconfig.h"
+ #ifdef CURSES_DRIVER
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
+ #include <stdio.h>
+ #include <stdlib.h>
++#if (!defined(BSD) || (BSD < 199506))
+ #include <malloc.h>
++#endif
+ #include <signal.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
+--- xlib.c-- Mon Feb 24 14:21:54 1997
++++ xlib.c Mon Feb 24 14:34:38 1997
+@@ -26,7 +26,12 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
++#if (!defined(BSD) || (BSD < 199506))
+ #include <malloc.h>
++#endif
+ #include "xlib.h"
+ #ifdef AMIGA
+ #define XFlush(x) while(0)
+@@ -264,7 +269,9 @@
+ XDestroyImage(d->image[0]);
+ XDestroyImage(d->image[1]);
+ }
++#ifndef MAX
+ #define MAX(x,y) ((x)>(y)?(x):(y))
++#endif
+
+
+ xdisplay *xalloc_display(char *s, int x, int y, xlibparam * params)
+--- zoom.c-- Mon Feb 24 12:49:33 1997
++++ zoom.c Mon Feb 24 12:56:18 1997
+@@ -25,10 +25,15 @@
+ #include <libc.h>
+ #include <stdio.h>
+ #else
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
+ #include <stdlib.h>
+ #include <stdio.h>
+ #ifndef _MAC
++#if (!defined(BSD) || (BSD < 199506))
+ #include <malloc.h>
++#endif
+ #endif
+ #include "aconfig.h"
+ #ifdef HAVE_LIMITS_H
diff --git a/graphics/xaos/pkg-comment b/graphics/xaos/pkg-comment
new file mode 100644
index 00000000000..0be9accdcf1
--- /dev/null
+++ b/graphics/xaos/pkg-comment
@@ -0,0 +1 @@
+A real time fractal browser for X11 and ASCII terminals.
diff --git a/graphics/xaos/pkg-descr b/graphics/xaos/pkg-descr
new file mode 100644
index 00000000000..5a4396a7091
--- /dev/null
+++ b/graphics/xaos/pkg-descr
@@ -0,0 +1,12 @@
+This is a port of "XaoS", a real time fractal browser for X11 and
+ASCII terminals.
+
+Features:
+ - Very fast algorithms allow interactive zooming.
+ - Various coloring modes are provided for points inside and
+ outside the selected fractal.
+ - Autopilot mode
+ - 11 fractal formulas
+ - saving to GIF files
+ - palette rotation
+ - random dot stereograms
diff --git a/graphics/xaos/pkg-plist b/graphics/xaos/pkg-plist
new file mode 100644
index 00000000000..4342473fd41
--- /dev/null
+++ b/graphics/xaos/pkg-plist
@@ -0,0 +1,4 @@
+bin/xaos
+man/man6/xaos.6
+share/doc/XaoS/tutorial.txt
+share/doc/XaoS/algorithm.txt