Commit graph

80 commits

Author SHA1 Message Date
Kp 98b7679732 Remove obsolete MacOS C source files
These are not referenced in SConstruct.  messagebox.c uses C linkage for
symbols that would be referenced from a C++ file, so this has likely
been broken since the common code moved to C++.
2022-10-02 19:51:36 +00:00
raptor 1a10ffd031 Update macos package building scripts to install dylibbundler via brew and instruct scons to do the bundling 2022-08-11 21:52:06 -06:00
raptor 85a617386f Packaging changes:
- Split out builds in order to trigger them separately
- Anchor macdylibbundler to a specific revision
2022-08-10 09:25:08 -06:00
raptor 0e03692ec3 Packages for Windows, Linux, and macOS. Uses Github's Actions 2022-08-01 09:39:41 -06:00
Kp 78d4a36bb4 Explicitly require support for C++11 constructor inheritance
Parts of the code already used the C++11 syntax, so compilers without it
were already unsupported.  Expand the remaining uses to the standard
syntax.
2022-01-09 15:25:42 +00:00
Kp 6fb57c2dc2 Update snapshot ebuild 2021-08-26 03:13:46 +00:00
Kp fb254d3986 Update PYTHON_COMPAT in Gentoo ebuild
Python 3.9 is now standard, and is used for running SCons.  Update
PYTHON_COMPAT accordingly.
2021-08-26 03:13:46 +00:00
Kp e1aac6949a Replace __attribute_warn_unused_result with C++17 [[nodiscard]]
This eliminates a configure test, and may help readers understand the
annotation more readily.
2021-06-28 03:37:51 +00:00
Kp 770ae0cea5 Replace __attribute_noreturn with C++11 [[noreturn]]
This eliminates a configure test, and may help readers understand the
annotation more readily.
2021-06-28 03:37:50 +00:00
Edward E c1e1a4570d Add Windows/MSYS2 build instructions
Also user scripts for running the produced executable
2021-02-07 23:51:41 -06:00
Kp ac97d00698 Remove support for PhysFS 1, PhysFS 2
The last PhysFS 1 release was in March 2009.  The last PhysFS 2 release
was in August 2017, shortly before the release of PhysFS 3 in September
2017.  Most distributions have moved to PhysFS 3.  Drop support for
PhysFS 1 and PhysFS 2.  PhysFS 2 support could be restored if there is
interest.
2020-12-27 22:03:09 +00:00
Kp 6e4b63e098 Use C++17 std::size instead of custom lengthof
lengthof was added to provide the size of C arrays.  C++17 std::size is
now available, and can serve the same purpose.  Remove the custom
lengthof.

The generated code is the same in both cases, other than the change in
line numbers caused by removal of the #include directives.
2020-07-05 23:34:32 +00:00
Kp 321c272920 Update snapshot ebuild 2020-06-27 17:37:50 +00:00
Kp aba40babb4 Switch pkg_postinst to call xdg_pkg_postinst
EAPI=7 disallows use of `default`.  According to chewi[1], an explicit
call of xdg_pkg_postinst is important.  Add that in place of default.

[1]: https://github.com/dxx-rebirth/dxx-rebirth/issues/502#issuecomment-644112338
2020-06-27 17:37:50 +00:00
Kp 6ffd62ff7c Update snapshot ebuild 2020-06-15 00:21:35 +00:00
Kp 0c2fcf691f Fix redundancy in package name
${SDL_version} already starts with the string "sdl", so specifying it
again in the package name is incorrect.

Reported-by: dr-diem <https://github.com/dxx-rebirth/dxx-rebirth/issues/502#issuecomment-643828214>
2020-06-15 00:21:35 +00:00
Kp 46d72a29c0 Retire compiler-begin.h
This was once a compatibility shim, but compiler support for std::begin
has been required since 5e434cbe95 and no
issues have been reported.  Flatten the include tree by removing this
header and using the STL names directly.
2020-06-10 02:25:32 +00:00
Kp 6212b914cb Adjust freedata ebuild to block pre-unification ebuilds 2020-06-02 03:14:30 +00:00
Kp 91a5956b11 Update snapshot ebuild 2020-05-31 23:04:25 +00:00
Kp 3b964351d9 Update ebuild for scons-utils PYTHON_COMPAT requirement 2020-05-31 23:04:25 +00:00
Kp 1ac12b9ead Update ebuild to EAPI=7 2020-05-31 23:04:25 +00:00
Kp 84fb6d499b Update snapshot ebuild 2020-05-23 00:31:37 +00:00
Kp 5a73a680f8 Change SRC_URI to download .tar.gz snapshots
Requested-by: dr-diem <https://github.com/dxx-rebirth/dxx-rebirth/issues/502#issuecomment-632475853>
2020-05-23 00:31:37 +00:00
Kp b46ed29e82 Add PROPERTIES=live to 9999 ebuild
In issue #502, dr-diem mentioned adding PROPERTIES=live to the ebuild
that he planned to submit to Gentoo.  This looks like a good idea to
have in the ebuild tracked in the Rebirth source tree, so add it here
too.

Motivated-by: dr-diem <https://github.com/dxx-rebirth/dxx-rebirth/issues/502#issuecomment-629880896>
2020-05-18 00:08:16 +00:00
Kp bd3883ad73 Update snapshot ebuild 2020-05-17 23:35:26 +00:00
Kp 3114874713 Delegate PCX loading to SDL_image
This adds a new dependency, but most systems likely already have
SDL_image installed.  Use of SDL_image can be disabled, but this is
discouraged, because various in-game interfaces assume the use of the
original background.

The old implementation automatically corrected for filename case.  The
new implementation expects that the supplied filename can be passed to
PYHSFS_openRead as-is.  All known uses in-game have been corrected to
satisfy this requirement.  If the new stricter match requirement becomes
a problem, a variant of PHYSFSRWOPS_openRead that adjusts filename case
could be created for use here.

- Update install instructions
- Update ebuild
- Update Arch PKGBUILD
2020-05-17 23:35:26 +00:00
Kp 3ce1f2b3ed Require support for C++11 addressof 2020-05-02 21:18:43 +00:00
Kp 9cee93abb1 Require support for C++14 std::exchange 2020-05-02 21:18:42 +00:00
Kp b396445efa Require support for std::index_sequence, std::make_index_sequence
The minimum supported compiler versions now provide a depth-efficient
implementation of std::make_index_sequence, which removes the last
reason to carry a private implementation.  In the case of clang, it
appears to have a special compiler intrinsic used to implement its
std::make_index_sequence.

Switch to the compiler-provided version for both gcc and clang.
2020-04-26 17:26:23 +00:00
Kp d2e190ec3d Update snapshot ebuilds
- Remove the d1x, d2x ebuilds.  Gentoo uses the dxx name now, so the old
  placeholder ebuilds are no longer needed.
- Update the dxx snapshot ebuild to a current commit.
- Resynchronize the dxx snapshot ebuild from the dxx live ebuild.
  - This adds support for USE=valgrind and for USE=data.
- Add a helper script to generate snapshot ebuilds for arbitrary
  commits.
2020-04-19 20:47:07 +00:00
Kp 3b1f33c0c3 Make ebuild dependency on game data configurable via USE=data 2020-04-19 20:47:07 +00:00
Kp ddce1b00d5 Ignore Manifest files in the Gentoo ebuild area 2020-04-19 20:47:07 +00:00
SanskritFritz c62e0d322c Version 20191227 2019-12-31 13:10:12 +01:00
SanskritFritz 4fe2d8f35f Minor fixes in the Archlinux PKGBUILDs. 2019-12-31 12:31:04 +01:00
SanskritFritz 40f344125e Archlinux PKGBUILD fixes. 2019-12-30 00:15:33 +01:00
Kp 427f45fdd7 Update Arch PKGBUILD
- Quote variables.
- Use https:// where possible.
- Combine mkdir calls.
- Fix broken links to GOG game pages.
2019-09-14 20:54:08 +00:00
Christian Beckhäuser b97091cf70 Added Arch PKGBUILDs 2019-09-12 13:29:17 +02:00
Kp 6629711b59 Import RPM spec file 2019-08-29 02:40:32 +00:00
Kp f4264f146e Add USE=valgrind support to ebuild 2019-08-18 20:37:29 +00:00
Kp 4759ad660f Update ebuild to latest snapshot
a17792c89f fixes an important multiplayer
bug.
2019-07-20 18:24:24 +00:00
Kp f84cdff6a2 Update ebuild to latest snapshot 2019-07-07 22:00:16 +00:00
Kp da59e1ff5a Update transition ebuilds to most recent snapshot
Fixes: c834febc09 ("Update ebuild to most recent snapshot")
2019-06-12 04:23:35 +00:00
Kp c834febc09 Update ebuild to most recent snapshot
Add _p1 to pull in the fix for register_install_target=1.
2019-06-01 21:13:49 +00:00
Kp 12b57e84e6 Switch most in-tree http:// links to https://
For each link given as http://, verify that the site is accessible over
https:// and, if so, switch to it.  These domains were converted:

* llvm.org
* clang.llvm.org
* en.cppreference.com
* www.dxx-rebirth.com
* www.libsdl.org
* www.scons.org
2018-09-02 00:57:29 +00:00
Kp f491059ed7 Enable building with SDL2
This commit enables Rebirth to build with SDL2, but the result is not
perfect.

- SDL2 removed some sticky key support.  Rebirth may behave differently
  now in this area.
- SDL2 removed some key-repeat related support.  Rebirth may behave
  differently now in this area.
- SDL2 gained the ability to make a window fullscreen by sizing it to
  the desktop instead of by changing the desktop resolution.  Rebirth
  uses this, and it mostly works.
  - Resizing while in the automap does not notify the automap code, so
    the view is wrong until the player switches out of automap mode and
    back in.
- SDL2 changed how to enumerate available resolutions.  Since
  fitting the window to the desktop is generally more useful than
  fitting the desktop to the window, I chose to drop support for
  enumerating resolutions instead of porting to the new API.  Users can
  now enter an arbitrary window dimension and Rebirth will make an
  attempt to use it.
  - It might be useful to cap the window dimension at the desktop
    dimension, but that is not done yet.
  - Entering fullscreen mode through the Controls->Graphics submenu
    failed to notify the relevant subsystems, causing the rendered
    content not to rescale.  For now, compile out the option to toggle
    full screen through that menu.  Toggling through Alt+Enter works
    properly.

Despite these quirks, this is a substantial improvement over the prior
commit, where SDL2 cannot be used at all.  The remaining issues can be
resolved in future work.

References: <https://github.com/dxx-rebirth/dxx-rebirth/issues/82>
2018-07-28 23:22:58 +00:00
Kp d1a4e3b7a1 Update Gentoo ebuild to current stable-0.60.x
_p38 since the target commit is 38 commits after tag 0.60.0-beta2.
2018-06-24 18:05:48 +00:00
Kp 2f4524d3c2 Add screenshot=none to disable screenshot support
Per comment from kreator, some Apple systems now ship without a working
print screen key.  It makes no sense to provide print screen support
bound to a key which does not exist.  Add `screenshot=none` and activate
it on OS X to remove the unreachable screenshot support.
2018-06-16 04:13:37 +00:00
Kp e616ca4f47 Bump Gentoo ebuilds for beta2 2018-06-06 04:53:45 +00:00
Chris Taylor 0b026b6282 Fix 'Header png.h is missing or unusable' build error on macOS Xcode
Commit 131c1b9f4d added support for PNG screenshots and made this support a default build option. Set screenshot=legacy in the project file for macOS's Xcode for all out-of-the-box builds. PNG support has been dropped in Xcode for several reasons:
- macOS creates PNG screenshots via Command-Shift-3. This works in DXX-Rebirth, even in full screen mode.
- The macOS screenshots are put on the desktop, as opposed to in the user's Library (which is normally hidden from view and can only be accessed via 'Go' menu holding down Option)
- Macs have no Print Screen key
- There is no simple way to include libpng with the macOS DXX-Rebirth binaries, and the average Mac user is unlikely to install it from source

When building with scons, the Mac user compiling can do one of two things:
- Install libpng (which is much easier than packaging with a binary)
- Pass screenshot=legacy to scons
2018-05-14 15:48:00 +08:00
Kp 131c1b9f4d Add support for PNG screenshots 2018-02-18 00:42:42 +00:00