/
Makefile
42 lines (36 loc) · 1.26 KB
/
Makefile
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
PORTNAME= wl-clipboard
DISTVERSIONPREFIX= v
DISTVERSION= 2.2.1
CATEGORIES= x11 wayland
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Command-line copy/paste utilities for Wayland
WWW= https://github.com/bugaevc/wl-clipboard
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= wayland-protocols>=1.12:graphics/wayland-protocols
LIB_DEPENDS= libwayland-client.so:graphics/wayland
USES= meson pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= bugaevc
PLIST_FILES= bin/wl-copy \
bin/wl-paste \
man/man1/wl-clipboard.1.gz \
man/man1/wl-copy.1.gz \
man/man1/wl-paste.1.gz \
share/bash-completion/completions/wl-copy \
share/bash-completion/completions/wl-paste \
share/fish/vendor_completions.d/wl-copy.fish \
share/fish/vendor_completions.d/wl-paste.fish \
share/zsh/site-functions/_wl-copy \
share/zsh/site-functions/_wl-paste
post-patch:
@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
${WRKSRC}/completions/fish/meson.build
# Search mime-support (etc/mime.types) and shared-mime-info (share/mime/types)
@${REINPLACE_CMD} -e 's,/usr/share,${LOCALBASE}/share,' \
-e '/local/!s,/etc,${LOCALBASE}&,' \
${WRKSRC}/completions/bash/wl-copy \
${WRKSRC}/completions/zsh/_wl-copy \
${WRKSRC}/data/${PORTNAME}.1 \
${WRKSRC}/src/util/files.c
.include <bsd.port.mk>