$NetBSD$

Support combined build of shared and static libraries.

--- BLAS/SRC/CMakeLists.txt.orig	2017-11-13 04:15:54.000000000 +0000
+++ BLAS/SRC/CMakeLists.txt
@@ -104,3 +104,11 @@ set_target_properties(
   SOVERSION ${LAPACK_MAJOR_VERSION}
   )
 lapack_install_library(blas)
+if(BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
+  add_library(blas_static STATIC ${SOURCES})
+  set_target_properties(
+    blas_static PROPERTIES
+    OUTPUT_NAME blas
+    )
+  lapack_install_library(blas_static)
+endif()
