initial import of gfract 0.32

Gfract is a GTK-based fractal program that currently implements the
standard Mandelbrot and Julia sets.

from Jasper Lievisse Adriaanse

ok alek@
This commit is contained in:
steven 2006-04-17 13:48:54 +00:00
parent 43735696d2
commit cf8967e72a
5 changed files with 408 additions and 0 deletions

52
graphics/gfract/Makefile Normal file
View File

@ -0,0 +1,52 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/04/17 13:48:54 steven Exp $
COMMENT= "fractal program with GTK interface"
DISTNAME= gfract-0.32
DISTFILES= gfract-0.32.tar.gz \
gfract-palettes-0.1.tar.gz
CATEGORIES= graphics math
HOMEPAGE= http://www.oskusoft.com/osku/gfract/
MAINTAINER= Jasper Lievisse Adriaanse <jasper@nedbsd.nl>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}
WANTLIB= X11 Xext Xft Xrender c fontconfig freetype m stdc++ z \
glib-2.0.0.0 gmodule-2.0.0.0 gobject-2.0.0.0 \
atk-1.0.0.0 pango-1.0.0.0 pangoft2-1.0.0.0 \
pangox-1.0.0.0 pangoxft-1.0.0.0 png
BUILD_DEPENDS= ::devel/pkgconfig
LIB_DEPENDS= gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2
MODULES= devel/gettext
USE_X11= Yes
USE_GMAKE= Yes
NO_REGRESS= Yes
ALL_TARGET= gfract
MAKE_FLAGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
post-extract:
@cd ${WRKDIR} && mv monk2\'.map monk2.map
pre-build:
@perl -pi -e 's#/usr/local#${LOCALBASE}#' ${WRKSRC}/main.cpp
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/gfract/palettes
${INSTALL_DATA} ${WRKDIR}/*.map ${PREFIX}/share/gfract/palettes/
${INSTALL_DATA} ${WRKSRC}/gfract.xpm ${PREFIX}/share/gfract/
${INSTALL_PROGRAM} ${WRKSRC}/gfract ${PREFIX}/bin/
.include <bsd.port.mk>

8
graphics/gfract/distinfo Normal file
View File

@ -0,0 +1,8 @@
MD5 (gfract-0.32.tar.gz) = 41da0952007ceeea3e7bf8a6e5b7b262
MD5 (gfract-palettes-0.1.tar.gz) = 3c84863464f4a1b4a8016253392e4edd
RMD160 (gfract-0.32.tar.gz) = 6196bd3cc17c4c41bbd0b7df4cbe0691e52de521
RMD160 (gfract-palettes-0.1.tar.gz) = 3430c31cb5cb2317a02b1e2cf506c5ffa9601a7c
SHA1 (gfract-0.32.tar.gz) = f603c067c9616ebde714b72b3bda801e9906d6c3
SHA1 (gfract-palettes-0.1.tar.gz) = f05e06e6012e1b1526e0c796ca7f6617fca8ab7d
SIZE (gfract-0.32.tar.gz) = 34166
SIZE (gfract-palettes-0.1.tar.gz) = 223648

View File

@ -0,0 +1,32 @@
--- Makefile.orig Mon Feb 28 16:00:56 2005
+++ Makefile Mon Apr 17 14:14:51 2006
@@ -5,13 +5,13 @@ CC := g++
DEFS := -Wall -ansi -pedantic -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED
-DEFS := $(shell pkg-config --cflags gtk+-2.0) $(DEFS)
+DEFS := $(shell pkg-config --cflags libpng gtk+-2.0) $(DEFS)
CXXFLAGS := $(DEFS) -O2 -fomit-frame-pointer -ffast-math
#CXXFLAGS := $(DEFS) -g
LDFLAGS := -lpng -lz
-LDFLAGS := $(shell pkg-config --libs gtk+-2.0) $(LDFLAGS)
+LDFLAGS := $(shell pkg-config --libs libpng gtk+-2.0) $(LDFLAGS)
SRC := $(wildcard *.cpp)
OBJS := $(patsubst %.cpp, %.o, $(SRC))
@@ -19,11 +19,11 @@ HEADERS := $(wildcard *.h *.xpm)
$(PROG): $(OBJS)
@echo Linking $(PROG)
- @$(CC) $(CXXFLAGS) $(OBJS) $(LDFLAGS) -o $(PROG)
+ $(CXX) $(CXXFLAGS) $(OBJS) $(LDFLAGS) -o $(PROG)
%.o: %.cpp $(HEADERS)
@echo Compiling $<
- @$(CC) $(CXXFLAGS) -c $< -o $@
+ $(CXX) $(DEFS) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(PROG) $(OBJS)

View File

@ -0,0 +1,6 @@
Gfract is a GTK-based fractal program that currently implements the
standard Mandelbrot and Julia sets. It features infinite image size with
infinite anti-aliasing if you have the memory for it (well, at least 2^31
x 2^31 image sizes), Julia instant preview mode, user-specified coloring
algorithms and PNG support. For palette files it uses the same format as
Fractint does, except that it supports arbitraly large palettes.

310
graphics/gfract/pkg/PLIST Normal file
View File

@ -0,0 +1,310 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/04/17 13:48:54 steven Exp $
bin/gfract
share/gfract/
share/gfract/gfract.xpm
share/gfract/palettes/
share/gfract/palettes/2.map
share/gfract/palettes/23.map
share/gfract/palettes/3.map
share/gfract/palettes/3d.map
share/gfract/palettes/4.map
share/gfract/palettes/4zebbow.map
share/gfract/palettes/4zebbowx.map
share/gfract/palettes/560sel.map
share/gfract/palettes/8rain.map
share/gfract/palettes/8rain2.map
share/gfract/palettes/8temp.map
share/gfract/palettes/8zebbow2.map
share/gfract/palettes/altern.map
share/gfract/palettes/anenome.map
share/gfract/palettes/autumn.map
share/gfract/palettes/autumn2.map
share/gfract/palettes/bandbow1.map
share/gfract/palettes/bandw.map
share/gfract/palettes/basic.map
share/gfract/palettes/bbr001.map
share/gfract/palettes/bears.map
share/gfract/palettes/bgold.map
share/gfract/palettes/biglake.map
share/gfract/palettes/black.map
share/gfract/palettes/blakwhit.map
share/gfract/palettes/blakwht.map
share/gfract/palettes/blend.map
share/gfract/palettes/blend1.map
share/gfract/palettes/blend2.map
share/gfract/palettes/blend3.map
share/gfract/palettes/blend4.map
share/gfract/palettes/blend8.map
share/gfract/palettes/blendfff.map
share/gfract/palettes/blengbyg.map
share/gfract/palettes/bluein.map
share/gfract/palettes/blueout.map
share/gfract/palettes/blues.map
share/gfract/palettes/bluorng.map
share/gfract/palettes/border.map
share/gfract/palettes/bp.map
share/gfract/palettes/bpg.map
share/gfract/palettes/brass.map
share/gfract/palettes/brite.map
share/gfract/palettes/brwg.map
share/gfract/palettes/bwb.map
share/gfract/palettes/caramel.map
share/gfract/palettes/cat.map
share/gfract/palettes/china.map
share/gfract/palettes/chroma.map
share/gfract/palettes/chroma2.map
share/gfract/palettes/chroma3.map
share/gfract/palettes/chroma4.map
share/gfract/palettes/clouds.map
share/gfract/palettes/coldfire.map
share/gfract/palettes/colors.map
share/gfract/palettes/cool.map
share/gfract/palettes/copper.map
share/gfract/palettes/cranes.map
share/gfract/palettes/crwn.map
share/gfract/palettes/cycler.map
share/gfract/palettes/darkie.map
share/gfract/palettes/default.map
share/gfract/palettes/defaultw.map
share/gfract/palettes/dragon.map
share/gfract/palettes/dw.map
share/gfract/palettes/egan1.map
share/gfract/palettes/egan2.map
share/gfract/palettes/egan3.map
share/gfract/palettes/egan4.map
share/gfract/palettes/egasoft.map
share/gfract/palettes/fadechr1.map
share/gfract/palettes/fadern1.map
share/gfract/palettes/fadern2.map
share/gfract/palettes/fadern3.map
share/gfract/palettes/fadern4.map
share/gfract/palettes/fadern5.map
share/gfract/palettes/fire2.map
share/gfract/palettes/firestrm.map
share/gfract/palettes/fish.map
share/gfract/palettes/fourain.map
share/gfract/palettes/fourain2.map
share/gfract/palettes/frcoast.map
share/gfract/palettes/frosty1.map
share/gfract/palettes/frosty2.map
share/gfract/palettes/froth3.map
share/gfract/palettes/froth316.map
share/gfract/palettes/froth6.map
share/gfract/palettes/froth616.map
share/gfract/palettes/gamma1.map
share/gfract/palettes/gamma2.map
share/gfract/palettes/garden.map
share/gfract/palettes/glass.map
share/gfract/palettes/glasses1.map
share/gfract/palettes/glasses2.map
share/gfract/palettes/glasses5.map
share/gfract/palettes/goodega.map
share/gfract/palettes/grayish.map
share/gfract/palettes/gred.map
share/gfract/palettes/green.map
share/gfract/palettes/greenin.map
share/gfract/palettes/greenout.map
share/gfract/palettes/grey.map
share/gfract/palettes/grid.map
share/gfract/palettes/hawaii.map
share/gfract/palettes/haystack.map
share/gfract/palettes/headache.map
share/gfract/palettes/hls1.map
share/gfract/palettes/hls10.map
share/gfract/palettes/hls12.map
share/gfract/palettes/hls15.map
share/gfract/palettes/hls16.map
share/gfract/palettes/hls17.map
share/gfract/palettes/hls19.map
share/gfract/palettes/hls2.map
share/gfract/palettes/hls20.map
share/gfract/palettes/hls3.map
share/gfract/palettes/hls4.map
share/gfract/palettes/hls5.map
share/gfract/palettes/hls6.map
share/gfract/palettes/hls7.map
share/gfract/palettes/hls8.map
share/gfract/palettes/hls9.map
share/gfract/palettes/hlsrain1.map
share/gfract/palettes/hlsrain2.map
share/gfract/palettes/hlsrain3.map
share/gfract/palettes/hlsrain4.map
share/gfract/palettes/hlsrain5.map
share/gfract/palettes/hlsrainb.map
share/gfract/palettes/horns.map
share/gfract/palettes/hunk.map
share/gfract/palettes/hybrid.map
share/gfract/palettes/indigo.map
share/gfract/palettes/janine.map
share/gfract/palettes/japan.map
share/gfract/palettes/jellyfsh.map
share/gfract/palettes/jewel.map
share/gfract/palettes/jfan.map
share/gfract/palettes/jstripe.map
share/gfract/palettes/juteblue.map
share/gfract/palettes/jutemap.map
share/gfract/palettes/jutemap2.map
share/gfract/palettes/jutes.map
share/gfract/palettes/kahki.map
share/gfract/palettes/lace.map
share/gfract/palettes/landscap.map
share/gfract/palettes/laser.map
share/gfract/palettes/leon.map
share/gfract/palettes/lichen.map
share/gfract/palettes/light.map
share/gfract/palettes/lite.map
share/gfract/palettes/litnin1.map
share/gfract/palettes/longs.map
share/gfract/palettes/lyapunov.map
share/gfract/palettes/mandel.map
share/gfract/palettes/mandel2.map
share/gfract/palettes/mandmap.map
share/gfract/palettes/masts.map
share/gfract/palettes/med.map
share/gfract/palettes/metal.map
share/gfract/palettes/mist.map
share/gfract/palettes/mixed.map
share/gfract/palettes/monk.map
share/gfract/palettes/monk1.map
share/gfract/palettes/monk2.map
share/gfract/palettes/necklace.map
share/gfract/palettes/neon.map
share/gfract/palettes/new.map
share/gfract/palettes/new1.map
share/gfract/palettes/new2.map
share/gfract/palettes/newmap.map
share/gfract/palettes/nice.map
share/gfract/palettes/nkohala.map
share/gfract/palettes/nobow.map
share/gfract/palettes/noel.map
share/gfract/palettes/oil.map
share/gfract/palettes/okay.map
share/gfract/palettes/olympus.map
share/gfract/palettes/op2.map
share/gfract/palettes/osb.map
share/gfract/palettes/owl.map
share/gfract/palettes/paintjet.map
share/gfract/palettes/pale.map
share/gfract/palettes/panda.map
share/gfract/palettes/pastel.map
share/gfract/palettes/pc.map
share/gfract/palettes/peach.map
share/gfract/palettes/plasma1.map
share/gfract/palettes/plasma2.map
share/gfract/palettes/poppy.map
share/gfract/palettes/porche01.map
share/gfract/palettes/povray.map
share/gfract/palettes/pumpkin.map
share/gfract/palettes/pvland.map
share/gfract/palettes/rain4.map
share/gfract/palettes/rain4g1.map
share/gfract/palettes/rain4x.map
share/gfract/palettes/rain4x2.map
share/gfract/palettes/rain4x3.map
share/gfract/palettes/rainb.map
share/gfract/palettes/rainbow.map
share/gfract/palettes/rainbow2.map
share/gfract/palettes/rainbow3.map
share/gfract/palettes/rainbow4.map
share/gfract/palettes/rainbow5.map
share/gfract/palettes/rainbow6.map
share/gfract/palettes/rainbow7.map
share/gfract/palettes/rainhyb.map
share/gfract/palettes/rbow.map
share/gfract/palettes/rby.map
share/gfract/palettes/redand.map
share/gfract/palettes/redgrn.map
share/gfract/palettes/redin.map
share/gfract/palettes/redout.map
share/gfract/palettes/reds.map
share/gfract/palettes/reg.map
share/gfract/palettes/rgb.map
share/gfract/palettes/rgb2.map
share/gfract/palettes/ribbon.map
share/gfract/palettes/ribbon1.map
share/gfract/palettes/ribbon10.map
share/gfract/palettes/ribbon12.map
share/gfract/palettes/ribbon13.map
share/gfract/palettes/ribbon15.map
share/gfract/palettes/ribbon16.map
share/gfract/palettes/ribbon17.map
share/gfract/palettes/ribbon18.map
share/gfract/palettes/ribbon2.map
share/gfract/palettes/ribbon20.map
share/gfract/palettes/ribbon21.map
share/gfract/palettes/ribbon22.map
share/gfract/palettes/ribbon3.map
share/gfract/palettes/ribbon4.map
share/gfract/palettes/ribbon5.map
share/gfract/palettes/ribbon6.map
share/gfract/palettes/ribbon7.map
share/gfract/palettes/ribbon8.map
share/gfract/palettes/ribbon9.map
share/gfract/palettes/room.map
share/gfract/palettes/rose1.map
share/gfract/palettes/royal.map
share/gfract/palettes/roygbv.map
share/gfract/palettes/rw.map
share/gfract/palettes/ryb1.map
share/gfract/palettes/sanfran.map
share/gfract/palettes/sea.map
share/gfract/palettes/sea2.map
share/gfract/palettes/seattle.map
share/gfract/palettes/smooth.map
share/gfract/palettes/snowtree.map
share/gfract/palettes/sparse.map
share/gfract/palettes/special2.map
share/gfract/palettes/spect1.map
share/gfract/palettes/spect2.map
share/gfract/palettes/spect3.map
share/gfract/palettes/spect4.map
share/gfract/palettes/spect5.map
share/gfract/palettes/spect6.map
share/gfract/palettes/spect7.map
share/gfract/palettes/spiral.map
share/gfract/palettes/spirit.map
share/gfract/palettes/star.map
share/gfract/palettes/steptoe.map
share/gfract/palettes/storm.map
share/gfract/palettes/stripe.map
share/gfract/palettes/stripe2.map
share/gfract/palettes/stripe3.map
share/gfract/palettes/sweet.map
share/gfract/palettes/temp.map
share/gfract/palettes/topo.map
share/gfract/palettes/topo2.map
share/gfract/palettes/trace4.map
share/gfract/palettes/tropic.map
share/gfract/palettes/turqoise.map
share/gfract/palettes/twist.map
share/gfract/palettes/tworain.map
share/gfract/palettes/tworain2.map
share/gfract/palettes/tworain3.map
share/gfract/palettes/twowhite.map
share/gfract/palettes/unknown.map
share/gfract/palettes/vertigo.map
share/gfract/palettes/vette63.map
share/gfract/palettes/volcano.map
share/gfract/palettes/volcano2.map
share/gfract/palettes/volcano3.map
share/gfract/palettes/volcano4.map
share/gfract/palettes/volcano5.map
share/gfract/palettes/volcano6.map
share/gfract/palettes/volcano7.map
share/gfract/palettes/vooon.map
share/gfract/palettes/white.map
share/gfract/palettes/whiteblk.map
share/gfract/palettes/wild.map
share/gfract/palettes/windsrf2.map
share/gfract/palettes/windsurf.map
share/gfract/palettes/wine.map
share/gfract/palettes/wood.map
share/gfract/palettes/world.map
share/gfract/palettes/worms.map
share/gfract/palettes/wybr.map
share/gfract/palettes/yelpurp1.map
share/gfract/palettes/ygb.map
share/gfract/palettes/yools.map
share/gfract/palettes/zebbow2.map
share/gfract/palettes/zebra.map
share/gfract/palettes/zoot.map