mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
7d2d36aed6
Reviewed by: kwm Approved by: bapt (mentor)
73 lines
1.9 KiB
Makefile
73 lines
1.9 KiB
Makefile
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mate-screensaver
|
|
PORTVERSION= 1.20.0
|
|
CATEGORIES= x11 mate
|
|
MASTER_SITES= MATE
|
|
DIST_SUBDIR= mate
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= MATE screen saver and locker
|
|
|
|
LICENSE= GPLv2 LGPL20
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
|
|
LICENSE_FILE_LGPL20= ${WRKSRC}/COPYING.LIB
|
|
|
|
LIB_DEPENDS= libdbus-1.so:devel/dbus \
|
|
libdbus-glib-1.so:devel/dbus-glib \
|
|
libnotify.so:devel/libnotify \
|
|
libstartup-notification-1.so:x11/startup-notification
|
|
|
|
PORTSCOUT= limitw:1,even
|
|
|
|
USES= gettext gmake localbase pathfix pkgconfig tar:xz
|
|
USE_GL= gl
|
|
USE_MATE= desktop libmatekbd menus session:run
|
|
USE_XORG= ice sm x11 xext xscrnsaver xxf86misc xxf86vm
|
|
USE_GNOME= cairo gdkpixbuf2 gtk30 intltool
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-xscreensaverdir=${XSCREENSAVER_DIR} \
|
|
--with-xscreensaverhackdir=${LOCALBASE}/bin/xscreensaver-hacks \
|
|
--with-console-kit=yes \
|
|
--with-systemd=no
|
|
|
|
GLIB_SCHEMAS= org.mate.screensaver.gschema.xml
|
|
|
|
SUB_FILES+= mate-screensaver.pam
|
|
|
|
XSCREENSAVER_DIR= ${LOCALBASE}/share/xscreensaver/config
|
|
SCREENSAVER_DIR= share/applications/screensavers
|
|
|
|
XSCREENSAVER_EXCLUDE= "(popsquares.xml)"
|
|
|
|
OPTIONS_DEFINE= PAM XSCREENSAVER
|
|
OPTIONS_DEFAULT=PAM
|
|
PAM_DESC= Pluggable Authentication Module support
|
|
|
|
XSCREENSAVER_RUN_DEPENDS= xscreensaver-gnome-hacks>=0:x11/xscreensaver-gnome-hacks
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
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.options.mk>
|
|
|
|
post-patch:
|
|
.if ${PORT_OPTIONS:MPAM}
|
|
@${REINPLACE_CMD} -e 's|/etc/pam.d|${PREFIX}/etc/pam.d|g' \
|
|
${WRKSRC}/src/gs-auth-pam.c
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${SCREENSAVER_DIR}
|
|
.if ${PORT_OPTIONS:MPAM}
|
|
${INSTALL_DATA} ${WRKDIR}/mate-screensaver.pam ${STAGEDIR}${PREFIX}/etc/pam.d/mate-screensaver
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|