Index: x11-wm/Makefile =================================================================== --- x11-wm/Makefile +++ x11-wm/Makefile @@ -111,6 +111,7 @@ SUBDIR += spectrwm SUBDIR += stumpwm SUBDIR += subtle + SUBDIR += sway SUBDIR += swm SUBDIR += tinywm SUBDIR += transset Index: x11-wm/sway/Makefile =================================================================== --- /dev/null +++ x11-wm/sway/Makefile @@ -0,0 +1,37 @@ +# Created by: Johannes Lundberg +# $FreeBSD$ + +PORTNAME= sway +DISTVERSION= 0.15 +CATEGORIES= x11-wm + +MAINTAINER= johalun0@gmail.com +COMMENT= i3-compatible Wayland compositor + +LICENSE= MIT +LICENSE_FILES= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= a2x:textproc/asciidoc +LIB_DEPENDS= libwlc.so:x11-toolkits/wlc \ + libwayland-server.so:graphics/wayland \ + libepoll-shim.so:devel/libepoll-shim \ + libpcre.so:devel/pcre \ + libjson-c.so:devel/json-c \ + libxkbcommon.so:x11/libxkbcommon \ + libdbus-1.so:devel/dbus \ + libinput.so:x11/libinput \ + libMagickCore-6.so:graphics/ImageMagick \ + libavutil.so:multimedia/ffmpeg + +USE_GITHUB= yes +GH_ACCOUNT= swaywm + +USES= cmake:outsource gettext-runtime gnome pathfix pkgconfig +USE_GNOME= cairo pango gdkpixbuf2 + +OPTIONS_SUB= yes +OPTIONS_DEFINE= SUID +OPTIONS_DEFAULT=SUID +SUID_DESC= Install sway binary with setuid bit set + +.include Index: x11-wm/sway/distinfo =================================================================== --- /dev/null +++ x11-wm/sway/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1512841437 +SHA256 (swaywm-sway-0.15_GH0.tar.gz) = 80e1f0f255b2c47b956c6f850a6fa1c22c648081d2ec5fcf0ec0f836b5a34cbc +SIZE (swaywm-sway-0.15_GH0.tar.gz) = 5394885 Index: x11-wm/sway/files/patch-CMakeLists.txt =================================================================== --- /dev/null +++ x11-wm/sway/files/patch-CMakeLists.txt @@ -0,0 +1,20 @@ +--- CMakeLists.txt.orig 2017-12-09 17:54:19 UTC ++++ CMakeLists.txt +@@ -7,7 +7,7 @@ set(CMAKE_C_STANDARD 99) + set(CMAKE_C_EXTENSIONS OFF) + set(CMAKE_POSITION_INDEPENDENT_CODE ON) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) +-add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-result -Werror) ++add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-result -Werror -Wno-error=pointer-bool-conversion) + + list(INSERT CMAKE_MODULE_PATH 0 + ${CMAKE_CURRENT_SOURCE_DIR}/CMake +@@ -141,7 +141,7 @@ install( + if(default-wallpaper) + install( + DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/assets/ +- DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/backgrounds/sway ++ DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/sway/backgrounds + COMPONENT data + FILES_MATCHING PATTERN "*Wallpaper*" + ) Index: x11-wm/sway/files/patch-config.in =================================================================== --- /dev/null +++ x11-wm/sway/files/patch-config.in @@ -0,0 +1,13 @@ +--- config.in.orig 2017-11-06 23:16:22 UTC ++++ config.in +@@ -20,8 +20,8 @@ set $menu dmenu_run + + ### Output configuration + # +-# Default wallpaper (more resolutions are available in __DATADIR__/backgrounds/sway/) +-output * bg __DATADIR__/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill ++# Default wallpaper (more resolutions are available in __DATADIR__/sway/backgrounds/) ++output * bg __DATADIR__/sway/backgrounds/Sway_Wallpaper_Blue_1920x1080.png fill + # + # Example configuration: + # Index: x11-wm/sway/pkg-descr =================================================================== --- /dev/null +++ x11-wm/sway/pkg-descr @@ -0,0 +1,9 @@ +Sway was created to fill the need of an i3-like window manager for Wayland. +The upstream i3 developers have no intention of porting i3 to Wayland, and +projects proposed by others ended up as vaporware. Many thanks to the i3 +folks for providing such a great piece of software, so good that your users +would rather write an entirely new window manager from scratch that behaved +exactly like i3 rather than switch to something else. Launch sway directly +from a tty or via your favorite Wayland-compatible login manager. + +WWW: http://swaywm.org/ Index: x11-wm/sway/pkg-message =================================================================== --- /dev/null +++ x11-wm/sway/pkg-message @@ -0,0 +1,2 @@ +For configuration copy the default config file and use as template. +$ mkdir -p $HOME/.config/sway && cp $PREFIX/etc/sway/config $HOME/.config/sway/config Index: x11-wm/sway/pkg-plist =================================================================== --- /dev/null +++ x11-wm/sway/pkg-plist @@ -0,0 +1,28 @@ +%%SUID%%@(,,4755) bin/sway +%%NO_SUID%%bin/sway +bin/swaybar +bin/swaybg +bin/swaygrab +bin/swaylock +bin/swaymsg +etc/pam.d/swaylock +%%ETCDIR%%/config +%%ETCDIR%%/security.d/00-defaults +%%ETCDIR%%/security.d/10-freebsd +man/man1/sway.1.gz +man/man1/swaygrab.1.gz +man/man1/swaylock.1.gz +man/man1/swaymsg.1.gz +man/man5/sway-bar.5.gz +man/man5/sway-input.5.gz +man/man5/sway.5.gz +man/man7/sway-security.7.gz +%%DATADIR%%/backgrounds/Sway_Wallpaper_Blue_1136x640.png +%%DATADIR%%/backgrounds/Sway_Wallpaper_Blue_1136x640_Portrait.png +%%DATADIR%%/backgrounds/Sway_Wallpaper_Blue_1366x768.png +%%DATADIR%%/backgrounds/Sway_Wallpaper_Blue_1920x1080.png +%%DATADIR%%/backgrounds/Sway_Wallpaper_Blue_2048x1536.png +%%DATADIR%%/backgrounds/Sway_Wallpaper_Blue_2048x1536_Portrait.png +%%DATADIR%%/backgrounds/Sway_Wallpaper_Blue_768x1024.png +%%DATADIR%%/backgrounds/Sway_Wallpaper_Blue_768x1024_Portrait.png +share/wayland-sessions/sway.desktop