From owner-svn-ports-head@FreeBSD.ORG Fri Apr 24 19:03:44 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 70417DF0; Fri, 24 Apr 2015 19:03:44 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DC3A150A; Fri, 24 Apr 2015 19:03:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3OJ3i4d057672; Fri, 24 Apr 2015 19:03:44 GMT (envelope-from adamw@FreeBSD.org) Received: (from adamw@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3OJ3i0f057671; Fri, 24 Apr 2015 19:03:44 GMT (envelope-from adamw@FreeBSD.org) Message-Id: <201504241903.t3OJ3i0f057671@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: adamw set sender to adamw@FreeBSD.org using -f From: Adam Weinberger Date: Fri, 24 Apr 2015 19:03:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r384674 - head/multimedia/plexhometheater X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2015 19:03:44 -0000 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