Please find below a revision for math/med to install cmake files under the preferred directory /usr/local/lib/cmake instead of -share/cmake.
diff /usr/ports path + /usr/ports commit - c6c36cd6bbc5e5acf7421df73acc4c4f458ba93a blob - 2fd166710aa4a17bcf021d770d2bc000c0d54f1e file + math/med/Makefile --- math/med/Makefile +++ math/med/Makefile @@ -4,7 +4,7 @@ COMMENT = library for reading and writing MED files V = 5.0.0 PKGNAME = med-${V} -REVISION = 0 +REVISION = 1 # Official sources site seems down: # https://files.salome-platform.org/Salome/medfile/med-${V}.tar.bz2 commit - c6c36cd6bbc5e5acf7421df73acc4c4f458ba93a blob - /dev/null file + math/med/patches/patch-CMakeLists_txt (mode 644) --- /dev/null +++ math/med/patches/patch-CMakeLists_txt @@ -0,0 +1,12 @@ +Index: CMakeLists.txt +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -104,7 +104,7 @@ ENDIF(WIN32) + IF(WIN32 AND NOT CYGWIN) + SET(INSTALL_CMAKE_CONFIG_DIR cmake) + ELSE() +- SET(INSTALL_CMAKE_CONFIG_DIR share/cmake/medfile-${MED_STR_VERSION}) ++ SET(INSTALL_CMAKE_CONFIG_DIR lib/cmake/medfile-${MED_STR_VERSION}) + ENDIF() + SET(INSTALL_INCLUDE_DIR include) + commit - c6c36cd6bbc5e5acf7421df73acc4c4f458ba93a blob - 4f758cea0ffdcbcfd53f7e44ecd84cf927f5c27e file + math/med/pkg/PLIST --- math/med/pkg/PLIST +++ math/med/pkg/PLIST @@ -36,11 +36,11 @@ include/medparameter.h include/medprofile.h include/medstructelement.h include/medsubdomain.h +lib/cmake/ +lib/cmake/medfile-${V}/ +lib/cmake/medfile-${V}/MEDFileConfig.cmake +lib/cmake/medfile-${V}/MEDFileConfigVersion.cmake +lib/cmake/medfile-${V}/MEDFileTargets${MODCMAKE_BUILD_SUFFIX} +lib/cmake/medfile-${V}/MEDFileTargets.cmake @lib lib/libmedC.so.${LIBmedC_VERSION} @lib lib/libmedimport.so.${LIBmedimport_VERSION} -share/cmake/ -share/cmake/medfile-${V}/ -share/cmake/medfile-${V}/MEDFileConfig.cmake -share/cmake/medfile-${V}/MEDFileConfigVersion.cmake -share/cmake/medfile-${V}/MEDFileTargets${MODCMAKE_BUILD_SUFFIX} -share/cmake/medfile-${V}/MEDFileTargets.cmake