Index: head/devel/crc32c/Makefile =================================================================== --- head/devel/crc32c/Makefile (revision 507822) +++ head/devel/crc32c/Makefile (revision 507823) @@ -1,22 +1,22 @@ # $FreeBSD$ PORTNAME= crc32c DISTVERSION= 1.0.7-8 DISTVERSIONSUFFIX= -gfd33bcc CATEGORIES= devel MAINTAINER= amzo1337@gmail.com COMMENT= CRC32C implementation supporting CPU-specific acceleration LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cmake +USES= cmake compiler:c++11-lang USE_GITHUB= yes GH_ACCOUNT= google USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= CRC32C_BUILD_TESTS CRC32C_BUILD_BENCHMARKS CRC32C_USE_GLOG .include Index: head/devel/crc32c/files/patch-src_crc32c__read__le.h =================================================================== --- head/devel/crc32c/files/patch-src_crc32c__read__le.h (nonexistent) +++ head/devel/crc32c/files/patch-src_crc32c__read__le.h (revision 507823) @@ -0,0 +1,25 @@ +--- src/crc32c_read_le.h.orig 2019-07-24 07:21:23 UTC ++++ src/crc32c_read_le.h +@@ -30,14 +30,14 @@ inline uint32_t ReadUint32LE(const uint8_t* buffer) { + // Reads a little-endian 64-bit integer from a 64-bit-aligned buffer. + inline uint64_t ReadUint64LE(const uint8_t* buffer) { + #if BYTE_ORDER_BIG_ENDIAN +- return ((static_cast(static_cast(buffer[0]))) | +- (static_cast(static_cast(buffer[1])) << 8) | +- (static_cast(static_cast(buffer[2])) << 16) | +- (static_cast(static_cast(buffer[3])) << 24) | +- (static_cast(static_cast(buffer[4])) << 32) | +- (static_cast(static_cast(buffer[5])) << 40) | +- (static_cast(static_cast(buffer[6])) << 48) | +- (static_cast(static_cast(buffer[7])) << 56)); ++ return ((static_cast(static_cast(buffer[0]))) | ++ (static_cast(static_cast(buffer[1])) << 8) | ++ (static_cast(static_cast(buffer[2])) << 16) | ++ (static_cast(static_cast(buffer[3])) << 24) | ++ (static_cast(static_cast(buffer[4])) << 32) | ++ (static_cast(static_cast(buffer[5])) << 40) | ++ (static_cast(static_cast(buffer[6])) << 48) | ++ (static_cast(static_cast(buffer[7])) << 56)); + #else // !BYTE_ORDER_BIG_ENDIAN + uint64_t result; + // This should be optimized to a single instruction. Property changes on: head/devel/crc32c/files/patch-src_crc32c__read__le.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property