diff --git a/games/teeworlds/Makefile b/games/teeworlds/Makefile index 35f02b17846..7cf8bc5563a 100644 --- a/games/teeworlds/Makefile +++ b/games/teeworlds/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.2 2009/02/08 16:54:54 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.3 2009/02/08 22:31:58 ajacoutot Exp $ COMMENT = platform game featuring buggers equipped with weapons V = 0.5.0 DISTNAME = teeworlds-${V}-src -PKGNAME = teeworlds-${V}p0 +PKGNAME = teeworlds-${V}p1 CATEGORIES = games MAINTAINER = Jonathan Armani diff --git a/games/teeworlds/patches/patch-bam-0_2_0_src_context_h b/games/teeworlds/patches/patch-bam-0_2_0_src_context_h new file mode 100644 index 00000000000..3adadb2f8ae --- /dev/null +++ b/games/teeworlds/patches/patch-bam-0_2_0_src_context_h @@ -0,0 +1,24 @@ +$OpenBSD: patch-bam-0_2_0_src_context_h,v 1.1 2009/02/08 22:31:58 ajacoutot Exp $ + +Fix bus error on sparc64. + +--- bam-0.2.0/src/context.h.orig Mon Feb 9 00:11:33 2009 ++++ bam-0.2.0/src/context.h Mon Feb 9 00:09:59 2009 +@@ -5,7 +5,7 @@ struct TARGET + { + struct NODE *node; + struct TARGET *next; +-}; ++} __attribute__((packed)); + + struct CONTEXT + { +@@ -24,7 +24,7 @@ struct CONTEXT + + volatile int current_cmd_num; + int num_commands; +-}; ++} __attribute__((packed)); + + const char *context_get_path(lua_State *L); + struct CONTEXT *context_get_pointer(lua_State *L); diff --git a/games/teeworlds/patches/patch-bam-0_2_0_src_node_h b/games/teeworlds/patches/patch-bam-0_2_0_src_node_h new file mode 100644 index 00000000000..8ab97e87e3e --- /dev/null +++ b/games/teeworlds/patches/patch-bam-0_2_0_src_node_h @@ -0,0 +1,24 @@ +$OpenBSD: patch-bam-0_2_0_src_node_h,v 1.1 2009/02/08 22:31:58 ajacoutot Exp $ + +Fix bus error on sparc64. + +--- bam-0.2.0/src/node.h.orig Mon Feb 9 00:11:20 2009 ++++ bam-0.2.0/src/node.h Mon Feb 9 00:10:15 2009 +@@ -9,7 +9,7 @@ struct DEPENDENCY + { + struct NODE *node; + struct DEPENDENCY *next; +-}; ++} __attribute__((packed)); + + #define USE_NODE_RB + +@@ -55,7 +55,7 @@ struct NODE + unsigned int counted:1; + + volatile unsigned int workstatus:2; /* 0 = undone, 1 = in the workings, 2 = done*/ +-}; ++} __attribute__((packed)); + + struct HEAP; + struct GRAPH;