git: 68f60fd8f526 - main - sysutils/bareos-server: Disable -Werror flag in traymonitor

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sat, 29 Oct 2022 19:39:31 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=68f60fd8f526820a7114064213613a0195c2708c

commit 68f60fd8f526820a7114064213613a0195c2708c
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-10-29 19:20:57 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-10-29 19:38:58 +0000

    sysutils/bareos-server: Disable -Werror flag in traymonitor
    
    When -DNDEBUG is defined -Werror needs to be disabled otherwise
    (leaf) port won't build
    
    This is the same fix as for client leaf port
    Commit: 15fd15478b93d0264ea9bd8af4acff12c2dbde95
    
    PR:             266721
    Reviewed by:    antoine (via exp-run)
    Approved by:    portmgr (blanket, build fix)
---
 sysutils/bareos-server/Makefile.common | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sysutils/bareos-server/Makefile.common b/sysutils/bareos-server/Makefile.common
index 9386c35cd09e..efd76eea1dfe 100644
--- a/sysutils/bareos-server/Makefile.common
+++ b/sysutils/bareos-server/Makefile.common
@@ -1,5 +1,8 @@
 post-patch:
 	@${REINPLACE_CMD}  '76,79d' ${WRKSRC}/CMakeLists.txt
+.if ${PKGNAMESUFFIX} == "-traymonitor"
+	@${REINPLACE_CMD} -e 's|-Werror -Wall|-Wall|g' ${PATCH_WRKSRC}/core/CMakeLists.txt
+.endif
 
 post-build:
 .if ${PKGNAMEPREFIX} == "nagios-check_"