diff --git a/x11-wm/wlmaker/Makefile b/x11-wm/wlmaker/Makefile index fb929358f3e1..6ede9a25dd47 100644 --- a/x11-wm/wlmaker/Makefile +++ b/x11-wm/wlmaker/Makefile @@ -1,51 +1,52 @@ PORTNAME= wlmaker DISTVERSIONPREFIX= v DISTVERSION= 0.1-430 DISTVERSIONSUFFIX= -ged7a302 CATEGORIES= x11-wm wayland PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES+= 0179c3c5a837.patch:-p1 # https://github.com/phkaeser/libbase/pull/2 PATCHFILES+= 811db3b1582a.patch:-p1 # https://github.com/phkaeser/libbase/pull/2 PATCHFILES+= 486758619471.patch:-p1 # https://github.com/phkaeser/wlmaker/pull/11 PATCHFILES+= 3a64446b128a.patch:-p1 # https://github.com/phkaeser/wlmaker/pull/11 PATCHFILES+= 2a7108e964e0.patch:-p1 # https://github.com/phkaeser/wlmaker/pull/11 MAINTAINER= jbeich@FreeBSD.org COMMENT= Wayland compositor inspired by Window Maker WWW= https://github.com/phkaeser/wlmaker LICENSE= APACHE20 BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \ wayland-protocols>=1.31:graphics/wayland-protocols LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \ libwayland-server.so:graphics/wayland \ libwlroots.so:x11-toolkits/wlroots \ libxkbcommon.so:x11/libxkbcommon USES= cmake compiler:c11 gnome pkgconfig USE_GITHUB= yes USE_GNOME= cairo GH_ACCOUNT= phkaeser GH_TUPLE= phkaeser:libbase:c215f7d:libbase/submodules/libbase +CFLAGS+= -ffile-prefix-map="${WRKSRC}"= LDFLAGS+= -Wl,--as-needed # https://github.com/phkaeser/wlmaker/issues/12 PLIST_FILES= bin/${PORTNAME} \ bin/wlmclock \ share/icons/${PORTNAME}/chrome-48x48.png \ share/icons/${PORTNAME}/clip-48x48.png \ share/icons/${PORTNAME}/firefox-48x48.png \ share/icons/${PORTNAME}/terminal-48x48.png \ ${NULL} post-patch: # Drop dependency on unreleased version of libwayland @${REINPLACE_CMD} -e 's/1\.22\.90/1.22.0/' \ ${WRKSRC}/CMakeLists.txt # Respect LOCALBASE for apps and use open source Chrome @${REINPLACE_CMD} -e 's,/usr/bin,${LOCALBASE}/bin,' \ -e 's/google-chrome/chrome/' \ ${WRKSRC}/src/dock.c \ ${WRKSRC}/src/${PORTNAME}.c .include diff --git a/x11-wm/wlmaker/files/patch-src_CMakeLists.txt b/x11-wm/wlmaker/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..3c7f0846bff4 --- /dev/null +++ b/x11-wm/wlmaker/files/patch-src_CMakeLists.txt @@ -0,0 +1,13 @@ +https://github.com/phkaeser/wlmaker/issues/14 + +--- src/CMakeLists.txt.orig 2024-01-14 14:29:59 UTC ++++ src/CMakeLists.txt +@@ -81,8 +81,6 @@ TARGET_COMPILE_DEFINITIONS( + + TARGET_COMPILE_DEFINITIONS( + wlmaker PRIVATE WLMAKER_ICON_DATA_DIR="${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/wlmaker") +-TARGET_COMPILE_DEFINITIONS( +- wlmaker PRIVATE WLMAKER_SOURCE_DIR="${PROJECT_SOURCE_DIR}") + + TARGET_COMPILE_OPTIONS( + wlmaker PRIVATE