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,36 +1,37 @@ PORTNAME= par2cmdline-turbo PORTVERSION= 0.9.0 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= archivers MAINTAINER= martymac@FreeBSD.org COMMENT= Tools for using Parity v2 Archive files using ParPar backend 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 GNU_CONFIGURE= yes LDFLAGS+= -lpthread USE_GITHUB= yes GH_ACCOUNT= animetosho PORTDOCS= README.md CONFLICTS= par2cmdline PLIST_FILES= bin/par2 bin/par2create bin/par2repair bin/par2verify \ man/man1/par2.1.gz OPTIONS_DEFINE= DOCS TEST_TARGET= check post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} && \ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include 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 +-# elif defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ >= 12) ++# elif defined(__linux__) + # include + # include ++# elif (defined(__FreeBSD__) && __FreeBSD__ >= 12) ++# include + # elif (defined(__FreeBSD__) && __FreeBSD__ < 12) + # include +-# include + # elif defined(_WIN32) + # define WIN32_LEAN_AND_MEAN + # define NOMINMAX