mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
40 lines
940 B
Makefile
40 lines
940 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= swaybg
|
|
DISTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= Wallpaper tool for Wayland compositors
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= wayland-protocols>=1.14:graphics/wayland-protocols
|
|
LIB_DEPENDS= libwayland-client.so:graphics/wayland
|
|
|
|
USES= compiler:c11 gnome meson pkgconfig
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= swaywm
|
|
USE_GNOME= cairo
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= MANPAGES PIXBUF
|
|
OPTIONS_DEFAULT=MANPAGES PIXBUF
|
|
|
|
MANPAGES_BUILD_DEPENDS= scdoc:textproc/scdoc
|
|
MANPAGES_MESON_ENABLED= man-pages
|
|
MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz
|
|
|
|
PIXBUF_USE= GNOME=gdkpixbuf2
|
|
PIXBUF_MESON_ENABLED= gdk-pixbuf
|
|
|
|
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>
|