File cgx-2.8-libSNL-shared.patch of Package cgx

diff -U 3 -H -d -r -N -- CalculiX.orig/cgx_2.8/src/Makefile CalculiX/cgx_2.8/src/Makefile
--- cgx_2.8.orig/src/Makefile	2015-09-06 01:53:59.589115410 +0300
+++ cgx_2.8/src/Makefile	2015-09-06 02:20:44.442688669 +0300
@@ -2,11 +2,11 @@
   -I./ \
   -I/usr/include \
   -I/usr/include/GL \
-  -I../../libSNL/src \
   -I/usr/X11/include 
 
 LFLAGS = \
   -lglut \
+  -lSNL \
   -lGL -lGLU \
   -lX11 \
   -lm -lpthread -lrt
@@ -24,7 +24,6 @@
 SUTIL = \
  uselibSNL.cpp \
  generateTet.cpp \
- ../../libSNL/src/*.cpp
 
 OLIB = $(SLIB:.c=.o)
 OULIB = $(ULIB:.c=.o)
diff -U 3 -H -d -r -N -- CalculiX.orig/cgx_2.8/src/uselibSNL.cpp CalculiX/cgx_2.8/src/uselibSNL.cpp
--- cgx_2.8.orig/src/uselibSNL.cpp	2015-01-17 13:24:20.000000000 +0300
+++ cgx_2.8/src/uselibSNL.cpp	2015-09-06 01:55:13.221373475 +0300
@@ -27,9 +27,9 @@
 
 #include <iostream>
 
-#include <snlSurface.h>
-#include <snlUtil.h>
-#include <snlNurbsCommon.h>
+#include <SNL/snlSurface.h>
+#include <SNL/snlUtil.h>
+#include <SNL/snlNurbsCommon.h>
 
 #define ITER_TOL   1.e-6
 #define COS_TOL    1.e-2
openSUSE Build Service is sponsored by