blob: 85351981b7c32215953eccb248d9e514a6384c34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
PORTNAME= sway
DISTVERSION= 0.4
PORTREVISION= 1
CATEGORIES= x11-wm wayland
PKGNAMESUFFIX= ${GH_PROJECT:S/${PORTNAME}//}
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Sway, but with eye candy!
WWW= https://github.com/WillPower3309/swayfx
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \
wayland-protocols>=1.24:graphics/wayland-protocols
LIB_DEPENDS= libjson-c.so:devel/json-c \
libevdev.so:devel/libevdev \
libudev.so:devel/libudev-devd \
libpcre2-8.so:devel/pcre2 \
libwayland-egl.so:graphics/wayland \
libscenefx.so:x11-toolkits/scenefx \
libwlroots.so:x11-toolkits/wlroots \
libinput.so:x11/libinput \
libxkbcommon.so:x11/libxkbcommon
USES= compiler:c11 gnome meson pkgconfig xorg
USE_GITHUB= yes
USE_GNOME= cairo pango
USE_XORG= pixman
GH_ACCOUNT= WillPower3309
GH_PROJECT= swayfx
MESON_ARGS= -Dsd-bus-provider=basu
CONFLICTS_INSTALL= ${PORTNAME} ${PORTNAME}-devel
OPTIONS_DEFINE= BASU MANPAGES PIXBUF SWAYBG X11
OPTIONS_DEFAULT=BASU MANPAGES PIXBUF SWAYBG X11
OPTIONS_SUB= yes
BASU_DESC= Tray in swaybar via basu
BASU_LIB_DEPENDS= libbasu.so:devel/basu
BASU_MESON_ENABLED= tray
MANPAGES_BUILD_DEPENDS= scdoc>=1.9.2:textproc/scdoc
MANPAGES_MESON_ENABLED= man-pages
PIXBUF_USE= GNOME=gdkpixbuf2
PIXBUF_MESON_ENABLED= gdk-pixbuf
SWAYBG_DESC= Default command to set background
SWAYBG_RUN_DEPENDS= swaybg:x11/swaybg
X11_USE= XORG=xcb
X11_LIB_DEPENDS= libxcb-icccm.so:x11/xcb-util-wm
X11_MESON_ENABLED= xwayland
post-patch:
# Let @sample handle default files under etc/
@${REINPLACE_CMD} -e '/config\.in/{ N; s/@BASENAME@/&.sample/; }' \
${WRKSRC}/meson.build
# Extract (snapshot) version from the port instead of meson.build
@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
-e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
${WRKSRC}/meson.build
.include <bsd.port.mk>
|