aboutsummaryrefslogtreecommitdiff
path: root/x11/grim/Makefile
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2019-01-13 20:13:20 +0000
committerJan Beich <jbeich@FreeBSD.org>2019-01-13 20:13:20 +0000
commitbea55972c51c57cd08625d30061ae4c8587631f0 (patch)
treea722815a274e5cd257134cd2fcafdddfc9cac8e1 /x11/grim/Makefile
parent65db53357802bac64fc74f62a380d40a8202d65b (diff)
downloadports-bea55972c51c57cd08625d30061ae4c8587631f0.tar.gz
ports-bea55972c51c57cd08625d30061ae4c8587631f0.zip
Notes
Diffstat (limited to 'x11/grim/Makefile')
-rw-r--r--x11/grim/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/x11/grim/Makefile b/x11/grim/Makefile
new file mode 100644
index 000000000000..60a1ba7b866b
--- /dev/null
+++ b/x11/grim/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+PORTNAME= grim
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0
+CATEGORIES= x11
+
+MAINTAINER= jbeich@FreeBSD.org
+COMMENT= Grab images from a Wayland compositor
+
+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 jpeg meson pkgconfig
+USE_GITHUB= yes
+USE_GNOME= cairo
+GH_ACCOUNT= emersion
+MESON_ARGS= -Dwerror=false # https://github.com/emersion/grim/issues/37
+PLIST_FILES= bin/${PORTNAME}
+
+OPTIONS_DEFINE= MANPAGES
+OPTIONS_DEFAULT=MANPAGES
+
+MANPAGES_BUILD_DEPENDS= scdoc:textproc/scdoc
+MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz
+
+post-patch-MANPAGES-off:
+ @${REINPLACE_CMD} -i '' "s/'scdoc/&-disabled/" ${WRKSRC}/meson.build
+
+.include <bsd.port.mk>