diff options
author | acm <acm@FreeBSD.org> | 2014-03-24 08:04:32 +0800 |
---|---|---|
committer | acm <acm@FreeBSD.org> | 2014-03-24 08:04:32 +0800 |
commit | 1697e1bfe04213489acbfdb08ab7425ecf6b5324 (patch) | |
tree | 2e16e433d2eec55df9e1f7e9715a176b9962bbbe /emulators | |
parent | f8901fbb40a11054bfc198f0881ccfd3acfbfe8e (diff) | |
download | freebsd-ports-gnome-1697e1bfe04213489acbfdb08ab7425ecf6b5324.tar.gz freebsd-ports-gnome-1697e1bfe04213489acbfdb08ab7425ecf6b5324.tar.zst freebsd-ports-gnome-1697e1bfe04213489acbfdb08ab7425ecf6b5324.zip |
- Fix build with all FreeBSD versions
Reported by: pkg-fallout
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/mupen64plus-video-glide64mk2/Makefile | 3 | ||||
-rw-r--r-- | emulators/mupen64plus-video-glide64mk2/files/patch-source-mupen64plus-video-glide64mk2-src-Glide64_Util.h | 18 |
2 files changed, 17 insertions, 4 deletions
diff --git a/emulators/mupen64plus-video-glide64mk2/Makefile b/emulators/mupen64plus-video-glide64mk2/Makefile index 7abe0b9c2067..91fdc2be2eef 100644 --- a/emulators/mupen64plus-video-glide64mk2/Makefile +++ b/emulators/mupen64plus-video-glide64mk2/Makefile @@ -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 diff --git a/emulators/mupen64plus-video-glide64mk2/files/patch-source-mupen64plus-video-glide64mk2-src-Glide64_Util.h b/emulators/mupen64plus-video-glide64mk2/files/patch-source-mupen64plus-video-glide64mk2-src-Glide64_Util.h index b66eb60085b8..3fcc4177c148 100644 --- a/emulators/mupen64plus-video-glide64mk2/files/patch-source-mupen64plus-video-glide64mk2-src-Glide64_Util.h +++ b/emulators/mupen64plus-video-glide64mk2/files/patch-source-mupen64plus-video-glide64mk2-src-Glide64_Util.h @@ -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 + |