blob: 8e27d6d240549bb31528f91aad9bf8e1d49b09ce (
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
|
PORTNAME= xfce4-screensaver
PORTVERSION= 4.18.2
PORTREVISION= 3
CATEGORIES= x11 xfce
MASTER_SITES= XFCE/apps
DIST_SUBDIR= xfce4
MAINTAINER= xfce@FreeBSD.org
COMMENT= Xfce 4 screen saver and locker
WWW= https://git.xfce.org/apps/xfce4-screensaver/about/
LICENSE= GPLv2 LGPL20
LICENSE_COMB= dual
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
LICENSE_FILE_LGPL20= ${WRKSRC}/COPYING.LIB
BUILD_DEPENDS= xdt-csource:devel/xfce4-dev-tools
LIB_DEPENDS= libdbus-1.so:devel/dbus \
libdbus-glib-1.so:devel/dbus-glib \
libxklavier.so:x11/libxklavier \
libharfbuzz.so:print/harfbuzz
USES= compiler:c11 gettext-tools gl gmake gnome pkgconfig python \
shebangfix tar:bzip2 xfce xorg
USE_GL= gl
USE_GNOME= cairo gdkpixbuf2 glib20 gtk30 intltool libwnck3
USE_XFCE= garcon xfconf
USE_XORG= ice sm x11 xext xrandr xscrnsaver xxf86vm
SHEBANG_FILES= src/xfce4-screensaver-configure
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS= --with-console-kit=yes \
--with-systemd=no \
--enable-maintainer-mode
SCREENSAVER_DIR= share/applications/screensavers
OPTIONS_DEFINE= NLS PAM
OPTIONS_DEFAULT=PAM
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext-runtime
PAM_RUN_DEPENDS= pam_helper:security/pam_helper
PAM_CONFIGURE_ON= --enable-authentication-scheme=helper \
--with-passwd-helper=${LOCALBASE}/bin/pam_helper
PAM_CONFIGURE_OFF= --disable-pam
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug=yes
.endif
post-patch-PAM-on:
@${REINPLACE_CMD} -e 's|/etc/pam.d|${PREFIX}/etc/pam.d|g' \
${WRKSRC}/src/gs-auth-pam.c
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${SCREENSAVER_DIR}
@${REINPLACE_CMD} 's/^\(Name[^=]*=\)\(.*\)/\1XFCE \2/' ${STAGEDIR}${PREFIX}/etc/xdg/autostart/xfce4-screensaver.desktop
post-install-PAM-on:
${INSTALL_DATA} ${FILESDIR}/xfce4-screensaver.pam ${STAGEDIR}${PREFIX}/etc/pam.d/xfce4-screensaver.sample
.include <bsd.port.post.mk>
|