File librecad-use-system-shapelib.patch of Package librecad

build: avoid using bundled shapelib
[asterios.dramis@gmail.com: imported the patch from Fedora into openSUSE's librecad]

---
 plugins/importshp/importshp.pro |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

--- a/plugins/importshp/importshp.pro
+++ b/plugins/importshp/importshp.pro
@@ -17,12 +17,9 @@ include(../../common.pri)
 # For plugins
 INCLUDEPATH    += ../../librecad/src/plugins
 
-SOURCES += importshp.cpp \
-           shapelib/shpopen.c \
-           shapelib/safileio.c \
-           shapelib/dbfopen.c
-HEADERS += importshp.h \
-           shapelib/shapefil.h
+SOURCES += importshp.cpp
+HEADERS += importshp.h
+LIBS += -lshp
 
 # Installation Directory
 win32 {
@@ -36,5 +33,3 @@ unix {
         DESTDIR = ../../unix/resources/plugins
     }
 }
-
-INCLUDEPATH    += shapelib
openSUSE Build Service is sponsored by