aboutsummaryrefslogtreecommitdiff
path: root/x11/gnome-shell/Makefile
blob: 999914a462be1db076440c34b85e89c2ac6e599b (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
77
78
79
80
81
82
83
84
85
# Created by: Pawel Worach <pawel.worach@gmail.com>
# $FreeBSD$

PORTNAME=	gnome-shell
PORTVERSION=	3.36.6
PORTREVISION=	4
CATEGORIES=	x11 gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Next generation GNOME desktop shell

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	docbook-xsl>=0:textproc/docbook-xsl \
		sassc:textproc/sassc \
		gnome-control-center:sysutils/gnome-control-center \
		a2x:textproc/asciidoc \
		${LOCALBASE}/share/bash-completion/bash_completion.sh:shells/bash-completion
LIB_DEPENDS=	libstartup-notification-1.so:x11/startup-notification \
		libdrm.so:graphics/libdrm \
		libmutter-6.so:x11-wm/mutter \
		libatk-bridge-2.0.so:accessibility/at-spi2-atk \
		libsoup-2.4.so:devel/libsoup \
		libjson-glib-1.0.so:devel/json-glib \
		libsecret-1.so:security/libsecret \
		libpolkit-agent-1.so:sysutils/polkit \
		libp11-kit.so:security/p11-kit \
		libical.so:devel/libical \
		libgcr-base-3.so:security/gcr \
		libicuuc.so:devel/icu \
		libpulse.so:audio/pulseaudio \
		libcroco-0.6.so:textproc/libcroco \
		libcanberra.so:audio/libcanberra \
		libcanberra-gtk3.so:audio/libcanberra-gtk3 \
		libp11-kit.so:security/p11-kit \
		libgjs.so:lang/gjs \
		libgraphene-1.0.so:graphics/graphene \
		libgnome-autoar-0.so:archivers/gnome-autoar
RUN_DEPENDS=	gnome-control-center:sysutils/gnome-control-center \
		gdm:x11/gdm

PORTSCOUT=	limitw:1,even

USES=		compiler:c11 cpe gettext gl gnome libtool localbase meson \
		pathfix perl5 pkgconfig python:3.4+ shebangfix tar:xz \
		webplugin:native xorg
USE_GNOME=	cairo evolutiondataserver3 gdkpixbuf2 introspection \
		libxslt:build libxml2 gnomedesktop3
USE_XORG=	x11 xcomposite xdamage xext xfixes xi xrandr xtst
USE_GL=		egl gbm
USE_GSTREAMER1=	yes
USE_PERL5=	build
USE_LDCONFIG=	yes
SHEBANG_FILES=	src/gnome-shell-perf-tool.in \
		src/gnome-shell-extension-tool.in
BINARY_ALIAS=	python3=${PYTHON_CMD}

WEBPLUGIN_NAME=	libgnome-shell-browser-plugin.so
WEBPLUGIN_DIR=	${PREFIX}/lib/mozilla/plugins/
WEBPLUGIN_FILES=libgnome-shell-browser-plugin.so

MESON_ARGS=	-Dsystemd=false \
		-Dnetworkmanager=false \
		-Dpython=${PYTHON_CMD}
CPE_VENDOR=	gnome

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

.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld
# Work around "New rpath must not be longer than the old one."
LDFLAGS+=	-fuse-ld=lld
.endif

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

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

.include <bsd.port.mk>