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,42 @@ +# Created by: Johannes Lundberg +# $FreeBSD$ + +PORTNAME= sway +PORTVERSION=0.15 +CATEGORIES= wayland + +MAINTAINER= x11@FreeBSD.org +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 + +# For image capture +# libMagickCore-6.so:graphics/ImageMagick +# For video capture +# libavutil.so:multimedia/ffmpeg + +USE_GITHUB= yes +GH_ACCOUNT= swaywm +GH_TAGNAME= 0.15-rc3 + +USES= cmake:outsource gettext-runtime gnome pathfix pkgconfig +USE_GNOME= cairo pango gdkpixbuf2 +USE_GCC= any + +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 = 1508827837 +SHA256 (swaywm-sway-0.15-0.15-rc3_GH0.tar.gz) = 29c56c7394e774ec234883082ebbee480849426860f2e19ff7f86f3492e9a5d8 +SIZE (swaywm-sway-0.15-0.15-rc3_GH0.tar.gz) = 5394636 Index: x11-wm/sway/files/patch-CMakeLists.txt =================================================================== --- /dev/null +++ x11-wm/sway/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2017-10-14 15:24:21 UTC ++++ CMakeLists.txt +@@ -145,7 +145,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-10-08 15:26:45 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,3 @@ +i3-compatible Wayland compositor + +WWW: http://swaywm.org/ Index: x11-wm/sway/pkg-message =================================================================== --- /dev/null +++ x11-wm/sway/pkg-message @@ -0,0 +1,6 @@ +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 + +For more information +WWW: https://github.com/SirCmpwn/sway/ 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