Index: Makefile
===================================================================
RCS file: /cvs/ports/games/spacezero/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile 12 Jul 2019 20:46:24 -0000 1.7
+++ Makefile 30 Jan 2021 01:13:57 -0000
@@ -3,18 +3,18 @@
COMMENT = 2D RTS space combat game
DISTNAME = spacezero-0.86.00
CATEGORIES = games x11
-REVISION = 1
+REVISION = 2
HOMEPAGE = http://spacezero.sourceforge.net/
# GPLv3+
PERMIT_PACKAGE = Yes
-WANTLIB = X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama Xrandr
-WANTLIB += Xrender alut atk-1.0 c cairo fontconfig freetype gdk-x11-2.0
-WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0 gtk-x11-2.0 iconv
-WANTLIB += intl m openal pango-1.0 pangocairo-1.0 pangoft2-1.0 pthread
-WANTLIB += vorbisfile z
+WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
+WANTLIB += Xrandr Xrender alut atk-1.0 c cairo fontconfig freetype
+WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
+WANTLIB += gtk-x11-2.0 harfbuzz intl m openal pango-1.0 pangocairo-1.0
+WANTLIB += pangoft2-1.0 pthread vorbisfile z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=spacezero/}
Index: patches/patch-include_snow_h
===================================================================
RCS file: patches/patch-include_snow_h
diff -N patches/patch-include_snow_h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-include_snow_h 30 Jan 2021 01:13:57 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+
+Fix for -fno-common
+
+Index: include/snow.h
+--- include/snow.h.orig
++++ include/snow.h
+@@ -29,13 +29,6 @@
+ #include "objects.h"
+
+
+-struct Flake *flakes;
+-
+-struct Flake{
+- float x,y;
+- float vx,vy;
+- float s;
+-};
+
+ void UpdateFlakes(struct Planet *planet);
+ void DrawFlakes(GdkPixmap *pxmap,GdkGC *pen,int x,int y);
Index: patches/patch-src_snow_c
===================================================================
RCS file: patches/patch-src_snow_c
diff -N patches/patch-src_snow_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_snow_c 30 Jan 2021 01:13:57 -0000
@@ -0,0 +1,22 @@
+$OpenBSD$
+
+Fix for -fno-common
+
+Index: src/snow.c
+--- src/snow.c.orig
++++ src/snow.c
+@@ -38,6 +38,14 @@
+
+ #define NFLAKES 1000
+
++struct Flake{
++ float x,y;
++ float vx,vy;
++ float s;
++};
++
++struct Flake *flakes;
++
+
+ void CreateSnow(int w,int h){
+ int i;
Index: patches/patch-src_spacecomm_c
===================================================================
RCS file: patches/patch-src_spacecomm_c
diff -N patches/patch-src_spacecomm_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_spacecomm_c 30 Jan 2021 01:13:57 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Fix for -fno-common
+
+Index: src/spacecomm.c
+--- src/spacecomm.c.orig
++++ src/spacecomm.c
+@@ -63,7 +63,7 @@ SENDOBJUNMOD0
+ #define SENDORDERS 1
+
+ extern struct HeadObjList listheadobjs;
+-struct TextMessageList listheadtext;
++extern struct TextMessageList listheadtext;
+ extern struct CharListHead gameloglist; /* list of all game messages */
+ extern struct Window windowgamelog;
+ extern struct Habitat habitat;
Hi ports --
Attached is a patch to fix games/spacezero for -fno-common.
Upstream is long silent. Could not find other packages that had fixed
this. But the fix was easy.
OK?
~Brian
No comments:
Post a Comment