freebsd-ports/graphics/cfdg/files/patch-Makefile
Martin Wilke 5b0ed5f05f 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/

PR:		ports/121715
Submitted by:	Anatoly Borodin <anatoly.borodin at gmail.com>
2008-04-26 17:55:18 +00:00

20 lines
512 B
Text

--- 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