File mathgl-libpath.patch of Package mathgl
Index: mathgl-2.1.1/CMakeLists.txt
===================================================================
--- mathgl-2.1.1.orig/CMakeLists.txt
+++ mathgl-2.1.1/CMakeLists.txt
@@ -13,7 +13,7 @@ set(MathGL_VERSION_MINOR 1.1)
include(CMakeDependentOption)
-set(MGL_LIB_INSTALL_DIR "lib" CACHE STRING "Set library install directory")
+set(MGL_LIB_INSTALL_DIR ${LIB_INSTALL_DIR} CACHE STRING "Set library install directory")
option(enable-double "Enable double precision in MathGL library" ON)
option(enable-simple "Slightly increase drawing speed but disable mglDataA class")