1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Fix build with all FreeBSD versions

Reported by:	pkg-fallout
This commit is contained in:
Jose Alonso Cardenas Marquez 2014-03-24 00:04:32 +00:00
parent a129c50951
commit e250721c71
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348909
2 changed files with 17 additions and 4 deletions

View File

@ -5,7 +5,8 @@ PKGNAMESUFFIX= -video-glide64mk2
COMMENT= Glide64mk2 video plugin for Mupen64Plus
LIB_DEPENDS= mupen64plus.2:${PORTSDIR}/emulators/mupen64plus-core
LIB_DEPENDS= mupen64plus.2:${PORTSDIR}/emulators/mupen64plus-core \
libboost_thread.so:${PORTSDIR}/devel/boost-libs
USE_GL= gl
USE_SDL= yes

View File

@ -1,6 +1,6 @@
--- source/mupen64plus-video-glide64mk2/src/Glide64/Util.h 2013-10-04 04:04:30.000000000 -0500
+++ source/mupen64plus-video-glide64mk2/src/Glide64/Util.h 2013-10-04 04:04:41.000000000 -0500
@@ -90,9 +90,7 @@
--- source/mupen64plus-video-glide64mk2/src/Glide64/Util.h 2013-07-03 19:28:17.000000000 -0500
+++ source/mupen64plus-video-glide64mk2/src/Glide64/Util.h 2014-03-23 16:59:30.000000000 -0500
@@ -90,12 +90,11 @@
lx = lc; \
}
@ -11,3 +11,15 @@
#include <stdlib.h>
#define bswap32(x) _byteswap_ulong(x)
#else
+#if !defined __FreeBSD__
static inline uint32_t bswap32(uint32_t val)
{
return (((val & 0xff000000) >> 24) |
@@ -104,6 +103,7 @@
((val & 0x000000ff) << 24));
}
#endif
+#endif
#define ALOWORD(x) (*((uint16_t*)&(x))) // low word