blob: 120c871b57c718e326ea99d2c1f3840e404acae0 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
PORTNAME= swayimg
DISTVERSIONPREFIX= v
DISTVERSION= 1.12
PORTREVISION= 2
CATEGORIES= x11 wayland
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Image viewer for Sway/Wayland
WWW= https://github.com/artemsen/swayimg
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols
LIB_DEPENDS= libjson-c.so:devel/json-c \
libwayland-client.so:graphics/wayland \
libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig \
libxkbcommon.so:x11/libxkbcommon
USES= meson pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= artemsen
MESON_ARGS= -Dversion="${DISTVERSIONFULL}"
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz \
man/man5/${PORTNAME}rc.5.gz \
share/applications/${PORTNAME}.desktop \
share/icons/hicolor/64x64/apps/${PORTNAME}.png \
${NULL}
# XXX Drop after FreeBSD 13.4 EOL around 2026-01-31
# https://cgit.freebsd.org/src/commit/?id=af93fea71038
.if !exists(/usr/include/sys/timerfd.h)
LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim
.endif
OPTIONS_DEFINE= BASH GIF HEIF JPEG JXL LIBEXIF LIBRSVG2 OPENEXR PNG TIFF WEBP ZSH
OPTIONS_DEFAULT=BASH GIF HEIF JPEG JXL LIBEXIF LIBRSVG2 OPENEXR PNG TIFF WEBP ZSH
OPTIONS_EXCLUDE=${LIBRSVG2_DEFAULT:Mlegacy:C/.+/LIBRSVG2/}
BASH_BUILD_DEPENDS= bash-completion>0:shells/bash-completion
BASH_MESON_ENABLED= bash
BASH_PLIST_FILES= share/bash-completion/completions/${PORTNAME}
GIF_LIB_DEPENDS= libgif.so:graphics/giflib
GIF_USES= localbase:ldflags
GIF_MESON_ENABLED= gif
HEIF_LIB_DEPENDS= libheif.so:graphics/libheif
HEIF_MESON_ENABLED= heif
JPEG_USES= jpeg
JPEG_MESON_ENABLED= jpeg
JXL_LIB_DEPENDS= libjxl.so:graphics/libjxl
JXL_MESON_ENABLED= jxl
LIBEXIF_LIB_DEPENDS= libexif.so:graphics/libexif
LIBEXIF_MESON_ENABLED= exif
LIBRSVG2_USES= gnome
LIBRSVG2_USE= GNOME=cairo,librsvg2
LIBRSVG2_MESON_ENABLED= svg
OPENEXR_LIB_DEPENDS= libOpenEXR.so:graphics/openexr
OPENEXR_MESON_ENABLED= exr
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_MESON_ENABLED= png
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
TIFF_MESON_ENABLED= tiff
WEBP_LIB_DEPENDS= libwebpdemux.so:graphics/webp
WEBP_MESON_ENABLED= webp
ZSH_MESON_ENABLED= zsh
ZSH_PLIST_FILES= share/zsh/site-functions/_${PORTNAME}
post-patch:
# Respect PREFIX for system-wide config
@${REINPLACE_CMD} 's,/etc,${PREFIX}&,' \
${WRKSRC}/extra/${PORTNAME}rc.5 \
${WRKSRC}/src/config.c
.include <bsd.port.mk>
|