From b1cf6462b94ddc6989f8e1534236c35e2cfc8c2f Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Tue, 2 Oct 2007 21:52:50 +0000 Subject: [PATCH] games/sopwith: Fix build with gcc 4.2 - Unbreak - Fix build with gcc 4.2 PR: ports/116839 Submitted by: Martin Wilke --- games/sopwith/Makefile | 10 ++-------- games/sopwith/files/patch-src_swmain.h | 10 ++++++++++ games/sopwith/files/patch-src_swtitle.h | 10 ++++++++++ 3 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 games/sopwith/files/patch-src_swmain.h create mode 100644 games/sopwith/files/patch-src_swtitle.h (limited to 'games/sopwith') diff --git a/games/sopwith/Makefile b/games/sopwith/Makefile index 4d28b07f8171..07c10bb96be9 100644 --- a/games/sopwith/Makefile +++ b/games/sopwith/Makefile @@ -7,7 +7,7 @@ PORTNAME= sopwith PORTVERSION= 1.7.1 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= sdl-sopwith @@ -23,10 +23,4 @@ GNU_CONFIGURE= yes MAN6= sopwith.6 -.include - -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - -.include +.include diff --git a/games/sopwith/files/patch-src_swmain.h b/games/sopwith/files/patch-src_swmain.h new file mode 100644 index 000000000000..bda2a7c16e42 --- /dev/null +++ b/games/sopwith/files/patch-src_swmain.h @@ -0,0 +1,10 @@ +--- src/swmain.h.orig 2007-10-02 19:16:44.000000000 +0200 ++++ src/swmain.h 2007-10-02 19:17:48.000000000 +0200 +@@ -46,7 +46,6 @@ + extern int targrnge; + extern BOOL hires; + extern BOOL disppos; +-extern BOOL titleflg; + extern int dispdbg; + extern BOOL soundflg; + extern BOOL repflag; diff --git a/games/sopwith/files/patch-src_swtitle.h b/games/sopwith/files/patch-src_swtitle.h new file mode 100644 index 000000000000..29431232c089 --- /dev/null +++ b/games/sopwith/files/patch-src_swtitle.h @@ -0,0 +1,10 @@ +--- src/swtitle.h.orig 2007-10-02 19:17:03.000000000 +0200 ++++ src/swtitle.h 2007-10-02 19:17:22.000000000 +0200 +@@ -30,6 +30,7 @@ + extern int getgame(); + extern void swtitln(); + extern void swtitlf(); ++extern BOOL titleflg; + + #endif + -- cgit v1.2.3