summaryrefslogtreecommitdiff
path: root/net-im/fractal/Makefile
blob: df28ca47a1cbe2e9616723a9b713920bed1db4c8 (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
PORTNAME=	fractal
DISTVERSION=	4.4.2
PORTREVISION=	2
CATEGORIES=	net-im
MASTER_SITES=	https://gitlab.gnome.org/GNOME/${PORTNAME}/-/archive/${DISTVERSION}/
# XXX USES=cargo omits the default source archive by default
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	vishwin@FreeBSD.org
COMMENT=	GTK+ Matrix IM client
WWW=		https://wiki.gnome.org/Apps/Fractal

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

LIB_DEPENDS=	libdbus-1.so:devel/dbus \
		libgmp.so:math/gmp \
		libgspell-1.so:textproc/gspell \
		libhandy-0.0.so:x11-toolkits/libhandy0

USES=		cargo cpe desktop-file-utils gettext gnome gstreamer meson \
		pkgconfig python:build shebangfix ssl
CPE_VENDOR=	gnome
USE_GNOME=	cairo gdkpixbuf2 gtk30 gtksourceview4
USE_GSTREAMER=	bad editing-services

SHEBANG_FILES=	scripts
BINARY_ALIAS=	python3=${PYTHON_CMD}
GLIB_SCHEMAS=	org.gnome.Fractal.gschema.xml

CARGO_BUILD=	no
CARGO_INSTALL=	no
CARGO_TEST=	no
CARGO_TARGET_DIR=	${WRKSRC}/${MESON_BUILD_DIR}/target
MAKE_ENV+=	${CARGO_ENV}

post-install:
.	ifndef WITH_DEBUG
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fractal
.	endif

.include <bsd.port.mk>