aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-11-05 19:20:01 +0800
committermiwi <miwi@FreeBSD.org>2007-11-05 19:20:01 +0800
commita69966bfb11ddb7085bc0eeee721942e5441ee23 (patch)
tree10f295eea88c30327327bc2f24057a23aae7f45e /games
parent5d88ed0157417357d15ad413dc80ffddbd3efb5d (diff)
downloadfreebsd-ports-gnome-a69966bfb11ddb7085bc0eeee721942e5441ee23.tar.gz
freebsd-ports-gnome-a69966bfb11ddb7085bc0eeee721942e5441ee23.tar.zst
freebsd-ports-gnome-a69966bfb11ddb7085bc0eeee721942e5441ee23.zip
- Fix build with gcc 4.2
- Pass maintainership to submitter PR: 117731 Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru> Approved by: portmgr (pav)
Diffstat (limited to 'games')
-rw-r--r--games/mirrormagic/Makefile16
-rw-r--r--games/mirrormagic/files/patch-src-main.h10
2 files changed, 18 insertions, 8 deletions
diff --git a/games/mirrormagic/Makefile b/games/mirrormagic/Makefile
index d6be7227240a..f47da7a62dbc 100644
--- a/games/mirrormagic/Makefile
+++ b/games/mirrormagic/Makefile
@@ -9,15 +9,21 @@ PORTNAME= mirrormagic
PORTVERSION= 2.0.2
PORTREVISION= 2
CATEGORIES= games
-MASTER_SITES= http://www.artsoft.org/RELEASES/unix/mirrormagic/
+MASTER_SITES= http://www.artsoft.org/RELEASES/unix/mirrormagic/ \
+ http://www.amdmi3.ru/distfiles/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= amdmi3@amdmi3.ru
COMMENT= An arcade style game with stereo sound for X Window System
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}" MAKE="${GMAKE}" OPTIONS="${CFLAGS}" \
RO_GAME_DIR="${DATADIR}" RW_GAME_DIR="${DATADIR}/scores" \
X11_PATH="${X11BASE}"
+WANT_SDL= yes
+
+OPTIONS= SDL "SDL support" on
+
+.include <bsd.port.pre.mk>
.if defined(WITH_SDL)
USE_SDL= image mixer sdl
@@ -27,12 +33,6 @@ USE_XLIB= yes
ALL_TARGET= x11
.endif
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Broken with gcc 4.2
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|sdl-config|$$(SDL_CONFIG)|g' \
${WRKSRC}/src/Makefile
diff --git a/games/mirrormagic/files/patch-src-main.h b/games/mirrormagic/files/patch-src-main.h
new file mode 100644
index 000000000000..a2fa3e69df56
--- /dev/null
+++ b/games/mirrormagic/files/patch-src-main.h
@@ -0,0 +1,10 @@
+--- src/main.h.orig Sat Jun 7 20:04:37 2003
++++ src/main.h Thu Nov 1 02:12:04 2007
+@@ -459,7 +459,6 @@
+ #endif
+ extern struct HiScore highscore[];
+ extern struct TapeInfo tape;
+-extern struct JoystickInfo joystick[];
+ extern struct SetupInfo setup;
+ extern struct GameInfo game;
+ extern struct LaserInfo laser;