ports/152437: [patch] games/kanatest: update to 0.4.8
Anonymous
swell.k at gmail.com
Wed Nov 24 03:37:01 UTC 2010
pgollucci at FreeBSD.org writes:
> Synopsis: [patch] games/kanatest: update to 0.4.8
>
> State-Changed-From-To: open->feedback
> State-Changed-By: pgollucci
> State-Changed-When: Wed Nov 24 02:13:25 UTC 2010
> State-Changed-Why:
> Request Feedback:
> http://people.freebsd.org/~pgollucci/FreeBSD/logs/9-CURRENT-amd64/kanatest-0.4.8.log
>
> ===> Building for kanatest-0.4.8
> gmake[2]: Entering directory `/work/a/ports/games/kanatest/work/kanatest-0.4.8/src'
> cc -DHAVE_CONFIG_H -I. -I.. -Wall -DLOCALEDIR=\"/usr/local/share/locale\" -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -D_THREAD_SAFE -D_REENTRANT -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libxml2 -I/usr/local/include -Wall -D_GNU_SOURCE -MT about.o -MD -MP -MF .deps/about.Tpo -c -o about.o about.c
> about.c: In function 'about_create_window':
> about.c:433: warning: implicit declaration of function 'GTK_OBJECT_FLAGS'
> about.c:433: error: lvalue required as left operand of assignment
It's a fallout from recent gnome update. I can't test atm but a quick
search on google suggests the following fix
--- c.diff begins here ---
diff --git games/kanatest/Makefile games/kanatest/Makefile
index 7e4740c..0514216 100644
--- games/kanatest/Makefile
+++ games/kanatest/Makefile
@@ -26,6 +26,17 @@ post-patch: .SILENT
${REINPLACE_CMD} -e '/^%.mo:/,/^$$/s/test[^;]*/${TRUE}/' \
-e '\|/usr/bin| { s||${LOCALBASE}/bin|; s|=|?=|; }' \
${WRKSRC}/po/Makefile.in
+ ${REINPLACE_CMD} -e '/GTK_WIDGET_SET_FLAGS/ { \
+ s//gtk_widget_set_can_default/; \
+ s/GTK_CAN_DEFAULT/TRUE/; }' \
+ -e '/GTK_WIDGET_UNSET_FLAGS/ { \
+ s//gtk_widget_set_can_focus/; \
+ s/GTK_CAN_FOCUS/FALSE/; }' \
+ ${WRKSRC}/src/about.c \
+ ${WRKSRC}/src/chart.c \
+ ${WRKSRC}/src/gui.c \
+ ${WRKSRC}/src/options.c \
+ ${WRKSRC}/src/stats.c
post-install:
-update-desktop-database ${PREFIX}/share/applications
--- c.diff ends here ---
More information about the freebsd-gnome
mailing list