blob: 34d86ecb4ff9bf5ab0833fd5f8b0aca23096cb22 (
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
|
# $FreeBSD$
PORTNAME= swappy
DISTVERSIONPREFIX= v
DISTVERSION= 1.2.0
CATEGORIES= graphics
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Snapshot editing for Wayland (a la Snappy on macOS)
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c11 gnome meson pkgconfig
USE_GITHUB= yes
USE_GNOME= cairo gdkpixbuf2 gtk30
GH_ACCOUNT= jtheoof
PLIST_FILES= bin/${PORTNAME}
OPTIONS_DEFINE= CLIPBOARD ICONSFONT MANPAGES NOTIFY
OPTIONS_DEFAULT=CLIPBOARD ICONSFONT MANPAGES NOTIFY
CLIPBOARD_DESC= Copy to clipboard support
CLIPBOARD_RUN_DEPENDS= wl-copy:x11/wl-clipboard
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/man1/${PORTNAME}.1.gz
NOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify
NOTIFY_MESON_ENABLED= libnotify
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>
|