aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-04-26 17:55:18 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-04-26 17:55:18 +0000
commit5b0ed5f05f170d4dd974d48cd6eae607345ce063 (patch)
tree8ec6717d64908783afd241f032a045ce8c211a21 /graphics
parentddf9542c6149197f770d55bee5275a370ae362bf (diff)
downloadports-5b0ed5f05f170d4dd974d48cd6eae607345ce063.tar.gz
ports-5b0ed5f05f170d4dd974d48cd6eae607345ce063.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/cfdg/Makefile32
-rw-r--r--graphics/cfdg/distinfo3
-rw-r--r--graphics/cfdg/files/patch-Makefile20
-rw-r--r--graphics/cfdg/pkg-descr24
-rw-r--r--graphics/cfdg/pkg-plist35
6 files changed, 115 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index c08538a145ad..a4f877a3f55e 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -58,6 +58,7 @@
SUBDIR += cbview
SUBDIR += cegui
SUBDIR += cenon
+ SUBDIR += cfdg
SUBDIR += chbg
SUBDIR += cimg
SUBDIR += cinepaint
diff --git a/graphics/cfdg/Makefile b/graphics/cfdg/Makefile
new file mode 100644
index 000000000000..0c6c412e7ed5
--- /dev/null
+++ b/graphics/cfdg/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: cfdg
+# Date created: 2008-03-14
+# Whom: Anatoly Borodin <anatoly.borodin@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cfdg
+PORTVERSION= 2.1
+CATEGORIES= graphics math
+MASTER_SITES= http://www.contextfreeart.org/download/
+DISTNAME= ContextFreeSource${PORTVERSION}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= anatoly.borodin@gmail.com
+COMMENT= Context Free Design Grammar compiler
+
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
+
+USE_BISON= build
+USE_GMAKE= yes
+
+NO_INSTALL_MANPAGES= yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/cfdg ${PREFIX}/bin
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/input/* ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/cfdg/distinfo b/graphics/cfdg/distinfo
new file mode 100644
index 000000000000..175321e3daf7
--- /dev/null
+++ b/graphics/cfdg/distinfo
@@ -0,0 +1,3 @@
+MD5 (ContextFreeSource2.1.tgz) = 477242e74c4f953ceca7bf06e944a46e
+SHA256 (ContextFreeSource2.1.tgz) = 041a67e34292c898890568fe7236eaafd1608d196951bdaccedeb2275ca198b4
+SIZE (ContextFreeSource2.1.tgz) = 1363136
diff --git a/graphics/cfdg/files/patch-Makefile b/graphics/cfdg/files/patch-Makefile
new file mode 100644
index 000000000000..201c9d8ac606
--- /dev/null
+++ b/graphics/cfdg/files/patch-Makefile
@@ -0,0 +1,20 @@
+--- Makefile.orig 2007-04-29 08:51:20.000000000 +0300
++++ Makefile 2008-03-14 21:17:24.000000000 +0200
+@@ -52,7 +52,7 @@
+ # Under Cygwin replace strip $@ with strip $@.exe
+
+ cfdg: $(OBJS)
+- $(LINK.o) $^ -L/usr/local/lib -lstdc++ -lpng -lz -fexceptions -o $@
++ $(LINK.o) $^ `libpng-config --ldflags` -lstdc++ -fexceptions -o $@
+ strip $@
+
+
+@@ -103,7 +103,7 @@
+ #
+
+ CPPFLAGS += $(patsubst %,-I%,$(INC_DIRS))
+-CPPFLAGS += -O3
++CPPFLAGS += `libpng-config --cflags`
+ #CPPFLAGS += -ggdb
+
+ $(OBJ_DIR)/%.o : %.cpp
diff --git a/graphics/cfdg/pkg-descr b/graphics/cfdg/pkg-descr
new file mode 100644
index 000000000000..cbfcfc8c68a1
--- /dev/null
+++ b/graphics/cfdg/pkg-descr
@@ -0,0 +1,24 @@
+Context Free Design Grammar compiler.
+
+About CFDG:
+
+Chris Coyne created a small language for design grammars called CFDG.
+These grammars are sets of non-deterministic rules to produce images.
+The images are surprisingly beautiful, often from very simple grammars.
+Context Free is a full graphical environment for editing, rendering,
+and exploring CFDG design grammars.
+
+Features:
+* Simultaneously available for Macintosh, Windows and Posix/Unix.
+* Progressive image update: watch it generate
+* Save generated images in PNG or SVG format.
+* Produce animations
+* Edit grammars and re-render easily.
+* Render very large images (as large as 100 Mega-pixels).
+* Can handle generated images with millions of shapes.
+* Carefully tuned graphics rendering
+* Many built-in examples
+* Automatic checking for updates (Mac only).
+* It's free, as in beer and as in speech.
+
+WWW: http://www.contextfreeart.org/
diff --git a/graphics/cfdg/pkg-plist b/graphics/cfdg/pkg-plist
new file mode 100644
index 000000000000..a899b86dcf65
--- /dev/null
+++ b/graphics/cfdg/pkg-plist
@@ -0,0 +1,35 @@
+bin/cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/aliastest.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alphabet.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/chanukah.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cilia.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ciliasun.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demo1.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demo2.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dong.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/funky_flower.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/i_curves.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/i_pix.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/i_polygons.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lesson.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lesson2.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/line_ending_tests.tgz
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mtree.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/octopi.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/point.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/quadcity.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rendering-tests.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rose.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sierpinski.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/snowflake.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tangle.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/thingy.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/thorns.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tree_number_5.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/triples.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/underground.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/weighting_demo.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/welcome.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xmas.cfdg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ziggy.cfdg
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%