Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2017 14:25:09 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r434087 - in head/games/abuse_sdl: . files
Message-ID:  <201702141425.v1EEP99N077935@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Tue Feb 14 14:25:09 2017
New Revision: 434087
URL: https://svnweb.freebsd.org/changeset/ports/434087

Log:
  Remove -fPIC and fix the real problem where S_BUTTON_PRESS_SND is sometimes
  declared as int and sometimes as long which have a different size and
  alignment on 64 bit architectures.

Added:
  head/games/abuse_sdl/files/patch-src-gui.cpp   (contents, props changed)
Modified:
  head/games/abuse_sdl/Makefile

Modified: head/games/abuse_sdl/Makefile
==============================================================================
--- head/games/abuse_sdl/Makefile	Tue Feb 14 14:14:16 2017	(r434086)
+++ head/games/abuse_sdl/Makefile	Tue Feb 14 14:25:09 2017	(r434087)
@@ -3,7 +3,7 @@
 
 PORTNAME=	abuse_sdl
 PORTVERSION=	0.8
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	games
 MASTER_SITES=	GENTOO \
 		http://abuse.zoy.org/raw-attachment/wiki/download/
@@ -20,7 +20,6 @@ USE_SDL=	mixer sdl
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-assetdir=${DATADIR} --enable-release
 
-CFLAGS_aarch64=	-fPIC
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 

Added: head/games/abuse_sdl/files/patch-src-gui.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/abuse_sdl/files/patch-src-gui.cpp	Tue Feb 14 14:25:09 2017	(r434087)
@@ -0,0 +1,11 @@
+--- src/gui.cpp.orig	2011-05-06 09:46:43 UTC
++++ src/gui.cpp
+@@ -117,7 +117,7 @@ void ico_button::draw(int active, image 
+ 
+ }
+ 
+-extern long S_BUTTON_PRESS_SND;
++extern int S_BUTTON_PRESS_SND;
+ extern int sfx_volume;
+ 
+ void ico_button::handle_event(event &ev, image *screen, InputManager *im)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702141425.v1EEP99N077935>