On 2008/07/16 20:00, jared r r spiegel wrote: > graphics program that friends of mine use so i made them this > port. > > it's all mathy like vector fractals or spirographs or whatever > > $gallery on the homepage
updated version attached, here's the diff -w between yours and mine. no need to list LIB_DEPENDS in BUILD_DEPENDS, and I was able to reduce the patches slightly by fiddling with environment variables (I got the impression their build procedure is treating CPPFLAGS as meaning "C++ flags" or something..) bit of other tidying - I did like the DESCR, but it didn't really explain much so I borrowed some text from the webpage. also PLIST had some odd lines to create /home/tmp which I found no reason for. works for me on amd64, i386. diff -uNp -wr cfdg.orig/Makefile cfdg/Makefile --- cfdg.orig/Makefile Thu Jul 17 00:52:38 2008 +++ cfdg/Makefile Sat Jul 19 12:10:52 2008 @@ -10,25 +10,25 @@ CATEGORIES= graphics HOMEPAGE= http://www.contextfreeart.org/ -MAINTAINER= [EMAIL PROTECTED] +MAINTAINER = jared r r spiegel <[EMAIL PROTECTED]> -# GPL +# GPLv2+ PERMIT_PACKAGE_CDROM = Yes PERMIT_PACKAGE_FTP = Yes PERMIT_DISTFILES_CDROM =Yes PERMIT_DISTFILES_FTP = Yes + WANTLIB= c m png LIB_DEPENDS= :png-*:graphics/png - MASTER_SITES= http://www.contextfreeart.org/download/ EXTRACT_SUFX= .tgz -BUILD_DEPENDS= ::graphics/png - USE_GMAKE = Yes EXAMPLEDIR = ${PREFIX}/share/examples/cfdg + +MAKE_ENV += CPPFLAGS="${CFLAGS} -I$(LOCALBASE)/include/libpng" do-install: ${INSTALL_PROGRAM} ${WRKBUILD}/cfdg ${PREFIX}/bin diff -uNp -wr cfdg.orig/patches/patch-Makefile cfdg/patches/patch-Makefile --- cfdg.orig/patches/patch-Makefile Wed Feb 27 03:53:20 2008 +++ cfdg/patches/patch-Makefile Sat Jul 19 12:07:53 2008 @@ -1,21 +1,21 @@ $OpenBSD$ ---- Makefile.orig Sun Sep 16 00:41:11 2007 -+++ Makefile Sun Sep 16 00:41:47 2007 -@@ -17,7 +17,7 @@ SRC_DIRS = $(COMMON_DIR) $(UNIX_DIR) $(D - vpath %.cpp $(SRC_DIRS) - vpath %.c $(SRC_DIRS) - --INC_DIRS = $(COMMON_DIR) $(UNIX_DIR) $(DERIVED_DIR) $(AGG_DIR)/include $(COMMON_DIR)/agg-extras -+INC_DIRS = $(COMMON_DIR) $(UNIX_DIR) $(DERIVED_DIR) $(AGG_DIR)/include $(COMMON_DIR)/agg-extras /usr/local/include/libpng - - # - # Sources and Objects +--- Makefile.orig Sun Apr 29 06:51:20 2007 ++++ Makefile Sat Jul 19 11:57:55 2008 @@ -52,7 +52,7 @@ $(OBJS): $(OBJ_DIR)/Sentry # Under Cygwin replace strip $@ with strip [EMAIL PROTECTED] cfdg: $(OBJS) - $(LINK.o) $^ -L/usr/local/lib -lstdc++ -lpng -lz -fexceptions -o $@ -+ $(LINK.o) $^ -L/usr/local/lib -lstdc++ -lpng -lz -lm -fexceptions -o $@ ++ $(LINK.o) $^ -L$(LOCALBASE)/lib -lstdc++ -lpng -lz -lm -fexceptions -o $@ strip $@ +@@ -103,7 +103,7 @@ $(OUTPUT_DIR)/rtest-2k.png: cfdg $(RTEST_CFDG) + # + + CPPFLAGS += $(patsubst %,-I%,$(INC_DIRS)) +-CPPFLAGS += -O3 ++#CPPFLAGS += -O3 + #CPPFLAGS += -ggdb + + $(OBJ_DIR)/%.o : %.cpp diff -uNp -wr cfdg.orig/pkg/DESCR cfdg/pkg/DESCR --- cfdg.orig/pkg/DESCR Wed Feb 27 03:56:16 2008 +++ cfdg/pkg/DESCR Sat Jul 19 12:28:32 2008 @@ -1 +1,7 @@ -The graphic thing Sean likes +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. + +cfdg is a command-line tool to produce images in PNG format from +these grammars. diff -uNp -wr cfdg.orig/pkg/PLIST cfdg/pkg/PLIST --- cfdg.orig/pkg/PLIST Mon Jul 14 17:58:40 2008 +++ cfdg/pkg/PLIST Sat Jul 19 12:12:03 2008 @@ -1,5 +1,5 @@ @comment $OpenBSD$ -bin/cfdg [EMAIL PROTECTED] bin/cfdg share/examples/cfdg/ share/examples/cfdg/README.txt share/examples/cfdg/input/ @@ -36,6 +36,3 @@ share/examples/cfdg/input/weighting_demo.cfdg share/examples/cfdg/input/welcome.cfdg share/examples/cfdg/input/xmas.cfdg share/examples/cfdg/input/ziggy.cfdg [EMAIL PROTECTED] / [EMAIL PROTECTED] 1777 [EMAIL PROTECTED] home/tmp
cfdg.tgz
Description: application/tar-gz
