1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/cad/opencascade/files/patch-ros_env.csh
Thierry Thomas de5ea4454a Open CASCADE Technology is a software development platform freely available in
open source. It includes components for 3D surface and solid modeling,
visualization, data exchange and rapid application development.

Open CASCADE Technology can be best applied in development of numerical
simulation software including CAD/CAM/CAE, AEC and GIS, as well as PDM
applications.

BUGS: the module WOK does not work, but the other modules (the most
interesting parts) are OK.
2007-04-01 09:04:04 +00:00

49 lines
1.8 KiB
Tcsh

--- ./ros/env.csh.orig Wed Mar 21 22:14:25 2007
+++ ./ros/env.csh Wed Mar 21 23:30:08 2007
@@ -1,16 +1,18 @@
#!/bin/csh -f
-setenv CASROOT /usr/ports/cad/opencascade/work/opencascade-6.2/ros
+setenv %%CASROOT%%
set OS_NAME=`uname`
if ( $?PATH ) then
- setenv PATH $CASROOT/../3rdparty/$OS_NAME/tcltk/bin:$CASROOT/$OS_NAME/bin:$PATH
+ setenv PATH %%LOCALBASE%%/bin:$CASROOT/$OS_NAME/bin:$PATH
else
- setenv PATH $CASROOT/../3rdparty/$OS_NAME/tcltk/bin:$CASROOT/$OS_NAME/bin
+ setenv PATH %%LOCALBASE%%/bin:$CASROOT/$OS_NAME/bin
endif
-if ( $?LD_LIBRARY_PATH ) then
+if ( $OS_NAME != "FreeBSD" ) then
+ if ( $?LD_LIBRARY_PATH ) then
setenv LD_LIBRARY_PATH $CASROOT/../3rdparty/$OS_NAME/tcltk/lib:$CASROOT/$OS_NAME/lib:$LD_LIBRARY_PATH
-else
+ else
setenv LD_LIBRARY_PATH $CASROOT/../3rdparty/$OS_NAME/tcltk/lib:$CASROOT/$OS_NAME/lib
+ endif
endif
setenv CSF_MDTVFontDirectory $CASROOT/src/FontMFT
setenv CSF_LANGUAGE us
@@ -30,7 +32,7 @@
setenv CSF_STEPDefaults $CASROOT/src/XSTEPResource
setenv CSF_XmlOcafResource $CASROOT/src/XmlOcafResource
-setenv TCLHOME $CASROOT/../3rdparty/$OS_NAME/tcltk
+setenv TCLHOME %%LOCALBASE%%
setenv TCLLIBPATH $TCLHOME/lib
if ( $OS_NAME == "SunOS" ) then
setenv ITK_LIBRARY $TCLLIBPATH/itk3.2
@@ -38,6 +40,12 @@
setenv TIX_LIBRARY $TCLLIBPATH/tix8.1
setenv TK_LIBRARY $TCLLIBPATH/tk8.4
setenv TCL_LIBRARY $TCLLIBPATH/tcl8.4
+else if ( $OS_NAME == "FreeBSD" ) then
+ setenv ITK_LIBRARY $TCLLIBPATH/itk%%ITKMM%%
+ setenv ITCL_LIBRARY $TCLLIBPATH/itcl%%ITCLMM%%
+ setenv TIX_LIBRARY $TCLLIBPATH/tix%%TIX_MM%%
+ setenv TK_LIBRARY %%TK_LIBDIR%%
+ setenv TCL_LIBRARY %%TCL_LIBDIR%%
else if ( $OS_NAME == "Linux" ) then
setenv ITK_LIBRARY $TCLLIBPATH/itk3.2
setenv ITCL_LIBRARY $TCLLIBPATH/itcl3.2