    message (STATUS "Building static libraries.")
    set (LIB_TYPE STATIC)
 +	if(WIN32)
-+		add_definitions(-DCMINPACK_NO_DLL)
++		#add_definitions(-DCMINPACK_NO_DLL)
 +	endif(WIN32)
  endif (SHARED_LIBS)
  

+  list(APPEND CPACK_GENERATOR "PackageMaker")
+endif(EXISTS ${PACKAGE_MAKER_PROGRAM})
+ 
+set(CPACK_GENERATOR "${CPACK_GENERATOR}")
+set(CPACK_MONOLITHIC_INSTALL 1)
+set(CPACK_PACKAGE_VERSION_MAJOR "@CMINPACK_MAJOR_VERSION@")

--- cminpack-1.1.3/CMakeLists.txt	2011-02-06 20:49:15.000000000 +0100
+++ cminpack-1.1.3.mine/CMakeLists.txt	2011-05-06 11:16:11.000000000 -0700
@@ -5,9 +5,12 @@
 project (CMINPACK)
 string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)
 
+if(NOT MSVC)
+  set(CMAKE_INSTALL_PREFIX /usr)
+endif(NOT MSVC)
 include(${PROJECT_SOURCE_DIR}/cmake/cminpack_utils.cmake)
 # Set version and OS-specific settings
-set(CMINPACK_VERSION 1.0.90 CACHE STRING "CMinpack version")
