[Bug 280195] emulators/zsnes: Fix build by using an older C++ standard

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 08 Jul 2024 20:46:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280195

            Bug ID: 280195
           Summary: emulators/zsnes: Fix build by using an older C++
                    standard
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: cyberbotx@cyberbotx.com

Created attachment 251941
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=251941&action=edit
zsnes-1.51.patch

Since ZSNES is not in active development, with the last release being in 2007,
the code is not designed to be compiled with more recent C++ standards. Thus,
this patch makes it use an older standard to make it compile.

- Updated Makefile (cleaned up through portclippy and portfmt), adding a
CONFIGURE_ENV to set the C++ standard through CXXFLAGS.
- Updated files/patch-configure as the above CXXFLAGS were being ignored due to
one line using CFLAGS instead of CXXFLAGS.

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