1
0
forked from pool/mapserver
mapserver/4788-python-mapscript.patch
Angelos Tzotsos ba1eb1e111 Accepting request 212676 from home:bruno_friedmann:branches:Application:Geo
Updated 6.4.1 upstream
Fixed issue with php_mapscript
Cleaning old merge patches
Redone patches for issue 4788 (targeted to 6.4.2)

OBS-URL: https://build.opensuse.org/request/show/212676
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=97
2014-01-02 23:11:28 +00:00

21 lines
1.0 KiB
Diff

diff --git a/mapscript/python/CMakeLists.txt b/mapscript/python/CMakeLists.txt
index 33945b2..a14c246 100644
--- a/mapscript/python/CMakeLists.txt
+++ b/mapscript/python/CMakeLists.txt
@@ -34,7 +34,14 @@ SWIG_ADD_MODULE(pythonmapscript python ../mapscript.i pygdioctx/pygdioctx.c)
SWIG_LINK_LIBRARIES(pythonmapscript ${PYTHON_LIBRARIES} ${MAPSERVER_LIBMAPSERVER})
set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES PREFIX "")
-set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES OUTPUT_NAME _mapscript)
+set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES OUTPUT_NAME python_mapscript)
+
+if(NOT APPLE)
+ set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES
+ VERSION ${MapServer_VERSION_STRING}
+ SOVERSION ${MapServer_SOVERSION}
+ )
+endif(NOT APPLE)
execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)