Index: head/misc/gkrellmbgchg2/Makefile =================================================================== --- head/misc/gkrellmbgchg2/Makefile (revision 160740) +++ head/misc/gkrellmbgchg2/Makefile (revision 160741) @@ -1,38 +1,34 @@ # New ports collection makefile for: gkrellmbgchg # Date Created: 8 Aug 2002 # Whom: Chris Stuart # # $FreeBSD$ # PORTNAME= gkrellmbgchg2 PORTVERSION= 0.1.6 CATEGORIES= misc MASTER_SITES= http://www.bender-suhl.de/stefan/comp/sources/ MAINTAINER= freebsd@unixfreunde.de COMMENT= A plugin for GKrellM, which changes the desktop's background image BUILD_DEPENDS= ${X11BASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2 RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2 USE_X_PREFIX= yes USE_GNOME= gtk20 PLIST_FILES= libexec/gkrellm2/plugins/gkrellmbgchg.so .include -.if ${OSVERSION} < 500000 -BROKEN= Does not compile -.endif - post-patch: @${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/Makefile do-install: @${MKDIR} ${PREFIX}/libexec/gkrellm2/plugins ${INSTALL_DATA} ${WRKSRC}/gkrellmbgchg.so \ ${PREFIX}/libexec/gkrellm2/plugins .include Property changes on: head/misc/gkrellmbgchg2/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.17 \ No newline at end of property +1.18 \ No newline at end of property Index: head/misc/gkrellmbgchg2/files/patch-gkrellmbgchg.c =================================================================== --- head/misc/gkrellmbgchg2/files/patch-gkrellmbgchg.c (nonexistent) +++ head/misc/gkrellmbgchg2/files/patch-gkrellmbgchg.c (revision 160741) @@ -0,0 +1,39 @@ +--- gkrellmbgchg.c.orig Wed Apr 26 17:41:54 2006 ++++ gkrellmbgchg.c Wed Apr 26 17:54:17 2006 +@@ -114,7 +114,9 @@ + { + FILE *file; + gchar *tmp; +- ++#if !defined(WIN32) ++ struct stat buf; ++#endif + if( filename ) { + if( !strncmp( filename, "~/", MIN(2, strlen(filename)) ) ) + tmp = g_strdup_printf( "%s/%s", g_get_home_dir(), filename+2 ); +@@ -125,7 +127,6 @@ + + #if !defined(WIN32) + /* don't load if no force and not modified */ +- struct stat buf; + if( stat( tmp, &buf ) == -1 ) { + /* something went wrong, we just don't care what for now */ + GKBG_debug("stat: error on `%s'", tmp); +@@ -223,6 +224,9 @@ + gint num=1; + FILE *idb_file; + struct idb_entry *idb_e; ++#if !defined(WIN32) ++ struct stat buf; ++#endif + + if((idb_file = open_imagelist( bgmon.idb, force )) == NULL) return 1; + +@@ -261,7 +265,6 @@ + #if !defined(WIN32) + /* ignore the file if we stat returns -1 (error) and the user wants + * us to */ +- struct stat buf; + if( bgmon.ignore && (stat( tmp, &buf ) == -1) ) { + GKBG_debug( "ignoring `%s'", tmp ); + } else { Property changes on: head/misc/gkrellmbgchg2/files/patch-gkrellmbgchg.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property