opnsense-ports/comms/svxlink/files/patch-src_doc_man_CMakeList...

41 lines
1.3 KiB
Plaintext

--- src/doc/man/CMakeLists.txt.orig 2018-03-04 18:59:29 UTC
+++ src/doc/man/CMakeLists.txt
@@ -1,11 +1,18 @@
# Set up which man pages to build and install
+if(QT_ONLY)
+ set(MAN_PAGES qtel.1)
+else(QT_ONLY)
set(MAN_PAGES svxlink.1 svxlink.conf.5 remotetrx.1 remotetrx.conf.5
- siglevdetcal.1 devcal.1 svxreflector.1 svxreflector.conf.5 qtel.1
+ siglevdetcal.1 devcal.1 svxreflector.1 svxreflector.conf.5
ModuleHelp.conf.5 ModuleParrot.conf.5 ModuleEchoLink.conf.5
ModuleTclVoiceMail.conf.5 ModuleDtmfRepeater.conf.5
ModulePropagationMonitor.conf.5 ModuleSelCallEnc.conf.5
ModuleFrn.conf.5
-)
+ )
+if(USE_QT)
+ set(MAN_PAGES ${MAN_PAGES} qtel.1)
+endif(USE_QT)
+endif(QT_ONLY)
# Search for the gzip and groff programs. Error out if not found.
include(FindGZIP)
@@ -31,11 +38,11 @@ if(GROFF_TOOL AND GZIP_TOOL)
DESTINATION ${MAN_INSTALL_DIR}/man${sec}
OPTIONAL
)
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${man}.html
- DESTINATION ${DOC_INSTALL_DIR}/man/man${sec}
- OPTIONAL
- )
- set(TARGETS ${TARGETS} ${man}.gz ${man}.html)
+ #install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${man}.html
+ # DESTINATION ${DOC_INSTALL_DIR}/man/man${sec}
+ # OPTIONAL
+ #)
+ set(TARGETS ${TARGETS} ${man}.gz)
endforeach(man)
# Add a custom target to trigger the build of the man pages