ports/56986: New port: graphics/xd3d - A simple scientific visualization tool.

Thierry Thomas thierry at pompo.net
Thu Sep 18 21:50:17 UTC 2003


>Number:         56986
>Category:       ports
>Synopsis:       New port: graphics/xd3d - A simple scientific visualization tool.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 18 14:50:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 5.1-RELEASE-p2 i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD ws90bj.pompo.net 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #1: Tue Aug 19 17:50:01 CEST 2003 thierry at ws90bj.pompo.net:/usr/obj/usr/src/sys/WS90BJ-030610 i386


	
>Description:
	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.

>How-To-Repeat:
	N/A.

>Fix:
	Please execute the following shar file:

--- xd3d.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	graphics/xd3d
#	graphics/xd3d/Makefile
#	graphics/xd3d/distinfo
#	graphics/xd3d/pkg-descr
#	graphics/xd3d/pkg-plist
#	graphics/xd3d/files
#	graphics/xd3d/files/RULES.FreeBSD
#
echo c - graphics/xd3d
mkdir -p graphics/xd3d > /dev/null 2>&1
echo x - graphics/xd3d/Makefile
sed 's/^X//' >graphics/xd3d/Makefile << 'END-of-graphics/xd3d/Makefile'
X# New ports collection makefile for:	xd3d
X# Date created:		Tue Sept. 16 2003
X# Whom:			thierry at pompo.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xd3d
XPORTVERSION=	8.0.2
XCATEGORIES=	graphics math
XMASTER_SITES=	http://www.cmap.polytechnique.fr/~jouve/xd3d/
X
XMAINTAINER=	thierry at pompo.net
XCOMMENT=	A simple scientific visualization tool
X
X#--------------------------------------------------------------------------
X# You may define these options:
X#
X# - WITHOUT_IMAGEMAGICK	:	if you don't need to export bitmap images
X#				in gif or png format;
X#
X# - WITHOUT_GIFSICLE	:	if you want to generate some nice animated
X#				gifs;
X#
X# - MEMORY_XD3D		:	Max memory for xd3d (MBytes, 64 by default)
X#
X# - F77			:	don't use the default fortran compiler;
X# - FFLAGS		:	fortran compiler's flags (-O by default).
X#--------------------------------------------------------------------------
X
X.if !defined(WITHOUT_IMAGEMAGICK)
XRUN_DEPENDS=	convert:${PORTSDIR}/graphics/ImageMagick
X.endif
X.if !defined(WITHOUT_GIFSICLE)
XRUN_DEPENDS+=	gifsicle:${PORTSDIR}/graphics/gifsicle
X.endif
X
XUSE_XLIB=	yes
XUSE_REINPLACE=	yes
XREINPLACE_ARGS=	-i ""
XFETCH_CMD=	/usr/bin/fetch
XFETCH_BEFORE_ARGS=	-R -o ${DISTDIR}/${DISTFILES}
X
XF77?=		f77
XFFLAGS?=	-O
XMEMORY_XD3D?=	64
X
X.if defined(LANG) && ${LANG:M${fr}*} != ""
XXD3D_LANG=	FRANCAIS
X.else
XXD3D_LANG=	ENGLISH
X.endif
X
XDOCS=		BUGS FAQ INSTALL README Manuals/formats.txt	\
X		Manuals/xd3d_doc.pdf Manuals/xgraphic_doc.pdf
X
X.include <bsd.port.pre.mk>
X
Xdo-fetch:
X.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
X	${FETCH_CMD} ${FETCH_BEFORE_ARGS}			\
X		${MASTER_SITES}download.php?file=${DISTFILES}
X.endif
X
Xpost-patch:
X	@${CP} ${FILESDIR}/RULES.FreeBSD ${WRKSRC}/RULES
X	@${REINPLACE_CMD} -e "s|%%WRKSRC%%|${WRKSRC}|"		\
X		-e "s|%%PREFIX%%|${PREFIX}|"			\
X		-e "s|%%X11BASE%%|${X11BASE}|"			\
X		-e "s|%%LANG%%|${XD3D_LANG}|"			\
X		-e "s|%%MEMORY_XD3D%%|${MEMORY_XD3D}|"		\
X		-e "s|%%F77%%|${F77}|"				\
X		-e "s|%%FFLAGS%%|${FFLAGS}|"			\
X		-e "s|%%CC%%|${CC}|"				\
X		-e "s|%%CFLAGS%%|${CFLAGS}|"			\
X		${WRKSRC}/RULES
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for FILE in ${DOCS}
X	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
X	@${MKDIR} ${EXAMPLESDIR}
X	@${CP} -Rp ${WRKSRC}/Examples/* ${EXAMPLESDIR}
X	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
X	@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
X.endif
X
X.include <bsd.port.post.mk>
END-of-graphics/xd3d/Makefile
echo x - graphics/xd3d/distinfo
sed 's/^X//' >graphics/xd3d/distinfo << 'END-of-graphics/xd3d/distinfo'
XMD5 (xd3d-8.0.2.tar.gz) = 0e44d94b8fbe207fec7ae8e2a4ddab85
END-of-graphics/xd3d/distinfo
echo x - graphics/xd3d/pkg-descr
sed 's/^X//' >graphics/xd3d/pkg-descr << 'END-of-graphics/xd3d/pkg-descr'
Xxd3d is a simple scientific visualization tool designed to be easy to learn.
X
XIt can plot 2d and 3d meshes, with shadowing, contour plots, vector fields,
Xiso-contour (3d), as well as 3d surfaces z=f(x,y) defined by an algebraic
Xexpression or a cloud of points. It generates high quality vector PostScript
Xfiles for scientific publications and still or animated bitmap images.
X
XIt includes the graph plotter xgraphic.
X
XWWW: http://www.cmap.polytechnique.fr/~jouve/xd3d/
END-of-graphics/xd3d/pkg-descr
echo x - graphics/xd3d/pkg-plist
sed 's/^X//' >graphics/xd3d/pkg-plist << 'END-of-graphics/xd3d/pkg-plist'
Xbin/clair
Xbin/clairc3d
Xbin/create_c3d
Xbin/infps
Xbin/nopo_avoir
Xbin/obscur
Xbin/obscurc3d
Xbin/tradavoir
Xbin/translation
Xbin/txt2avoir
Xbin/xd3d
Xbin/xgraphic
X%%PORTDOCS%%%%DOCSDIR%%/BUGS
X%%PORTDOCS%%%%DOCSDIR%%/FAQ
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/formats.txt
X%%PORTDOCS%%%%DOCSDIR%%/xd3d_doc.pdf
X%%PORTDOCS%%%%DOCSDIR%%/xgraphic_doc.pdf
X%%PORTDOCS%%%%EXAMPLESDIR%%/README_EXAMPLES
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/sinus.g
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh010
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh020
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh030
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh040
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh050
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh060
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh070
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh080
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh090
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh100
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh110
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh120
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh130
X%%PORTDOCS%%%%EXAMPLESDIR%%/Xgraphic/solh140
X%%PORTDOCS%%%%EXAMPLESDIR%%/example.c3d
X%%PORTDOCS%%%%EXAMPLESDIR%%/example.xyz
X%%PORTDOCS%%%%EXAMPLESDIR%%/example_cartesian.c3d
X%%PORTDOCS%%%%EXAMPLESDIR%%/example_cyl.c3d
X%%PORTDOCS%%%%EXAMPLESDIR%%/example_sph.c3d
X%%PORTDOCS%%%%EXAMPLESDIR%%/mesh3.avoir2D
X%%PORTDOCS%%%%EXAMPLESDIR%%/mesh3.nopo
X%%PORTDOCS%%%%EXAMPLESDIR%%/quadsd.avoir2D
X%%PORTDOCS%%%%EXAMPLESDIR%%/quadsd.depl
X%%PORTDOCS%%%%EXAMPLESDIR%%/quadsd.eldata
X%%PORTDOCS%%%%EXAMPLESDIR%%/quadsd.mises
X%%PORTDOCS%%%%EXAMPLESDIR%%/ref27nodes.avoir3D
X%%PORTDOCS%%%%EXAMPLESDIR%%/ref8nodes.avoir3D
X%%PORTDOCS%%%%EXAMPLESDIR%%/ref9nodes.avoir2D
X%%PORTDOCS%%%%EXAMPLESDIR%%/sphere.avoir3D
X%%PORTDOCS%%%%EXAMPLESDIR%%/sphere.depl
X%%PORTDOCS%%%%EXAMPLESDIR%%/tower.avoir3D
X%%PORTDOCS%%%%EXAMPLESDIR%%/tower_001.mode
X%%PORTDOCS%%%%EXAMPLESDIR%%/tower_002.mode
X%%PORTDOCS%%%%EXAMPLESDIR%%/tower_003.mode
X%%PORTDOCS%%%%EXAMPLESDIR%%/tower_004.mode
X%%PORTDOCS%%%%EXAMPLESDIR%%/tower_005.mode
X%%PORTDOCS%%%%EXAMPLESDIR%%/tower_006.mode
X%%PORTDOCS%%%%EXAMPLESDIR%%/tower_007.mode
X%%PORTDOCS%%%%EXAMPLESDIR%%/tower_008.mode
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Xgraphic
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
END-of-graphics/xd3d/pkg-plist
echo c - graphics/xd3d/files
mkdir -p graphics/xd3d/files > /dev/null 2>&1
echo x - graphics/xd3d/files/RULES.FreeBSD
sed 's/^X//' >graphics/xd3d/files/RULES.FreeBSD << 'END-of-graphics/xd3d/files/RULES.FreeBSD'
X#--------------------------------------------------------
X# Configuration file for the Makefiles of xd3d          |
X# François Jouve 2003 (Francois.Jouve at Polytechnique.fr) |
X#--------------------------------------------------------
X
X#
X# Modifiable parameters
X#
X
X#
X# Root directory of the distribution
X#
X#XD3D_DIR = $(HOME)/xd3d-8.0.2
XXD3D_DIR = %%WRKSRC%%
X
X#
X# Install directory
X#
X#INSTALL_DIR = /usr/local/bin
XINSTALL_DIR = %%PREFIX%%/bin
X
X#
X# Location of the X11 lib (libX11.a)
X#
X#LIBX11 = /usr/X11R6/lib
XLIBX11 = %%X11BASE%%/lib
X
X#
X# Language parameter
X#
X#LANGUAGE = FRANCAIS
X#LANGUAGE = ENGLISH
XLANGUAGE = %%LANG%%
X
X#
X# Max memory for xd3d (MBytes)
X#
X#MEMORY_XD3D = 64
XMEMORY_XD3D = %%MEMORY_XD3D%%
X
X#
X# Fortran compiler
X#
XCOMPILF = %%F77%%
X
X#
X# C compiler
X#
XCOMPILC = %%CC%%
XRANLIB  = ranlib
XAR      = ar r
XSTRIP   = strip $@
X
X#
X# Options for the Fortran compiler
X#
XOPTF = %%FFLAGS%% -malign-double
X#
X# Options for the C compiler
X#
XOPTC = %%CFLAGS%% -malign-double
X
X#-----------------------------------------------
X# You should not need to change anything below !
X#-----------------------------------------------
X
XSRCDIR = $(XD3D_DIR)/src
XBINDIR = $(XD3D_DIR)/bin
XLIBDIR = $(XD3D_DIR)/lib
XINCF   = -I$(XD3D_DIR)/src/include
XINCC   = -I$(LIBX11)/../include
X
XLINK      = $(COMPILF) $(OPTF) -o
XLINKOPT   = -lc -lm
XLINKOPTX  = -L$(LIBX11) -lX11 -lXpm -lc -lm
XLIBRAIRIE = $(LIBDIR)/question_lib.a
XMYXLIB    = $(LIBDIR)/my_Xlib.a
XINTERP    = $(LIBDIR)/interp.a
X
X.f.o: ; $(COMPILF) $(INCF) $(OPTF) -c $*.f
X.c.o: ; $(COMPILC) $(INCC) $(OPTC) -D$(LANGUAGE) -c $*.c
END-of-graphics/xd3d/files/RULES.FreeBSD
exit
--- xd3d.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list