librecad/librecad-use-system-shapelib.patch
Jan Engelhardt 83a9ee0207 Accepting request 330429 from home:adra:branches:graphics
Update to new upstream release 2.0.8, Added new Part Library Electrical1-LCAD.zip, Rebased/Added patches, Added new build requirement libshp-devel

OBS-URL: https://build.opensuse.org/request/show/330429
OBS-URL: https://build.opensuse.org/package/show/graphics/librecad?expand=0&rev=27
2015-09-10 19:36:44 +00:00

34 lines
969 B
Diff

build: avoid using bundled shapelib
[asterios.dramis@gmail.com: patch imported from Fedora]
---
plugins/importshp/importshp.pro | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
Index: LibreCAD-2.0.8/plugins/importshp/importshp.pro
===================================================================
--- LibreCAD-2.0.8.orig/plugins/importshp/importshp.pro
+++ LibreCAD-2.0.8/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
win32 {
DLLDESTDIR = ../../windows/resources/plugins
@@ -36,5 +33,3 @@ unix {
TARGET = ../../unix/resources/plugins/$$PLUGIN_NAME
}
}
-
-INCLUDEPATH += shapelib