blob: d22ad137f04d9b1264171205a7d8889d9ce39a40 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
PORTNAME= waybar
DISTVERSION= 0.9.12
PORTREVISION= 2
CATEGORIES= x11
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 8b6bc215ccdd.patch:-p1 # https://github.com/Alexays/Waybar/pull/1476
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Highly customizable Wayland bar for Sway and wlroots-based compositors
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols
LIB_DEPENDS= libdate-tz.so:devel/date \
libjsoncpp.so:devel/jsoncpp \
libfmt.so:devel/libfmt \
libspdlog.so:devel/spdlog \
libwayland-client.so:graphics/wayland \
libxkbregistry.so:x11/libxkbcommon
TEST_DEPENDS= catch>0:devel/catch
USES= compiler:c++17-lang gnome meson pkgconfig
USE_GITHUB= yes
USE_GNOME= gtkmm30
GH_ACCOUNT= Alexays
GH_PROJECT= Waybar
PLIST_FILES= bin/${PORTNAME} \
etc/xdg/${PORTNAME}/config \
etc/xdg/${PORTNAME}/style.css
# XXX Add pkg-config support to devel/date
.if exists(${.CURDIR}/files/date.pc.in)
CONFIGURE_ENV+= PKG_CONFIG_PATH="${WRKDIR}"
SUB_FILES+= date.pc
.endif
OPTIONS_DEFINE= DBUS EVDEV GLS ICONSFONT MANPAGES MPD PULSEAUDIO SNDIO UDEV
OPTIONS_DEFAULT=DBUS EVDEV GLS ICONSFONT MANPAGES MPD PULSEAUDIO SNDIO UDEV
DBUS_LIB_DEPENDS= libdbusmenu-gtk3.so:devel/libdbusmenu
DBUS_MESON_ENABLED= dbusmenu-gtk
EVDEV_DESC= Keyboard state via libevdev
EVDEV_BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto
EVDEV_LIB_DEPENDS= libevdev.so:devel/libevdev
EVDEV_MESON_ENABLED= libevdev
GLS_DESC= Use gtk-layer-shell library for popups support
GLS_LIB_DEPENDS= libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell
GLS_MESON_ENABLED= gtk-layer-shell
ICONSFONT_DESC= Install Font Awesome to properly render icons
ICONSFONT_RUN_DEPENDS= font-awesome>0:x11-fonts/font-awesome
MANPAGES_BUILD_DEPENDS= scdoc:textproc/scdoc
MANPAGES_MESON_ENABLED= man-pages
MANPAGES_PLIST_FILES= man/man5/${PORTNAME}-backlight.5.gz \
man/man5/${PORTNAME}-battery.5.gz \
man/man5/${PORTNAME}-bluetooth.5.gz \
man/man5/${PORTNAME}-clock.5.gz \
man/man5/${PORTNAME}-cpu.5.gz \
man/man5/${PORTNAME}-custom.5.gz \
man/man5/${PORTNAME}-disk.5.gz \
man/man5/${PORTNAME}-idle-inhibitor.5.gz \
man/man5/${PORTNAME}-inhibitor.5.gz \
man/man5/${PORTNAME}-keyboard-state.5.gz \
man/man5/${PORTNAME}-memory.5.gz \
man/man5/${PORTNAME}-mpd.5.gz \
man/man5/${PORTNAME}-network.5.gz \
man/man5/${PORTNAME}-pulseaudio.5.gz \
man/man5/${PORTNAME}-river-tags.5.gz \
man/man5/${PORTNAME}-sndio.5.gz \
man/man5/${PORTNAME}-states.5.gz \
man/man5/${PORTNAME}-sway-language.5.gz \
man/man5/${PORTNAME}-sway-mode.5.gz \
man/man5/${PORTNAME}-sway-window.5.gz \
man/man5/${PORTNAME}-sway-workspaces.5.gz \
man/man5/${PORTNAME}-temperature.5.gz \
man/man5/${PORTNAME}-tray.5.gz \
man/man5/${PORTNAME}-wlr-taskbar.5.gz \
man/man5/${PORTNAME}-wlr-workspaces.5.gz \
man/man5/${PORTNAME}.5.gz \
${NULL}
MPD_DESC= Music Player Daemon support
MPD_LIB_DEPENDS= libmpdclient.so:audio/libmpdclient
MPD_MESON_ENABLED= mpd
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_MESON_ENABLED= pulseaudio
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
SNDIO_USES= localbase:ldflags
SNDIO_MESON_ENABLED= sndio
UDEV_DESC= Monitor backlight level via libudev
UDEV_LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
libudev.so:devel/libudev-devd
UDEV_MESON_ENABLED= libudev
post-patch:
# 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
pre-test:
@if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \
${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \
${MAKE} -C${.CURDIR} build MESON_ARGS="${MESON_ARGS} --reconfigure -Dtests=enabled"; \
${TOUCH} ${WRKDIR}/.meson_build_tests; \
fi
.include <bsd.port.mk>
|