mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
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.
This commit is contained in:
parent
ffba1015c8
commit
48d3edd70e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434087
@ -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
|
||||
|
||||
|
11
games/abuse_sdl/files/patch-src-gui.cpp
Normal file
11
games/abuse_sdl/files/patch-src-gui.cpp
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user