Salome HOME
PAL12396 (problem with netgen-4.5 installation from sources)
authorvsr <vsr@opencascade.com>
Mon, 15 May 2006 10:57:08 +0000 (10:57 +0000)
committervsr <vsr@opencascade.com>
Mon, 15 May 2006 10:57:08 +0000 (10:57 +0000)
config_files/netgen-4.5.sh

index 86c0654a009127b19690af34df001f4d86efca39..f9b55a428d92f39c712cdbee26bf6946c308e789 100755 (executable)
@@ -52,8 +52,11 @@ check_jb tar xfz ${SOURCE_DIR}/netgen-4.5.tar.gz -C ${INSTALL_WORK}
 
 export MACHINE=LINUX
 
+# apply general patch for SALOME
+(cd ${PRODUCT_WORK}; cp ngtcltk/ngnewdelete.* libsrc/interface)
+
 # apply patch: to make compilable on latest versions of gcc
-(cd ${PRODUCT_WORK}/libsrc/meshing; echo -e '14s/^$/class Mesh;\nwq' | ed - meshtype.hpp > /dev/null)
+(cd ${PRODUCT_WORK}/libsrc/meshing; echo -e '16s/^$/class Mesh;\nwq' | ed - meshtype.hpp > /dev/null)
 
 for directory in csg general geom2d gprim interface linalg meshing opti stlgeom ; do
     cd ${PRODUCT_WORK}/libsrc/${directory}