svn commit: r384674 - head/multimedia/plexhometheater

Adam Weinberger adamw at FreeBSD.org
Fri Apr 24 19:03:44 UTC 2015


Author: adamw
Date: Fri Apr 24 19:03:43 2015
New Revision: 384674
URL: https://svnweb.freebsd.org/changeset/ports/384674

Log:
  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)

Modified:
  head/multimedia/plexhometheater/Makefile

Modified: head/multimedia/plexhometheater/Makefile
==============================================================================
--- head/multimedia/plexhometheater/Makefile	Fri Apr 24 18:50:57 2015	(r384673)
+++ head/multimedia/plexhometheater/Makefile	Fri Apr 24 19:03:43 2015	(r384674)
@@ -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


More information about the svn-ports-all mailing list