1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/x11/waybar/Makefile
2020-10-05 00:07:53 +00:00

104 lines
3.3 KiB
Makefile

# $FreeBSD$
PORTNAME= waybar
DISTVERSION= 0.9.4
PORTREVISION= 1
CATEGORIES= x11
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= e4427cb017f2.patch:-p1 # https://github.com/Alexays/Waybar/pull/849
PATCHFILES+= 22e46ea6cc64.patch:-p1 # https://github.com/Alexays/Waybar/pull/849
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
USES= compiler:c++17-lang gnome meson pkgconfig
USE_GITHUB= yes
USE_GNOME= gtkmm30
GH_ACCOUNT= Alexays
GH_PROJECT= Waybar
CPPFLAGS+= -D_WITH_GETLINE # XXX Remove after FreeBSD 11 EOL
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
post-patch: apply-slist
.endif
OPTIONS_DEFINE= DBUS GLS ICONSFONT MANPAGES MPD PULSEAUDIO SNDIO UDEV
OPTIONS_DEFAULT=DBUS GLS ICONSFONT MANPAGES MPD PULSEAUDIO SNDIO UDEV
DBUS_LIB_DEPENDS= libdbusmenu-gtk3.so:devel/libdbusmenu
DBUS_MESON_ENABLED= dbusmenu-gtk
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}-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-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}.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
.include <bsd.port.mk>