db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
23 lines
605 B
Bash
Executable file
23 lines
605 B
Bash
Executable file
#!/bin/sh
|
|
set -x
|
|
|
|
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
|
|
then
|
|
case "$ParaView_VERSION" in
|
|
3*)
|
|
wmake libso vtkPV3Foam
|
|
(
|
|
cd PV3FoamReader
|
|
mkdir -p Make/$WM_OPTIONS > /dev/null 2>&1
|
|
cd Make/$WM_OPTIONS
|
|
cmake ../..
|
|
if [ $WM_ARCH = "darwinPpc" -o $WM_ARCH = "darwinIntel" ]
|
|
then
|
|
sed -i bak -e 's/-dynamiclib /& -undefined dynamic_lookup /' CMakeFiles/PV3FoamReader.dir/link.txt
|
|
sed -i bak -e 's/-dynamiclib /& -undefined dynamic_lookup /' CMakeFiles/PV3FoamReader_SM.dir/link.txt
|
|
fi
|
|
make
|
|
)
|
|
;;
|
|
esac
|
|
fi
|