git: cc39cce1039b - main - archivers/par2cmdline-turbo: Enable arm64 arch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 13 Apr 2023 05:33:10 UTC
The branch main has been updated by martymac: URL: https://cgit.FreeBSD.org/ports/commit/?id=cc39cce1039bcf5b505179f90f8f44545eaf0aa5 commit cc39cce1039bcf5b505179f90f8f44545eaf0aa5 Author: Keith Chiem <keith.chiem@gmail.com> AuthorDate: 2023-04-13 05:31:43 +0000 Commit: Ganael LAPLANCHE <martymac@FreeBSD.org> CommitDate: 2023-04-13 05:32:41 +0000 archivers/par2cmdline-turbo: Enable arm64 arch Tested by: Keith Chiem <keith.chiem@gmail.com> --- archivers/par2cmdline-turbo/Makefile | 3 ++- .../par2cmdline-turbo/files/patch-parpar_src_cpuid.h | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/archivers/par2cmdline-turbo/Makefile b/archivers/par2cmdline-turbo/Makefile index ca4909d7f3c5..052da79971cd 100644 --- a/archivers/par2cmdline-turbo/Makefile +++ b/archivers/par2cmdline-turbo/Makefile @@ -1,6 +1,7 @@ PORTNAME= par2cmdline-turbo PORTVERSION= 0.9.0 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= archivers MAINTAINER= martymac@FreeBSD.org @@ -9,7 +10,7 @@ WWW= https://github.com/animetosho/par2cmdline-turbo LICENSE= GPLv2 -ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS= amd64 arm64 ONLY_FOR_ARCHS_REASON= untested on other archs USES= autoreconf compiler:c++11-lang diff --git a/archivers/par2cmdline-turbo/files/patch-parpar_src_cpuid.h b/archivers/par2cmdline-turbo/files/patch-parpar_src_cpuid.h new file mode 100644 index 000000000000..97f34e23f73e --- /dev/null +++ b/archivers/par2cmdline-turbo/files/patch-parpar_src_cpuid.h @@ -0,0 +1,18 @@ +--- parpar/src/cpuid.h.orig 2023-03-22 08:33:16 UTC ++++ parpar/src/cpuid.h +@@ -42,12 +42,13 @@ + # ifdef __ANDROID__ + // TODO: may be better to prefer auxv as it's supported + # include <cpu-features.h> +-# elif defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ >= 12) ++# elif defined(__linux__) + # include <sys/auxv.h> + # include <asm/hwcap.h> ++# elif (defined(__FreeBSD__) && __FreeBSD__ >= 12) ++# include <sys/auxv.h> + # elif (defined(__FreeBSD__) && __FreeBSD__ < 12) + # include <sys/sysctl.h> +-# include <asm/hwcap.h> + # elif defined(_WIN32) + # define WIN32_LEAN_AND_MEAN + # define NOMINMAX