summaryrefslogtreecommitdiff
path: root/x11/gnome-shell/Makefile
blob: eb43216e27ee661b432c188d064785310c845a1a (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
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
PORTNAME=	gnome-shell
PORTVERSION=	47.10
CATEGORIES=	x11 gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Next generation GNOME desktop shell
WWW=		https://gitlab.gnome.org/GNOME/gnome-shell

LICENSE=	GPLv2+ LGPL21+
LICENSE_COMB=	multi

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}docutils>0:textproc/py-docutils@${PY_FLAVOR} \
		gsettings-desktop-schemas>0:devel/gsettings-desktop-schemas \
		sassc:textproc/sassc

LIB_DEPENDS=	libgcr-4.so:security/gcr \
		libgjs.so:lang/gjs \
		libgraphene-1.0.so:graphics/graphene \
		libical.so:devel/libical \
		libjson-glib-1.0.so:devel/json-glib \
		libmutter-15.so:x11-wm/mutter \
		libp11-kit.so:security/p11-kit \
		libpolkit-agent-1.so:sysutils/polkit \
		libpulse-mainloop-glib.so:audio/pulseaudio \
		libpipewire-0.3.so:multimedia/pipewire \
		libibus-1.0.so:textproc/ibus

RUN_DEPENDS=	gdm:x11/gdm \
		tecla:x11/tecla

USES=		compiler:c11 cpe gettext-tools gnome gstreamer localbase \
		meson pathfix pkgconfig python:build shebangfix tar:xz xorg
CPE_VENDOR=	gnome
USE_GNOME=	atk evolutiondataserver3 gdkpixbuf glib20 \
		gnomedesktop4 gnomecontrolcenter3 gtk40 introspection \
		libxml2 libxslt:build
USE_XORG=	x11 xfixes xext

PORTSCOUT=	limit:^47\.

SHEBANG_FILES=	src/gnome-shell-test-tool.in \
		src/data-to-c.py
# These libs are found via rpath mechanism
NO_SHLIB_REQUIRES_GLOB=	libmutter-clutter-* libmutter-cogl-* libmutter-mtk-*

OPTIONS_DEFINE=	EXAMPLES
OPTIONS_DEFAULT=	EXAMPLES

EXAMPLES_SUB_FILES=	pkg-message xprofile

MESON_ARGS=	-Dnetworkmanager=false \
		-Dportal_helper=false \
		-Dsystemd=false \
		-Dtests=false \
		-Dextensions_tool=false

GLIB_SCHEMAS=	00_org.gnome.shell.gschema.override \
		org.gnome.shell.gschema.xml \
		org.gnome.Extensions.gschema.xml

post-extract:
	@${CP} ${FILESDIR}/*.xml ${WRKSRC}/data/dbus-interfaces

post-patch:
	@${REINPLACE_CMD} -e "s,python3,${PYTHON_VERSION},g" \
		${WRKSRC}/meson.build

pre-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}

post-install-EXAMPLES-on:
	@${INSTALL_SCRIPT} ${WRKDIR}/xprofile ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>