aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cinnamon-settings-daemon/Makefile
blob: 6f502c5e0a1b8cbcf3aa30dee8a03b3e958594e2 (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
# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>

PORTNAME=	cinnamon-settings-daemon
PORTVERSION=	4.8.5
CATEGORIES=	sysutils gnome
DIST_SUBDIR=	gnome

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Cinnamon desktop settings daemon

LICENSE=	GPLv2 LGPL21
LICENSE_COMB=	multi
LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING
LICENSE_FILE_LGPL21=	${WRKSRC}/COPYING.LIB

BUILD_DEPENDS=	cinnamon-session:x11/cinnamon-session \
		xf86-input-wacom>0:x11-drivers/xf86-input-wacom \
		gln:sysutils/coreutils
LIB_DEPENDS=	libcanberra.so:audio/libcanberra \
		libcanberra-gtk3.so:audio/libcanberra-gtk3 \
		libpolkit-gobject-1.so:sysutils/polkit \
		libgudev-1.0.so:devel/libgudev \
		libdbus-1.so:devel/dbus \
		libdbus-glib-1.so:devel/dbus-glib \
		libcolord.so:graphics/colord \
		liblcms2.so:graphics/lcms2 \
		libcinnamon-desktop.so:x11/cinnamon-desktop \
		libxklavier.so:x11/libxklavier \
		libnspr4.so:devel/nspr \
		libfreetype.so:print/freetype2 \
		libfontconfig.so:x11-fonts/fontconfig \
		libupower-glib.so:sysutils/upower \
		libpulse.so:audio/pulseaudio \
		libnotify.so:devel/libnotify \
		libharfbuzz.so:print/harfbuzz
RUN_DEPENDS=	cinnamon-session:x11/cinnamon-session

USES=		compiler:c11 gettext-tools gnome localbase meson pkgconfig \
		python:3.5+,build shebangfix xorg
USE_GNOME=	cairo gdkpixbuf2 gtk30 intltool libgnomekbd librsvg2
USE_XORG=	x11 xext xfixes xi xtst

USE_GITHUB=	yes
GH_ACCOUNT=	linuxmint

MESON_ARGS=	-Duse_logind=disabled

SHEBANG_GLOB=	*.py
BINARY_ALIAS=	ln=gln

USE_LDCONFIG=	yes

GLIB_SCHEMAS=	org.cinnamon.settings-daemon.enums.xml \
		org.cinnamon.settings-daemon.peripherals.gschema.xml \
		org.cinnamon.settings-daemon.peripherals.wacom.gschema.xml \
		org.cinnamon.settings-daemon.plugins.color.gschema.xml \
		org.cinnamon.settings-daemon.plugins.gschema.xml \
		org.cinnamon.settings-daemon.plugins.housekeeping.gschema.xml \
		org.cinnamon.settings-daemon.plugins.media-keys.gschema.xml \
		org.cinnamon.settings-daemon.plugins.power.gschema.xml \
		org.cinnamon.settings-daemon.plugins.xrandr.gschema.xml \
		org.cinnamon.settings-daemon.plugins.xsettings.gschema.xml

OPTIONS_DEFINE=	CUPS SMARTCARD WACOM
OPTIONS_DEFAULT=CUPS SMARTCARD WACOM
OPTIONS_SUB=	yes

CUPS_MESON_ENABLED=	use_cups
CUPS_LIB_DEPENDS=	libcups.so:print/cups

SMARTCARD_DESC=	Smartcard support
SMARTCARD_MESON_ENABLED=	enable_smartcard
SMARTCARD_LIB_DEPENDS=	libnss3.so:security/nss

WACOM_DESC=	Tablet support with libwacom
WACOM_LIB_DEPENDS=	libwacom.so:x11/libwacom

post-patch:
	# Adhere to our hier(7).
	@${MKDIR} ${WRKSRC}/files${PREFIX}
	@${MV} ${WRKSRC}/files/usr/share ${WRKSRC}/files${PREFIX}

.include <bsd.port.mk>