games/punchy: Fix LICENSE_DISTFILES
This port, like many other Rust ports, brings numerous dependencies to
the distinfo, and by default, LICENSE_DISTFILES applies to all of them.
However, due to license permission constraints, it was removing about
800 distfiles with `make clean-restricted`, which are also used by many
other ports. With this change, the license constraint will apply only to
the port itself.
Approved by: portmgr (blanket)
games/punchy: fix build on armv7
Disable LTO for better memory economy. Same fix as for i386.
See also: ad1d79583b285d7a320f7a8b844bc568142670e0
Approved by: portmgr (build fix blanket)
MFH: 2023Q4
games/punchy: unbreak build after fa874813924c
error[E0080]: evaluation of constant value failed
--> cargo-crates/v8-0.47.1/src/isolate.rs:1222:3
|
1222 | assert!(size_of::<TypeId>() == size_of::<u64>());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program
panicked at 'assertion failed: size_of::<TypeId>() == size_of::<u64>()',
cargo-crates/v8-0.47.1/src/isolate.rs:1222:3
|
= note: this error originates in the macro `assert` (in Nightly builds, run
with -Z macro-backtrace for more info)
Reported by: pkg-fallout
games/punchy: unbreak build with clang 16 on aarch64
In file included from
cargo-crates/v8-0.47.1/v8/src/compiler/backend/instruction-selector.cc:5:
In file included from
cargo-crates/v8-0.47.1/v8/src/compiler/backend/instruction-selector.h:12:
In file included from
cargo-crates/v8-0.47.1/v8/src/compiler/backend/instruction-scheduler.h:10:
In file included from
cargo-crates/v8-0.47.1/v8/src/compiler/backend/instruction.h:13:
In file included from
cargo-crates/v8-0.47.1/v8/src/codegen/external-reference.h:9:
In file included from cargo-crates/v8-0.47.1/v8/src/runtime/runtime.h:11:
cargo-crates/v8-0.47.1/v8/src/base/bit-field.h:43:29: error: integer value 31 is
outside the valid range of values [0, 15] for the enumeration type
'AddressingMode' [-Wenum-constexpr-conversion]
static constexpr T kMax = static_cast<T>(kNumValues - 1);
^
Reported by: pkg-fallout
games/punchy: unbreak build on armv7
Fix files/patch-v8 to compile on armv7 by refactoring it to use
ELF auxilliary vectors in the CPU detection code and by adding
some missing includes.
cargo-crates/v8-0.47.1/third_party/zlib/cpu_features.c:137:20: warning: implicit
declaration of function 'READ_SPECIALREG' is invalid in C99
[-Wimplicit-function-declaration]
id_aa64isar0 = READ_SPECIALREG(id_aa64isar0_el1);
^
cargo-crates/v8-0.47.1/third_party/zlib/cpu_features.c:137:36: error: use of
undeclared identifier 'id_aa64isar0_el1'; did you mean 'id_aa64isar0'?
id_aa64isar0 = READ_SPECIALREG(id_aa64isar0_el1);
^~~~~~~~~~~~~~~~
id_aa64isar0
cargo-crates/v8-0.47.1/third_party/zlib/cpu_features.c:136:14: note:
'id_aa64isar0' declared here
uint64_t id_aa64isar0;
(Only the first 15 lines of the commit message are shown above )
games/punchy: enable Wayland support
All Wayland compositors on FreeBSD support server-side decorations.
Mutter is X11-only on FreeBSD due to missing (e)logind dependency.
games/punchy: add new port
Fish Folk: Punchy is a 2.5D side-scroller beat-'em-up, made in Bevy.
Inspired by games like Little Fighter 2, River City Ransom and many more.