aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2015-04-25 03:03:43 +0800
committerAdam Weinberger <adamw@FreeBSD.org>2015-04-25 03:03:43 +0800
commitb06808e9ae1b3b4273c49cd15897e1d35365ebbf (patch)
treec11538d1748676576d972bfa2a0466d26f8463c7 /multimedia
parent22482e275d0b1bc6d3df5286d7cd663c172255e6 (diff)
downloadfreebsd-ports-gnome-b06808e9ae1b3b4273c49cd15897e1d35365ebbf.tar.gz
freebsd-ports-gnome-b06808e9ae1b3b4273c49cd15897e1d35365ebbf.tar.zst
freebsd-ports-gnome-b06808e9ae1b3b4273c49cd15897e1d35365ebbf.zip
Fix build on FreeBSD 8 and 9.
__builtin_bswap32 and __builtin_bswap64 were not introduced in GCC until v4.3. PR: 199627 Submitted by: maintainer (Ben Woods)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/plexhometheater/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/multimedia/plexhometheater/Makefile b/multimedia/plexhometheater/Makefile
index 775968de68de..7abb3c1c6269 100644
--- a/multimedia/plexhometheater/Makefile
+++ b/multimedia/plexhometheater/Makefile
@@ -131,6 +131,15 @@ post-patch:
${WRKSRC}/plex/CMakeModules/FindIconv.cmake
@${REINPLACE_CMD} 's/COMMAND\ make/COMMAND\ gmake/g' \
${WRKSRC}/lib/ffmpeg/CMakeLists.txt
+.if ${OPSYS} == "FreeBSD" && ${OSVERSION} < 1000024
+ @${REINPLACE_CMD} 's/__builtin_bswap/__bswap/g' \
+ ${WRKSRC}/plex/Third-Party/hash-library/crc32.cpp \
+ ${WRKSRC}/plex/Third-Party/hash-library/keccak.cpp \
+ ${WRKSRC}/plex/Third-Party/hash-library/md5.cpp \
+ ${WRKSRC}/plex/Third-Party/hash-library/sha1.cpp \
+ ${WRKSRC}/plex/Third-Party/hash-library/sha256.cpp \
+ ${WRKSRC}/plex/Third-Party/hash-library/sha3.cpp
+.endif
post-install:
${RM} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/*.so