diff options
author | avl <avl@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-02-01 13:08:45 +0800 |
---|---|---|
committer | avl <avl@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-02-01 13:08:45 +0800 |
commit | ec0480e01573c487d0f2da2c736dfb5a100c4ef4 (patch) | |
tree | fe773e4eb35e7d9187ff32717b8f0f52b65e89ac /x11/gnome-screensaver/Makefile | |
parent | 3a4863780f0d9adc755c45f1bc6bb2afc6fa58e1 (diff) | |
download | marcuscom-ports-ec0480e01573c487d0f2da2c736dfb5a100c4ef4.tar marcuscom-ports-ec0480e01573c487d0f2da2c736dfb5a100c4ef4.tar.gz marcuscom-ports-ec0480e01573c487d0f2da2c736dfb5a100c4ef4.tar.bz2 marcuscom-ports-ec0480e01573c487d0f2da2c736dfb5a100c4ef4.tar.lz marcuscom-ports-ec0480e01573c487d0f2da2c736dfb5a100c4ef4.tar.xz marcuscom-ports-ec0480e01573c487d0f2da2c736dfb5a100c4ef4.tar.zst marcuscom-ports-ec0480e01573c487d0f2da2c736dfb5a100c4ef4.zip |
Update to 2.29.1.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13557 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gnome-screensaver/Makefile')
-rw-r--r-- | x11/gnome-screensaver/Makefile | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/x11/gnome-screensaver/Makefile b/x11/gnome-screensaver/Makefile new file mode 100644 index 000000000..2b6e7bdd6 --- /dev/null +++ b/x11/gnome-screensaver/Makefile @@ -0,0 +1,99 @@ +# New ports collection makefile for: gnome-screensaver +# Date created: 09 June 2005 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD: ports/x11/gnome-screensaver/Makefile,v 1.47 2010/01/30 23:52:38 marcus Exp $ +# $MCom: ports/x11/gnome-screensaver/Makefile,v 1.112 2009/09/23 11:36:58 kwm Exp $ +# + +PORTNAME= gnome-screensaver +PORTVERSION= 2.29.1 +CATEGORIES= x11 gnome +MASTER_SITES= GNOME +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= GNOME screen saver and locker + +LIB_DEPENDS= notify.1:${PORTSDIR}/devel/libnotify +RUN_DEPENDS= xscreensaver-gl-helper:${PORTSDIR}/x11/xscreensaver-gnome-hacks + +USE_BZIP2= yes +USE_GMAKE= yes +USE_GETTEXT= yes +GNU_CONFIGURE= yes +USE_XORG= xtst xxf86vm +USE_GNOME= gnomeprefix gnomehack intlhack gnomemenus libgnomekbd \ + gnomedesktop +CONFIGURE_ARGS= --with-gdm-config=${LOCALBASE}/etc/gdm/custom.conf \ + --with-xscreensaverdir=${XSCREENSAVER_DIR} \ + --with-xscreensaverhackdir=${LOCALBASE}/bin/xscreensaver-hacks +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +GCONF_SCHEMAS= gnome-screensaver.schemas +MAN1= gnome-screensaver-command.1 gnome-screensaver-preferences.1 \ + gnome-screensaver.1 + +PLIST= ${WRKDIR}/pkg-plist +SUB_FILES+= gnome-screensaver.pam + +XSCREENSAVER_DIR= ${LOCALBASE}/share/xscreensaver/config +SCREENSAVER_DIR= share/applications/screensavers + +XSCREENSAVER_EXCLUDE= "(popsquares.xml)" + +OPTIONS= PAM "Pluggable Authentication Module support" on \ + KEYRING "Enable GnomeKeyring integration (needs PAM)" on + +.include <bsd.port.pre.mk> + +.if defined(WITH_PAM) +RUN_DEPENDS+= pam_helper:${PORTSDIR}/security/pam_helper +CONFIGURE_ARGS+= --enable-authentication-scheme=helper \ + --with-passwd-helper=${LOCALBASE}/bin/pam_helper +PLIST_SUB+= PAM="" +.else +CONFIGURE_ARGS+= --disable-pam +PLIST_SUB+= PAM="@comment " +.endif + +.if defined(WITH_KEYRING) && defined(WITH_PAM) +SUB_LIST+= PAM_KEYRING= +RUN_DEPENDS+= ${LOCALBASE}/lib/pam_gnome_keyring.so:${PORTSDIR}/security/gnome-keyring +.else +SUB_LIST+= PAM_KEYRING=\# +.endif + +pre-everything:: +.if defined(WITHOUT_PAM) && defined(WITH_KEYRING) + @${ECHO_MSG} "Keyring integration is disabled because it needs PAM." +.endif + +post-patch: +.if defined(WITH_PAM) + @${REINPLACE_CMD} -e 's|/etc/pam.d|${PREFIX}/etc/pam.d|g' \ + ${WRKSRC}/src/gs-auth-pam.c +.endif + +pre-install: + @${CAT} ${.CURDIR}/pkg-plist > ${PLIST} + @cd ${XSCREENSAVER_DIR} && ${FIND} -s * -maxdepth 1 -type f -name "*.xml" | \ + ${GREP} -Ev ${XSCREENSAVER_EXCLUDE} | \ + ${SED} -e 's:^:${SCREENSAVER_DIR}/:' | \ + ${SED} -e 's:[.]xml$$:.desktop:' >> ${PLIST} + @${ECHO_CMD} @dirrm ${SCREENSAVER_DIR} >> ${PLIST} + +post-install: + ${CHOWN} root ${PREFIX}/libexec/gnome-screensaver-dialog + ${CHMOD} +s ${PREFIX}/libexec/gnome-screensaver-dialog + ${MKDIR} ${PREFIX}/${SCREENSAVER_DIR} + cd ${PREFIX}/${SCREENSAVER_DIR} && \ + ${FIND} -s ${XSCREENSAVER_DIR} -maxdepth 1 -type f -name "*.xml" | \ + ${GREP} -Ev ${XSCREENSAVER_EXCLUDE} | \ + ${XARGS} ${WRKSRC}/data/migrate-xscreensaver-config.sh +.if defined(WITH_PAM) + ${INSTALL_DATA} ${WRKDIR}/gnome-screensaver.pam ${PREFIX}/etc/pam.d/gnome-screensaver +.endif + +.include <bsd.port.post.mk> |