From 3d04765e8d9337b771225b01aad43c208c85a837 Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Mon, 25 Aug 2025 01:21:09 -0400 Subject: [PATCH] Add dev-games/rgbds A toolchain for homebrew gameboy/gameboy color development (#12815) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add RGBDS a toolchain for homebrew Gameboy/GBC games * Add RGBDS a toolchain for homebrew Gameboy/GBC games, clean up according to review * whitespace fixy * Fix whitespace issues for reals this time * Update dev-games/rgbds/rgbds-0.9.4.recipe fix escape Co-authored-by: humdinger * Add copyright year * Fix truncated description * escape quotes * Update dev-games/rgbds/rgbds-0.9.4.recipe whitespace Co-authored-by: Joachim Mairböck * Update dev-games/rgbds/rgbds-0.9.4.recipe whitespace redux Co-authored-by: Joachim Mairböck * Apply suggestions from code review * Update dev-games/rgbds/rgbds-0.9.4.recipe * Update dev-games/rgbds/rgbds-0.9.4.recipe full stop Co-authored-by: humdinger * Update dev-games/rgbds/rgbds-0.9.4.recipe stray backslash Co-authored-by: humdinger * Update dev-games/rgbds/rgbds-0.9.4.recipe Co-authored-by: humdinger * Alphabetical sorting * Update dev-games/rgbds/rgbds-0.9.4.recipe Sort according to guidelines * Update dev-games/rgbds/rgbds-0.9.4.recipe We keep this for libpng --------- Co-authored-by: humdinger Co-authored-by: Joachim Mairböck Co-authored-by: Schrijvers Luc --- dev-games/rgbds/rgbds-0.9.4.recipe | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 dev-games/rgbds/rgbds-0.9.4.recipe diff --git a/dev-games/rgbds/rgbds-0.9.4.recipe b/dev-games/rgbds/rgbds-0.9.4.recipe new file mode 100644 index 000000000..26487a336 --- /dev/null +++ b/dev-games/rgbds/rgbds-0.9.4.recipe @@ -0,0 +1,49 @@ +SUMMARY="A free assembler/linker package for the Game Boy and Game Boy Color" +DESCRIPTION="RGBDS' four programs cover the whole compilation pipeline into a \ +ready-to-play ROM, from RGBGFX (the image converter) to RGBFIX (the header \ +\"fixer\"). +Each tool can easily be swapped for a custom one, or used stand-alone as part \ +of another process." +HOMEPAGE="https://rgbds.gbdev.io/" +COPYRIGHT="1998-2025 Carsten Sørensen and RGBDS contributors" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://github.com/gbdev/rgbds/archive/refs/tags/v0.9.4.tar.gz" +CHECKSUM_SHA256="29a0bdea2c07ae7e7af9f313de5deaa3ab0557e0251eac9b1e418cc18ebc0ba4" + +ARCHITECTURES="x86_64" + +PROVIDES=" + rgbds = $portVersion + cmd:rgbasm = $portVersion + cmd:rgblink = $portVersion + cmd:rgbgfx = $portVersion + cmd:rgbfix = $portVersion + " +REQUIRES=" + haiku + lib:libpng16 + lib:libz + " + +BUILD_REQUIRES=" + haiku_devel + devel:libpng16 + devel:libz + " +BUILD_PREREQUIRES=" + cmd:bison + cmd:gcc + cmd:make + cmd:pkg_config + " + +BUILD() +{ + make $jobArgs +} + +INSTALL() +{ + make install PREFIX=$prefix mandir=$manDir +}