aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2024-08-31 22:21:10 +0000
committerJan Beich <jbeich@FreeBSD.org>2024-08-31 22:39:37 +0000
commitfb052e78c1392cdd5d1327f43937e5e5a16c1306 (patch)
tree2b159f61a986609f9b36b42b84561050ba8db181
parent56802843a138461e31ba5558dba4ec7c20b965c5 (diff)
downloadports-fb052e78c1392cdd5d1327f43937e5e5a16c1306.tar.gz
ports-fb052e78c1392cdd5d1327f43937e5e5a16c1306.zip
x11-wm/wlmaker: build with optimizations
Any optimizations: don't downgrade -O3 to -O2.
-rw-r--r--x11-wm/wlmaker/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/x11-wm/wlmaker/Makefile b/x11-wm/wlmaker/Makefile
index d43e4c5a10e3..921a6beae122 100644
--- a/x11-wm/wlmaker/Makefile
+++ b/x11-wm/wlmaker/Makefile
@@ -1,7 +1,7 @@
PORTNAME= wlmaker
DISTVERSIONPREFIX= v
DISTVERSION= 0.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-wm wayland
MAINTAINER= jbeich@FreeBSD.org
@@ -24,6 +24,7 @@ USE_GNOME= cairo
USE_XORG= xcb
GH_ACCOUNT= phkaeser
GH_TUPLE= phkaeser:libbase:df7ce2a:libbase/submodules/libbase
+CMAKE_OFF= ${WITH_DEBUG:D:Uconfig_DEBUG}
PLIST_FILES= bin/${PORTNAME} \
bin/wlmclock \
share/icons/${PORTNAME}/chrome-48x48.png \
@@ -34,6 +35,10 @@ PLIST_FILES= bin/${PORTNAME} \
${NULL}
post-patch:
+# Respect -O level from global CFLAGS or CMAKE_BUILD_TYPE
+ @${REINPLACE_CMD} '/-O[0-9]/d' \
+ ${WRKSRC}/submodules/libbase/CMakeLists.txt \
+ ${WRKSRC}/CMakeLists.txt
# Respect PREFIX for icons
@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
${WRKSRC}/src/clip.c \