2020-06-25 04:17:52 +00:00
|
|
|
PORTNAME= swappy
|
|
|
|
DISTVERSIONPREFIX= v
|
2021-02-20 20:26:24 +00:00
|
|
|
DISTVERSION= 1.3.1
|
2020-06-25 04:24:02 +00:00
|
|
|
CATEGORIES= graphics
|
2020-06-25 04:17:52 +00:00
|
|
|
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= Snapshot editing for Wayland (a la Snappy on macOS)
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2020-07-05 19:45:35 +00:00
|
|
|
USES= compiler:c11 desktop-file-utils gettext-tools gnome meson pkgconfig
|
2020-06-25 04:17:52 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
USE_GNOME= cairo gdkpixbuf2 gtk30
|
|
|
|
GH_ACCOUNT= jtheoof
|
2020-07-05 19:45:35 +00:00
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
|
|
share/applications/${PORTNAME}.desktop \
|
|
|
|
share/icons/hicolor/scalable/apps/${PORTNAME}.svg \
|
2021-02-18 01:14:20 +00:00
|
|
|
share/locale/de/LC_MESSAGES/${PORTNAME}.mo \
|
|
|
|
share/locale/en/LC_MESSAGES/${PORTNAME}.mo \
|
|
|
|
share/locale/pt_BR/LC_MESSAGES/${PORTNAME}.mo \
|
|
|
|
share/locale/tr/LC_MESSAGES/${PORTNAME}.mo \
|
|
|
|
${NULL}
|
|
|
|
|
2020-07-05 19:45:35 +00:00
|
|
|
INSTALLS_ICONS= yes
|
2020-06-25 04:17:52 +00:00
|
|
|
|
2021-02-18 01:14:20 +00:00
|
|
|
OPTIONS_DEFINE= CLIPBOARD ICONSFONT MANPAGES
|
|
|
|
OPTIONS_DEFAULT=CLIPBOARD ICONSFONT MANPAGES
|
2020-06-25 04:17:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-06-25 04:31:10 +00:00
|
|
|
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
|
|
|
|
|
2020-06-25 04:17:52 +00:00
|
|
|
.include <bsd.port.mk>
|