aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/deep_zoom/Makefile36
-rw-r--r--graphics/deep_zoom/distinfo1
-rw-r--r--graphics/deep_zoom/files/patch-file-io.c10
-rw-r--r--graphics/deep_zoom/pkg-comment1
-rw-r--r--graphics/deep_zoom/pkg-descr15
-rw-r--r--graphics/deep_zoom/pkg-plist1
7 files changed, 65 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 9fa2fa4955d2..c5e2a32c79a5 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -31,6 +31,7 @@
SUBDIR += dc20ctrl
SUBDIR += dc20pack
SUBDIR += dc3play
+ SUBDIR += deep_zoom
SUBDIR += dia
SUBDIR += diacanvas
SUBDIR += divx4linux
diff --git a/graphics/deep_zoom/Makefile b/graphics/deep_zoom/Makefile
new file mode 100644
index 000000000000..efbf50a3759e
--- /dev/null
+++ b/graphics/deep_zoom/Makefile
@@ -0,0 +1,36 @@
+# ex:ts=8
+# Ports collection makefile for: deep_zoom
+# Date created: Aug 12, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= deep_zoom
+PORTVERSION= 0.3
+CATEGORIES= graphics
+MASTER_SITES= http://members.rogers.com/rowley-c/deep_zoom/
+
+MAINTAINER= ports@FreeBSD.org
+
+BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
+LIB_DEPENDS= Imlib2:${PORTSDIR}/graphics/imlib2 \
+ gmp.6:${PORTSDIR}/math/libgmp4
+
+IMLIB2_CONFIG= ${X11BASE}/bin/imlib2-config
+USE_REINPLACE= yes
+USE_GNOMENG= yes
+USE_GNOME= glib12
+USE_GMAKE= yes
+CFLAGS+= -I${LOCALBASE}/include `${IMLIB2_CONFIG} --cflags`
+MAKE_ENV= CC=${CXX} LDFLAGS="`${IMLIB2_CONFIG} --libs`"
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s|^CFLAGS=|CFLAGS+=|g" \
+ -e "s|^LDFLAGS=|LDFLAGS+=|g" -e "s|imlib2||g" \
+ -e "s|^CONFIG_CFLAGS|#CONFIG_CFLAGS|g" ${WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/deep_zoom ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/graphics/deep_zoom/distinfo b/graphics/deep_zoom/distinfo
new file mode 100644
index 000000000000..117c300c4049
--- /dev/null
+++ b/graphics/deep_zoom/distinfo
@@ -0,0 +1 @@
+MD5 (deep_zoom-0.3.tar.gz) = b7808d21a23d7a68dd6285f283dea032
diff --git a/graphics/deep_zoom/files/patch-file-io.c b/graphics/deep_zoom/files/patch-file-io.c
new file mode 100644
index 000000000000..bf6e04007cda
--- /dev/null
+++ b/graphics/deep_zoom/files/patch-file-io.c
@@ -0,0 +1,10 @@
+--- file-io.c.orig Mon Aug 12 15:30:44 2002
++++ file-io.c Mon Aug 12 15:30:55 2002
+@@ -1,6 +1,7 @@
+ /* the functions to read and write fractal calculations to a file */
+
+ #include "deep_zoom.h"
++#include <cstring>
+
+ // writes an mpf_t to the file as the overall information followed by the data
+
diff --git a/graphics/deep_zoom/pkg-comment b/graphics/deep_zoom/pkg-comment
new file mode 100644
index 000000000000..59661614091f
--- /dev/null
+++ b/graphics/deep_zoom/pkg-comment
@@ -0,0 +1 @@
+Generate very highly zoomed fractals
diff --git a/graphics/deep_zoom/pkg-descr b/graphics/deep_zoom/pkg-descr
new file mode 100644
index 000000000000..3319ac89b2e0
--- /dev/null
+++ b/graphics/deep_zoom/pkg-descr
@@ -0,0 +1,15 @@
+The program works by generating a low resolution fractal (400 points) for a
+particular range. Then the fractal is divided into quarters. The each quarter
+is given a score based on the number of colours active in it. This method is
+fairly effective at keeping the program focused on an active area of the
+fractal, although there is much improvement to be done. There is also an
+option (on by default) to select a randomly choosen quadrant than the one with
+the highest score if the randomly choosen quadrant has a score that is at least
+80% of the highest score. This process of selecting a quadrant is repeated a
+fixed number of times (by default, 10 times). At this point, a high resolution
+(in terms of floating point precision), image is created and saved to disk.
+The cutoff value is very high, which is required for deep_zooms. To help avoid
+endless cylces a binary tree of the hashes of all previous iterations is stored
+and checked against the current iteration.
+
+WWW: http://members.rogers.com/rowley-c/deep_zoom/
diff --git a/graphics/deep_zoom/pkg-plist b/graphics/deep_zoom/pkg-plist
new file mode 100644
index 000000000000..cbc07d1f7f9c
--- /dev/null
+++ b/graphics/deep_zoom/pkg-plist
@@ -0,0 +1 @@
+bin/deep_zoom