summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-10-21 13:49:19 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-10-21 13:49:19 +0800
commit928ef270d349024b3ab268f602ea1655aca9068c (patch)
tree7ccdc9c53fc63b07a61a9a7c5f254dfad20649ee /x11
parent2790df349c37643379a9ae088da842ea52acf1e0 (diff)
downloadmarcuscom-ports-928ef270d349024b3ab268f602ea1655aca9068c.tar
marcuscom-ports-928ef270d349024b3ab268f602ea1655aca9068c.tar.gz
marcuscom-ports-928ef270d349024b3ab268f602ea1655aca9068c.tar.bz2
marcuscom-ports-928ef270d349024b3ab268f602ea1655aca9068c.tar.lz
marcuscom-ports-928ef270d349024b3ab268f602ea1655aca9068c.tar.xz
marcuscom-ports-928ef270d349024b3ab268f602ea1655aca9068c.tar.zst
marcuscom-ports-928ef270d349024b3ab268f602ea1655aca9068c.zip
Convert all xscreensaver .xml files to .desktop files so they can be used
with g-s >= 0.0.14. Reported by: ahze git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4962 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11')
-rw-r--r--x11/gnome-screensaver/Makefile25
-rw-r--r--x11/gnome-screensaver/files/patch-src_gs-job.c13
-rw-r--r--x11/gnome-screensaver/pkg-plist2
3 files changed, 21 insertions, 19 deletions
diff --git a/x11/gnome-screensaver/Makefile b/x11/gnome-screensaver/Makefile
index 32c9d5565..da5f5fc12 100644
--- a/x11/gnome-screensaver/Makefile
+++ b/x11/gnome-screensaver/Makefile
@@ -3,7 +3,7 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/x11/gnome-screensaver/Makefile,v 1.18 2005/10/06 01:24:58 marcus Exp $
+# $MCom: ports/x11/gnome-screensaver/Makefile,v 1.19 2005/10/12 22:02:20 marcus Exp $
#
PORTNAME= gnome-screensaver
@@ -26,20 +26,37 @@ USE_AUTOTOOLS= libtool:15
USE_GNOME= gnomeprefix gnomehack intlhack libgnomeui gnomemenus
CONFIGURE_ARGS= --disable-pam \
--with-gdm-config=${X11BASE}/etc/gdm/gdm.conf \
- --with-xscreensaverdir=${X11BASE}/share/xscreensaver/config
+ --with-xscreensaverdir=${XSCREENSAVER_DIR} \
+ --with-xscreensaverhackdir=${X11BASE}/bin/xscreensaver-hacks
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
GCONF_SCHEMAS= gnome-screensaver.schemas
+PLIST= ${WRKDIR}/pkg-plist
+
+XSCREENSAVER_DIR= ${X11BASE}/share/xscreensaver/config
+
post-patch:
@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
- ${WRKSRC}/configure \
- ${WRKSRC}/src/gs-job.c
+ ${WRKSRC}/configure
+
+pre-install:
+ @${CP} ${.CURDIR}/pkg-plist ${PLIST}
+ @cd ${XSCREENSAVER_DIR} && ${FIND} -s * -maxdepth 1 -type f -name "*.xml" | \
+ ${SED} -e 's:^:share/gnome/gnome-screensaver/themes/xscreensaver/:' | \
+ ${SED} -e 's:[.]xml$$:.desktop:' >> ${PLIST}
+ @${ECHO_CMD} @dirrm share/gnome/gnome-screensaver/themes/xscreensaver >> ${PLIST}
+ @${ECHO_CMD} @dirrm share/gnome/gnome-screensaver/themes >> ${PLIST}
+ @${ECHO_CMD} @dirrm share/gnome/gnome-screensaver >> ${PLIST}
post-install:
${CHOWN} root ${PREFIX}/libexec/gnome-screensaver-dialog
${CHMOD} +s ${PREFIX}/libexec/gnome-screensaver-dialog
+ ${MKDIR} ${PREFIX}/share/gnome/gnome-screensaver/themes/xscreensaver
+ cd ${PREFIX}/share/gnome/gnome-screensaver/themes/xscreensaver && \
+ ${FIND} -s ${XSCREENSAVER_DIR} -maxdepth 1 -type f -name "*.xml" | \
+ ${XARGS} ${WRKSRC}/data/migrate-xscreensaver-config.sh
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/x11/gnome-screensaver/files/patch-src_gs-job.c b/x11/gnome-screensaver/files/patch-src_gs-job.c
index ffa2520cb..39e303d27 100644
--- a/x11/gnome-screensaver/files/patch-src_gs-job.c
+++ b/x11/gnome-screensaver/files/patch-src_gs-job.c
@@ -10,16 +10,3 @@
#include <sys/resource.h>
#endif
-@@ -655,9 +659,11 @@ gs_job_set_widget (GSJob *job,
- static const char *known_locations [] = {
- SAVERDIR,
- LIBEXECDIR "/xscreensaver",
-- "/usr/X11R6/lib/xscreensaver",
-+ "%%X11BASE%%/lib/xscreensaver",
- "/usr/libexec/xscreensaver",
- "/usr/lib/xscreensaver",
-+ "%%X11BASE%%/bin/xscreensaver-hacks",
-+ "%%X11BASE%%/bin",
- NULL
- };
-
diff --git a/x11/gnome-screensaver/pkg-plist b/x11/gnome-screensaver/pkg-plist
index 0c5565727..6e50ff61d 100644
--- a/x11/gnome-screensaver/pkg-plist
+++ b/x11/gnome-screensaver/pkg-plist
@@ -38,6 +38,4 @@ share/locale/sv/LC_MESSAGES/gnome-screensaver.mo
share/locale/uk/LC_MESSAGES/gnome-screensaver.mo
share/locale/zh_CN/LC_MESSAGES/gnome-screensaver.mo
share/locale/zh_TW/LC_MESSAGES/gnome-screensaver.mo
-@dirrm share/gnome/gnome-screensaver/themes
-@dirrm share/gnome/gnome-screensaver
@dirrm libexec/gnome-screensaver