diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2003-09-30 14:47:16 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2003-09-30 14:47:16 +0000 |
commit | 7bed26d486beae936b94a7c3b27f0b791e52cd4b (patch) | |
tree | e4a5aba350352808ec8587ec2998d11411482aa7 /graphics | |
parent | Don't remove historical logs when deinstalling. (diff) |
Add xd3d 8.0.2, a simple scientific visualization tool.
It can plot 2d and 3d meshes, with shadowing, contour
plots, vector fields, iso-contour (3d), as well as 3d surfaces
z=f(x,y) defined by an algebraic expression or a cloud of
points. It generates high quality vector PostScript files for
scientific publications and still or animated bitmap images.
It includes the graph plotter xgraphic.
PR: 56986
Submitted by: thierry@pompo.net
Notes
Notes:
svn path=/head/; revision=89903
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/xd3d/Makefile | 91 | ||||
-rw-r--r-- | graphics/xd3d/distinfo | 1 | ||||
-rw-r--r-- | graphics/xd3d/files/RULES.FreeBSD | 81 | ||||
-rw-r--r-- | graphics/xd3d/pkg-descr | 10 | ||||
-rw-r--r-- | graphics/xd3d/pkg-plist | 63 |
6 files changed, 247 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 1cf6ba1e57be..546ec58978d9 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -392,6 +392,7 @@ SUBDIR += xaos SUBDIR += xbarcode SUBDIR += xbmbrowser + SUBDIR += xd3d SUBDIR += xdgagrab SUBDIR += xdl SUBDIR += xenomorph diff --git a/graphics/xd3d/Makefile b/graphics/xd3d/Makefile new file mode 100644 index 000000000000..76f79318aa00 --- /dev/null +++ b/graphics/xd3d/Makefile @@ -0,0 +1,91 @@ +# New ports collection makefile for: xd3d +# Date created: Tue Sept. 16 2003 +# Whom: thierry@pompo.net +# +# $FreeBSD$ +# + +PORTNAME= xd3d +PORTVERSION= 8.0.2 +CATEGORIES= graphics math +MASTER_SITES= http://www.cmap.polytechnique.fr/~jouve/xd3d/ + +MAINTAINER= thierry@pompo.net +COMMENT= A simple scientific visualization tool + +#-------------------------------------------------------------------------- +# You may define these options: +# +# - WITHOUT_IMAGEMAGICK : if you don't need to export bitmap images +# in gif or png format; +# +# - WITHOUT_GIFSICLE : if you want to generate some nice animated +# gifs; +# +# - MEMORY_XD3D : Max memory for xd3d (MBytes, 64 by default) +# +# - F77 : don't use the default fortran compiler; +# - FFLAGS : fortran compiler's flags (-O by default). +#-------------------------------------------------------------------------- + +.if !defined(WITHOUT_IMAGEMAGICK) +RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick +.endif +.if !defined(WITHOUT_GIFSICLE) +RUN_DEPENDS+= gifsicle:${PORTSDIR}/graphics/gifsicle +.endif + +USE_XLIB= yes +USE_REINPLACE= yes +REINPLACE_ARGS= -i "" +FETCH_CMD= /usr/bin/fetch +FETCH_BEFORE_ARGS= -R -o ${DISTDIR}/${DISTFILES} + +F77?= f77 +FFLAGS?= -O +MEMORY_XD3D?= 64 + +.if defined(LANG) && ${LANG:M${fr}*} != "" +XD3D_LANG= FRANCAIS +.else +XD3D_LANG= ENGLISH +.endif + +DOCS= BUGS FAQ INSTALL README Manuals/formats.txt \ + Manuals/xd3d_doc.pdf Manuals/xgraphic_doc.pdf + +.include <bsd.port.pre.mk> + +do-fetch: +.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) + ${FETCH_CMD} ${FETCH_BEFORE_ARGS} \ + ${MASTER_SITES}download.php?file=${DISTFILES} +.endif + +post-patch: + @${CP} ${FILESDIR}/RULES.FreeBSD ${WRKSRC}/RULES + @${REINPLACE_CMD} -e "s|%%WRKSRC%%|${WRKSRC}|" \ + -e "s|%%PREFIX%%|${PREFIX}|" \ + -e "s|%%X11BASE%%|${X11BASE}|" \ + -e "s|%%LANG%%|${XD3D_LANG}|" \ + -e "s|%%MEMORY_XD3D%%|${MEMORY_XD3D}|" \ + -e "s|%%F77%%|${F77}|" \ + -e "s|%%FFLAGS%%|${FFLAGS}|" \ + -e "s|%%CC%%|${CC}|" \ + -e "s|%%CFLAGS%%|${CFLAGS}|" \ + ${WRKSRC}/RULES + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for FILE in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} +.endfor + @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." + @${MKDIR} ${EXAMPLESDIR} + @${CP} -Rp ${WRKSRC}/Examples/* ${EXAMPLESDIR} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} + @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}." +.endif + +.include <bsd.port.post.mk> diff --git a/graphics/xd3d/distinfo b/graphics/xd3d/distinfo new file mode 100644 index 000000000000..cf601c195176 --- /dev/null +++ b/graphics/xd3d/distinfo @@ -0,0 +1 @@ +MD5 (xd3d-8.0.2.tar.gz) = 0e44d94b8fbe207fec7ae8e2a4ddab85 diff --git a/graphics/xd3d/files/RULES.FreeBSD b/graphics/xd3d/files/RULES.FreeBSD new file mode 100644 index 000000000000..c44f373dca60 --- /dev/null +++ b/graphics/xd3d/files/RULES.FreeBSD @@ -0,0 +1,81 @@ +#-------------------------------------------------------- +# Configuration file for the Makefiles of xd3d | +# François Jouve 2003 (Francois.Jouve@Polytechnique.fr) | +#-------------------------------------------------------- + +# +# Modifiable parameters +# + +# +# Root directory of the distribution +# +#XD3D_DIR = $(HOME)/xd3d-8.0.2 +XD3D_DIR = %%WRKSRC%% + +# +# Install directory +# +#INSTALL_DIR = /usr/local/bin +INSTALL_DIR = %%PREFIX%%/bin + +# +# Location of the X11 lib (libX11.a) +# +#LIBX11 = /usr/X11R6/lib +LIBX11 = %%X11BASE%%/lib + +# +# Language parameter +# +#LANGUAGE = FRANCAIS +#LANGUAGE = ENGLISH +LANGUAGE = %%LANG%% + +# +# Max memory for xd3d (MBytes) +# +#MEMORY_XD3D = 64 +MEMORY_XD3D = %%MEMORY_XD3D%% + +# +# Fortran compiler +# +COMPILF = %%F77%% + +# +# C compiler +# +COMPILC = %%CC%% +RANLIB = ranlib +AR = ar r +STRIP = strip $@ + +# +# Options for the Fortran compiler +# +OPTF = %%FFLAGS%% -malign-double +# +# Options for the C compiler +# +OPTC = %%CFLAGS%% -malign-double + +#----------------------------------------------- +# You should not need to change anything below ! +#----------------------------------------------- + +SRCDIR = $(XD3D_DIR)/src +BINDIR = $(XD3D_DIR)/bin +LIBDIR = $(XD3D_DIR)/lib +INCF = -I$(XD3D_DIR)/src/include +INCC = -I$(LIBX11)/../include + +LINK = $(COMPILF) $(OPTF) -o +LINKOPT = -lc -lm +LINKOPTX = -L$(LIBX11) -lX11 -lXpm -lc -lm +LIBRAIRIE = $(LIBDIR)/question_lib.a +MYXLIB = $(LIBDIR)/my_Xlib.a +INTERP = $(LIBDIR)/interp.a + +.f.o: ; $(COMPILF) $(INCF) $(OPTF) -c $*.f +.c.o: ; $(COMPILC) $(INCC) $(OPTC) -D$(LANGUAGE) -c $*.c diff --git a/graphics/xd3d/pkg-descr b/graphics/xd3d/pkg-descr new file mode 100644 index 000000000000..2d4c705f22da --- /dev/null +++ b/graphics/xd3d/pkg-descr @@ -0,0 +1,10 @@ +xd3d is a simple scientific visualization tool designed to be easy to learn. + +It can plot 2d and 3d meshes, with shadowing, contour plots, vector fields, +iso-contour (3d), as well as 3d surfaces z=f(x,y) defined by an algebraic +expression or a cloud of points. It generates high quality vector PostScript +files for scientific publications and still or animated bitmap images. + +It includes the graph plotter xgraphic. + +WWW: http://www.cmap.polytechnique.fr/~jouve/xd3d/ diff --git a/graphics/xd3d/pkg-plist b/graphics/xd3d/pkg-plist new file mode 100644 index 000000000000..1bc19489ee8e --- /dev/null +++ b/graphics/xd3d/pkg-plist @@ -0,0 +1,63 @@ +bin/clair +bin/clairc3d +bin/create_c3d +bin/infps +bin/nopo_avoir +bin/obscur +bin/obscurc3d +bin/tradavoir +bin/translation +bin/txt2avoir +bin/xd3d +bin/xgraphic +%%PORTDOCS%%%%DOCSDIR%%/BUGS +%%PORTDOCS%%%%DOCSDIR%%/FAQ +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/formats.txt +%%PORTDOCS%%%%DOCSDIR%%/xd3d_doc.pdf +%%PORTDOCS%%%%DOCSDIR%%/xgraphic_doc.pdf +%%PORTDOCS%%%%EXAMPLESDIR%%/README_EXAMPLES +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/sinus.g +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh010 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh020 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh030 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh040 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh050 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh060 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh070 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh080 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh090 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh100 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh110 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh120 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh130 +%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh140 +%%PORTDOCS%%%%EXAMPLESDIR%%/example.c3d +%%PORTDOCS%%%%EXAMPLESDIR%%/example.xyz +%%PORTDOCS%%%%EXAMPLESDIR%%/example_cartesian.c3d +%%PORTDOCS%%%%EXAMPLESDIR%%/example_cyl.c3d +%%PORTDOCS%%%%EXAMPLESDIR%%/example_sph.c3d +%%PORTDOCS%%%%EXAMPLESDIR%%/mesh3.avoir2D +%%PORTDOCS%%%%EXAMPLESDIR%%/mesh3.nopo +%%PORTDOCS%%%%EXAMPLESDIR%%/quadsd.avoir2D +%%PORTDOCS%%%%EXAMPLESDIR%%/quadsd.depl +%%PORTDOCS%%%%EXAMPLESDIR%%/quadsd.eldata +%%PORTDOCS%%%%EXAMPLESDIR%%/quadsd.mises +%%PORTDOCS%%%%EXAMPLESDIR%%/ref27nodes.avoir3D +%%PORTDOCS%%%%EXAMPLESDIR%%/ref8nodes.avoir3D +%%PORTDOCS%%%%EXAMPLESDIR%%/ref9nodes.avoir2D +%%PORTDOCS%%%%EXAMPLESDIR%%/sphere.avoir3D +%%PORTDOCS%%%%EXAMPLESDIR%%/sphere.depl +%%PORTDOCS%%%%EXAMPLESDIR%%/tower.avoir3D +%%PORTDOCS%%%%EXAMPLESDIR%%/tower_001.mode +%%PORTDOCS%%%%EXAMPLESDIR%%/tower_002.mode +%%PORTDOCS%%%%EXAMPLESDIR%%/tower_003.mode +%%PORTDOCS%%%%EXAMPLESDIR%%/tower_004.mode +%%PORTDOCS%%%%EXAMPLESDIR%%/tower_005.mode +%%PORTDOCS%%%%EXAMPLESDIR%%/tower_006.mode +%%PORTDOCS%%%%EXAMPLESDIR%%/tower_007.mode +%%PORTDOCS%%%%EXAMPLESDIR%%/tower_008.mode +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Xgraphic +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% |