[Bug 260625] benchmarks/lzbench: fix build on arm and riscv64

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 23 Dec 2021 00:05:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260625

            Bug ID: 260625
           Summary: benchmarks/lzbench: fix build on arm and riscv64
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: danfe@FreeBSD.org
          Reporter: fuz@fuz.su
                CC: danfe@FreeBSD.org
             Flags: maintainer-feedback?(danfe@FreeBSD.org)
          Assignee: danfe@FreeBSD.org
 Attachment #230330 maintainer-approval?(danfe@FreeBSD.org)
             Flags:
                CC: danfe@FreeBSD.org

Created attachment 230330
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=230330&action=edit
benchmarks/lzbench: fix build on arm and riscv64

- add a type cast clang requires
 - patch in a word size check for riscv64
 - remove use of -march=native
 - add an SSE option to configure building the lzsse encoder
   instead of detecting that from the host
 - make the port obey CFLAGS
 - pet portlint

Tested with Poudriere on i386 amd64 armv7 arm64 riscv64 FreeBSD 13.
Portlint wants LICENSE to be defined but is otherwise happy.

-- 
You are receiving this mail because:
You are the assignee for the bug.