diff --git a/math/primecount/Makefile b/math/primecount/Makefile index 8a9644961e19..b78b1b6f028a 100644 --- a/math/primecount/Makefile +++ b/math/primecount/Makefile @@ -1,37 +1,36 @@ PORTNAME= primecount DISTVERSIONPREFIX= v -DISTVERSION= 7.4 -PORTREVISION= 2 +DISTVERSION= 7.14 CATEGORIES= math MAINTAINER= thierry@FreeBSD.org COMMENT= Fast prime counting function implementations WWW= https://github.com/kimwalisch/primecount LICENSE= BSD2CLAUSE BUILD_DEPENDS= libdivide>0:math/libdivide LIB_DEPENDS= libprimesieve.so:math/primesieve USE_GITHUB= yes GH_ACCOUNT= kimwalisch USES= cmake compiler:c++11-lang USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_LIBPRIMESIEVE BUILD_STATIC_LIBS .if !exists(/usr/local/omp.h) CMAKE_OFF+= WITH_OPENMP .endif PLIST_SUB= VER=${PORTVERSION} do-test: cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/math/primecount/distinfo b/math/primecount/distinfo index 75811eea90a5..07785486b28b 100644 --- a/math/primecount/distinfo +++ b/math/primecount/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1663430356 -SHA256 (kimwalisch-primecount-v7.4_GH0.tar.gz) = 6362887e80e849dd1c396ccec773e5a3a7904371b46f1d495d320d31f9c1ae28 -SIZE (kimwalisch-primecount-v7.4_GH0.tar.gz) = 372374 +TIMESTAMP = 1737904599 +SHA256 (kimwalisch-primecount-v7.14_GH0.tar.gz) = d867ac18cc52c0f7014682169988a76f39e4cd56f8ce78fb56e064499b1d66bb +SIZE (kimwalisch-primecount-v7.14_GH0.tar.gz) = 437328 diff --git a/math/primecount/files/patch-include_SieveTables.hpp b/math/primecount/files/patch-include_SieveTables.hpp deleted file mode 100644 index 4dd773f4b179..000000000000 --- a/math/primecount/files/patch-include_SieveTables.hpp +++ /dev/null @@ -1,29 +0,0 @@ ---- include/SieveTables.hpp.orig 2021-12-20 20:37:55 UTC -+++ include/SieveTables.hpp -@@ -60,22 +60,22 @@ constexpr int right_shift(int n) - /// on big endian CPU architectures. - - /// Reverse byte order of 64-bit integer --constexpr uint64_t bswap64(uint64_t i, uint64_t j = 0, uint64_t n = 0) -+constexpr uint64_t bswap_64(uint64_t i, uint64_t j = 0, uint64_t n = 0) - { - return (n == sizeof(uint64_t)) ? j : -- bswap64(i >> 8, (j << 8) | (i & 0xff), n + 1); -+ bswap_64(i >> 8, (j << 8) | (i & 0xff), n + 1); - } - - /// Bitmask to unset bits <= n - constexpr uint64_t unset_s(int n) - { -- return bswap64(~0ull << left_shift(n)); -+ return bswap_64(~0ull << left_shift(n)); - } - - /// Bitmask to unset bits >= n - constexpr uint64_t unset_l(int n) - { -- return bswap64((n == 0) ? 0 : ~0ull >> right_shift(n)); -+ return bswap_64((n == 0) ? 0 : ~0ull >> right_shift(n)); - } - - #else