Page MenuHomeFreeBSD

D51061.id157652.diff
No OneTemporary

D51061.id157652.diff

diff --git a/math/dune-common/Makefile b/math/dune-common/Makefile
--- a/math/dune-common/Makefile
+++ b/math/dune-common/Makefile
@@ -32,7 +32,8 @@
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so
-OPTIONS_DEFINE= DOCS DOXYGEN
+OPTIONS_DEFINE= DOCS DOXYGEN MANPAGES
+OPTIONS_DEFAULT= MANPAGES
OPTIONS_SUB= yes
DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS
@@ -42,6 +43,8 @@
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_IMPLIES= DOCS
+MANPAGES_CMAKE_BOOL= FREEBSD_INSTALL_MANPAGES
+
PORTDOCS= *
post-install:
diff --git a/math/dune-common/files/patch-CMakeLists.txt b/math/dune-common/files/patch-CMakeLists.txt
deleted file mode 100644
--- a/math/dune-common/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,12 +0,0 @@
---- CMakeLists.txt.orig 2021-08-31 14:25:00 UTC
-+++ CMakeLists.txt
-@@ -16,7 +16,9 @@ dune_project()
- # add subdirectories to execute CMakeLists.txt there
- add_subdirectory(bin)
- add_subdirectory(cmake)
-+if (FREEBSD_INSTALL_DOCS)
- add_subdirectory(doc)
-+endif()
- add_subdirectory(dune)
- add_subdirectory(lib)
- add_subdirectory(share)
diff --git a/math/dune-common/files/patch-doc_CMakeLists.txt b/math/dune-common/files/patch-doc_CMakeLists.txt
new file mode 100644
--- /dev/null
+++ b/math/dune-common/files/patch-doc_CMakeLists.txt
@@ -0,0 +1,12 @@
+--- doc/CMakeLists.txt.orig 2025-06-26 07:51:35 UTC
++++ doc/CMakeLists.txt
+@@ -1,5 +1,9 @@
++if (FREEBSD_INSTALL_DOCS)
+ add_subdirectory("doxygen")
+ add_subdirectory("buildsystem")
+ add_subdirectory("comm")
++endif()
++if (FREEBSD_INSTALL_MANPAGES)
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dunecontrol.1
+ DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
++endif()
diff --git a/math/dune-common/pkg-plist b/math/dune-common/pkg-plist
--- a/math/dune-common/pkg-plist
+++ b/math/dune-common/pkg-plist
@@ -140,7 +140,7 @@
lib/dunemodules.lib
lib/libdunecommon.so
libdata/pkgconfig/dune-common.pc
-%%DOCS%%share/man/man1/dunecontrol.1.gz
+%%MANPAGES%%share/man/man1/dunecontrol.1.gz
share/bash-completion/completions/dunecontrol
%%DATADIR%%/config.h.cmake
%%DOCS%%%%DATADIR%%/doc/doxygen/Doxystyle

File Metadata

Mime Type
text/plain
Expires
Tue, Jul 21, 11:39 AM (7 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35315089
Default Alt Text
D51061.id157652.diff (2 KB)

Event Timeline