diff options
author | tg <tg@FreeBSD.org> | 1999-06-01 13:16:47 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1999-06-01 13:16:47 +0000 |
commit | 4b87fe0052775de8b60e48548416f4c1a5a72296 (patch) | |
tree | 4f178bae494070d0cf7eeaddd497b9d856e71378 /math/vtk | |
parent | 65bcc7096626debf43f35313cab321f410e85cc7 (diff) | |
download | FreeBSD-ports-4b87fe0052775de8b60e48548416f4c1a5a72296.zip FreeBSD-ports-4b87fe0052775de8b60e48548416f4c1a5a72296.tar.gz |
Re-import vtk into "math", this is where all the other
data visualization tools are.
Diffstat (limited to 'math/vtk')
-rw-r--r-- | math/vtk/Makefile | 27 | ||||
-rw-r--r-- | math/vtk/distinfo | 1 | ||||
-rw-r--r-- | math/vtk/files/patch-aa | 67 | ||||
-rw-r--r-- | math/vtk/files/patch-ab | 74 | ||||
-rw-r--r-- | math/vtk/pkg-comment | 1 | ||||
-rw-r--r-- | math/vtk/pkg-descr | 11 | ||||
-rw-r--r-- | math/vtk/pkg-plist | 9 |
7 files changed, 190 insertions, 0 deletions
diff --git a/math/vtk/Makefile b/math/vtk/Makefile new file mode 100644 index 0000000..3ba8768 --- /dev/null +++ b/math/vtk/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: vtk +# Version required: 2.3 +# Date created: 24 Nov 1997 +# Whom: Thomas Gellekum <tg@FreeBSD.ORG> +# +# $Id$ +# + +DISTNAME= vtk23unix +PKGNAME= vtk-2.3 +CATEGORIES= math +MASTER_SITES= ftp://vtk.scorec.rpi.edu/pub/ + +MAINTAINER= ports@FreeBSD.ORG + +LIB_DEPENDS= GL.14:${PORTSDIR}/graphics/Mesa3 \ + tk80.1:${PORTSDIR}/x11-toolkits/tk80 + +WRKSRC= $(WRKDIR)/vtk +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-mesa --with-shared --with-tcl --with-bsdmake +CONFIGURE_ENV= CFLAGS="${CFLAGS}" CXXFLAGS="${CFLAGS}" + +post-install: + ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib + +.include <bsd.port.mk> diff --git a/math/vtk/distinfo b/math/vtk/distinfo new file mode 100644 index 0000000..f2b79ff --- /dev/null +++ b/math/vtk/distinfo @@ -0,0 +1 @@ +MD5 (vtk23unix.tar.gz) = c7cfec42f6ad474a0d77c82fdb54d2a2 diff --git a/math/vtk/files/patch-aa b/math/vtk/files/patch-aa new file mode 100644 index 0000000..d8d92ed --- /dev/null +++ b/math/vtk/files/patch-aa @@ -0,0 +1,67 @@ +*** user.make.orig Thu Nov 13 09:25:29 1997 +--- user.make Fri May 28 13:09:29 1999 +*************** +*** 2,32 **** + # by configure in system.make. At a minimum you should set + # the following Tcl/Tk values if you are planning to use Tcl/Tk + +! TCL_INCLUDE=-I/home/ausable/software/src/tcl7.6/tcl7.6/generic +! TCL_LIB=/common/software/tcl7.6/sun4/5.4/lib/libtcl7.6.a + +! TK_INCLUDE=-I/home/ausable/software/src/tcl7.6/tk4.2/generic +! TK_LIB=/common/software/tk4.2/sun4/5.4/lib/libtk4.2.a + +! MESA_INCLUDE=-I/home/martink/storage/Mesa-1.2.6/include +! MESA_LIB=/home/martink/storage/Mesa-1.2.6/lib-sun4-solaris/libMesaGL.a + + # for python you must set this +! PYTHON_INCLUDES=-I/home/schroede/montnaro/Python-1.4/Include + + # Add additional CFLAGS and CXXFLAGS for compilation + # uncomment the following two lines to set your own flags +! #USER_CFLAGS = +! #USER_CXXFLAGS = + + # if you want to try the java support you'll need to set the following + # variables to match your environment and uncomment them + # +! #JDKHOME=/home/calvin/content/ITL/java-packages/dev-kits/JDK/jdk1.1 + #JAVAC=${JDKHOME}/bin/javac +! #JAVA_CLASS_HOME=/home/martink/java + #JAVAH=${JDKHOME}/bin/javah +! #JAVA_INCLUDES=-I${JDKHOME}/include -I${JDKHOME}/include/solaris + #JAVA_CXX_LIB=/common/software/g++-2.7.1/sun4/5.4/lib/libiberty.a /common/software/g++-2.7.1/sun4/5.4/lib/libstdc++.a /common/software/g++-2.7.1/sun4/5.4/lib/gcc-lib/sparc-sun-solaris2.4/2.7.1/libgcc.a + + +--- 2,32 ---- + # by configure in system.make. At a minimum you should set + # the following Tcl/Tk values if you are planning to use Tcl/Tk + +! TCL_INCLUDE=-I${PREFIX}/include/tcl8.0/generic +! TCL_LIB=${PREFIX}/lib/libtcl80.so + +! TK_INCLUDE=-I${PREFIX}/include/tk8.0/generic +! TK_LIB=${PREFIX}/lib/libtk80.so + +! MESA_INCLUDE=-I${X11BASE}/include +! MESA_LIB=${X11BASE}/lib/libMesaGL.so + + # for python you must set this +! PYTHON_INCLUDES=-I${PREFIX}/include/python1.5 + + # Add additional CFLAGS and CXXFLAGS for compilation + # uncomment the following two lines to set your own flags +! USER_CFLAGS = -O2 -D__NO_MATH_INLINES +! USER_CXXFLAGS = -O2 -D__NO_MATH_INLINES + + # if you want to try the java support you'll need to set the following + # variables to match your environment and uncomment them + # +! #JDKHOME=$(PREFIX)/jdk1.1* + #JAVAC=${JDKHOME}/bin/javac +! #JAVA_CLASS_HOME=${JDKHOME}/lib + #JAVAH=${JDKHOME}/bin/javah +! #JAVA_INCLUDES=-I${JDKHOME}/include -I${JDKHOME}/include/freebsd + #JAVA_CXX_LIB=/common/software/g++-2.7.1/sun4/5.4/lib/libiberty.a /common/software/g++-2.7.1/sun4/5.4/lib/libstdc++.a /common/software/g++-2.7.1/sun4/5.4/lib/gcc-lib/sparc-sun-solaris2.4/2.7.1/libgcc.a + + diff --git a/math/vtk/files/patch-ab b/math/vtk/files/patch-ab new file mode 100644 index 0000000..8b36135 --- /dev/null +++ b/math/vtk/files/patch-ab @@ -0,0 +1,74 @@ +*** configure.orig Mon Nov 2 13:23:46 1998 +--- configure Sun Jan 31 18:45:59 1999 +*************** +*** 2744,2753 **** + # Not available on all versions: check for include file. + if test -f /usr/include/dlfcn.h; then + SHLIB_CFLAGS="-fpic" +! SHLIB_LD_LIBS="" + SHLIB_SUFFIX=".so" + DL_LIBS="" +! VTK_SHLIB_LINK_FLAGS="-shared" + else + SHLIB_CFLAGS="" + SHLIB_LD_LIBS="" +--- 2744,2753 ---- + # Not available on all versions: check for include file. + if test -f /usr/include/dlfcn.h; then + SHLIB_CFLAGS="-fpic" +! SHLIB_LD_LIBS="${LIBS}" + SHLIB_SUFFIX=".so" + DL_LIBS="" +! VTK_SHLIB_BUILD_FLAGS="-shared" + else + SHLIB_CFLAGS="" + SHLIB_LD_LIBS="" +*************** +*** 3084,3089 **** +--- 3084,3129 ---- + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + THREAD_LIBS="-lpthread" ++ else ++ echo "$ac_t""no" 1>&6 ++ fi ++ ++ echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 ++ echo "configure:3191: checking for pthread_create in -lc_r" >&5 ++ ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` ++ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++ else ++ ac_save_LIBS="$LIBS" ++ LIBS="-lc_r $LIBS" ++ cat > conftest.$ac_ext <<EOF ++ #line 3199 "configure" ++ #include "confdefs.h" ++ /* Override any gcc2 internal prototype to avoid an error. */ ++ /* We use char because int might match the return type of a gcc2 ++ builtin and then its argument prototype would still apply. */ ++ char pthread_create(); ++ ++ int main() { ++ pthread_create() ++ ; return 0; } ++ EOF ++ if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then ++ rm -rf conftest* ++ eval "ac_cv_lib_$ac_lib_var=yes" ++ else ++ echo "configure: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ rm -rf conftest* ++ eval "ac_cv_lib_$ac_lib_var=no" ++ fi ++ rm -f conftest* ++ LIBS="$ac_save_LIBS" ++ ++ fi ++ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ++ echo "$ac_t""yes" 1>&6 ++ THREAD_LIBS="-lc_r" + else + echo "$ac_t""no" 1>&6 + fi diff --git a/math/vtk/pkg-comment b/math/vtk/pkg-comment new file mode 100644 index 0000000..534827a --- /dev/null +++ b/math/vtk/pkg-comment @@ -0,0 +1 @@ +The Visualization Toolkit diff --git a/math/vtk/pkg-descr b/math/vtk/pkg-descr new file mode 100644 index 0000000..60208bf --- /dev/null +++ b/math/vtk/pkg-descr @@ -0,0 +1,11 @@ +The ideal way to learn about the software is from the book it is designed to +support. You should be able to get the book from any local bookstore or from +our web page. The web page also contains some html reference pages for the +objects in vtk as well as a FAQ. + + The Visualization Toolkit, An Object-Oriented Approach to 3D Graphics + by Will Schroeder, Ken Martin and Bill Lorensen. + Prentice Hall, ISBN 013199837-4 + +For more information and a FAQ see our web page at +http://www.kitware.com/~martink/ diff --git a/math/vtk/pkg-plist b/math/vtk/pkg-plist new file mode 100644 index 0000000..4b86f5a --- /dev/null +++ b/math/vtk/pkg-plist @@ -0,0 +1,9 @@ +bin/vtk +lib/libVTKCommon.so +lib/libVTKCommonTcl.so +lib/libVTKGraphics.so +lib/libVTKGraphicsTcl.so +lib/libVTKImaging.so +lib/libVTKImagingTcl.so +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R |