Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2015 19:03:44 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r384674 - head/multimedia/plexhometheater
Message-ID:  <201504241903.t3OJ3i0f057671@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504241903.t3OJ3i0f057671>