-Index: mathgl-2.4.3/CMakeLists.txt
-===================================================================
---- mathgl-2.4.3.orig/CMakeLists.txt
-+++ mathgl-2.4.3/CMakeLists.txt
-@@ -157,7 +157,7 @@ if(WIN32)
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -161,7 +161,7 @@
endif(WIN32)
option(enable-double "Enable double precision in MathGL library" ON)
option(enable-opengl "Enable OpenGL support" ON)
option(enable-all-docs "Enable all documentation building")
#option(enable-doc "Enable documentation building")
-@@ -165,7 +165,7 @@ option(enable-all "Enable all core featu
- option(enable-all-widgets "Enable all Widgets")
- option(enable-all-swig "Enable all SWIG based interfaces")
- option(enable-rvalue "Enable move constructor support (need C++11)" OFF)
--option(enable-pthread "Enable POSIX threads support" OFF)
-+option(enable-pthread "Enable POSIX threads support" OFF)
- if(MSVC)
- option(enable-pthr-widget "Enable POSIX threads for widgets" OFF)
- else(MSVC)
-@@ -180,7 +180,7 @@ endif(enable-pthread AND enable-openmp)
+@@ -184,7 +184,7 @@
option(enable-lgpl "Enable only LGPL part of MathGL")
option(enable-mgl2 "Use names 'libmgl2-*' instead of 'libmgl-*'")
option(enable-doc-site "Enable HTML documentation for website")
#CMAKE_DEPENDENT_OPTION(enable-doc-site "Enable HTML documentation for website" OFF "NOT enable-all-docs" ON)
CMAKE_DEPENDENT_OPTION(enable-doc-html "Enable HTML documentation" OFF "NOT enable-all-docs" ON)
-@@ -194,19 +194,19 @@ CMAKE_DEPENDENT_OPTION(enable-mgltex "En
+@@ -198,19 +198,19 @@
CMAKE_DEPENDENT_OPTION(enable-zlib "Enable zlib support" ON "NOT enable-all" ON)
CMAKE_DEPENDENT_OPTION(enable-png "Enable png support" ON "NOT enable-all" ON)
# msvc fwprintf print char* for the specifier of "%s" format
if(MSVC AND MSVC_VERSION GREATER 1899)
-@@ -243,11 +243,11 @@ if(enable-qt4 OR enable-qt5)
+@@ -247,11 +247,11 @@
# endif(NOT enable-opengl)
endif(enable-qt4 OR enable-qt5)
Provide support for both python2 and python3 interfaces
-Index: mathgl-2.4.2.1/lang/python2/CMakeLists.txt
-===================================================================
--- /dev/null
-+++ mathgl-2.4.2.1/lang/python2/CMakeLists.txt
++++ b/lang/python2/CMakeLists.txt
@@ -0,0 +1,60 @@
+set(src_imp_dep
+../../include/mgl2/type.h
+endif(enable-python)
+
+set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${mgl_clean_files}")
-Index: mathgl-2.4.2.1/lang/python3/CMakeLists.txt
-===================================================================
--- /dev/null
-+++ mathgl-2.4.2.1/lang/python3/CMakeLists.txt
++++ b/lang/python3/CMakeLists.txt
@@ -0,0 +1,70 @@
+set(src_imp_dep
+../../include/mgl2/type.h
+endif(enable-python)
+
+set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${mgl_clean_files}")
-Index: mathgl-2.4.2.1/lang/numpy.i
-===================================================================
---- mathgl-2.4.2.1.orig/lang/numpy.i
-+++ mathgl-2.4.2.1/lang/numpy.i
+--- a/lang/numpy.i
++++ b/lang/numpy.i
@@ -107,11 +107,12 @@
if (PyDict_Check( py_obj)) return "dict" ;
if (PyList_Check( py_obj)) return "list" ;
}
/* Given a NumPy typecode, return a string describing the type.
-Index: mathgl-2.4.2.1/lang/CMakeLists.txt
-===================================================================
---- mathgl-2.4.2.1.orig/lang/CMakeLists.txt
-+++ mathgl-2.4.2.1/lang/CMakeLists.txt
-@@ -17,52 +17,6 @@ if(NOT SWIG_FOUND)
+--- a/lang/CMakeLists.txt
++++ b/lang/CMakeLists.txt
+@@ -17,52 +17,6 @@
endif(NOT SWIG_FOUND)
INCLUDE(${SWIG_USE_FILE})
if(enable-lua)
INCLUDE(FindLua51)
if(NOT LUA51_FOUND)
-@@ -145,4 +99,8 @@ message(STATUS "${oct_prog} ${oct_host}
+@@ -145,4 +99,8 @@
endif(enable-octave-install)
set(mgl_clean_files ${mgl_clean_files} mathgl)
endif(enable-octave)
+add_subdirectory( python3 )
+
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${mgl_clean_files}")
-Index: mathgl-2.4.2.1/CMakeLists.txt
-===================================================================
---- mathgl-2.4.2.1.orig/CMakeLists.txt
-+++ mathgl-2.4.2.1/CMakeLists.txt
-@@ -9,6 +9,10 @@ set(mgl_clean_files )
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -6,6 +6,10 @@
set(MGL_DEP_LIBS)
add_definitions(-DMGL_SRC)