aboutsummaryrefslogtreecommitdiff
path: root/x11/cinnamon-screensaver/Makefile
blob: 805d78d5008a6c78d588f6cf5bb41376257f998b (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
PORTNAME=	cinnamon-screensaver
PORTVERSION=	5.4.2
PORTREVISION=	2
CATEGORIES=	x11 gnome
DIST_SUBDIR=	gnome

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Cinnamon screen saver and locker
WWW=		https://github.com/linuxmint/cinnamon-screensaver

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

BUILD_DEPENDS=	gsettings-desktop-schemas>=3.2.0:devel/gsettings-desktop-schemas
LIB_DEPENDS=	libaccountsservice.so:sysutils/accountsservice \
		libcinnamon-desktop.so:x11/cinnamon-desktop \
		libdbus-glib-1.so:devel/dbus-glib \
		libxdo.so:x11/xdotool
RUN_DEPENDS=	${LOCALBASE}/lib/pam_gnome_keyring.so:security/gnome-keyring \
		${PYTHON_PKGNAMEPREFIX}cairo>0:graphics/py-cairo@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}setproctitle>0:devel/py-setproctitle@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}python-xapp>0:x11/py-python-xapp@${PY_FLAVOR} \
		${LOCALBASE}/libexec/unix-selfauth-helper:security/unix-selfauth-helper

USES=		gettext-tools gnome meson pkgconfig python shebangfix xorg

USE_GITHUB=	yes
GH_ACCOUNT=	linuxmint

USE_XORG=	x11 xext xinerama xrandr xscrnsaver

USE_GNOME=	cairo gdkpixbuf2 glib20 intltool introspection:build libgnomekbd pygobject3

SHEBANG_GLOB=	*.py
BINARY_ALIAS=	python3=${PYTHON_CMD}

USE_LDCONFIG=	yes

SUB_FILES+=	cinnamon-screensaver.pam

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/lib|${PREFIX}/lib|g' \
		${WRKSRC}/src/pamhelper/authClient.py
	@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
		${WRKSRC}/src/pamhelper/cinnamon-screensaver-pam-helper.c \
		${WRKSRC}/libcscreensaver/test-passwd.c \
		${WRKSRC}/src/cinnamon-screensaver-command.py \
		${WRKSRC}/src/cinnamon-screensaver-main.py \
		${WRKSRC}/src/passwordEntry.py
	@${REINPLACE_CMD} -e 's|/etc/pam|${PREFIX}/etc/pam|g' \
		${WRKSRC}/libcscreensaver/cs-auth-pam.c

post-install:
	${INSTALL_DATA} ${WRKDIR}/cinnamon-screensaver.pam \
		${STAGEDIR}${PREFIX}/etc/pam.d/cinnamon-screensaver

.include <bsd.port.mk>