svn commit: r567985 - in head/devel: . rgbds rgbds/files
Tobias Kortkamp
tobik at FreeBSD.org
Wed Mar 10 06:26:24 UTC 2021
Author: tobik
Date: Wed Mar 10 06:26:22 2021
New Revision: 567985
URL: https://svnweb.freebsd.org/changeset/ports/567985
Log:
Add devel/rgbds
RGBDS is a free GBZ80 assembler/linker package for the Game Boy and
Game Boy Color. RGBDS additionally contains 2 extra tools to fix
ROM headers, and convert PNG files to the Game Boy's planar tile
format.
The binaries it provides are:
rgbasm(1) (assembler)
rgblink(1) (linker)
rgbfix(1) (checksum/header fixer)
rgbgfx(1) (PNG-to-Game Boy graphics converter)
WWW: https://rgbds.gbdev.io/
PR: 243645
Submitted by: trigex at waifu.club (old version 0.3.9)
Added:
head/devel/rgbds/
head/devel/rgbds/Makefile (contents, props changed)
head/devel/rgbds/distinfo (contents, props changed)
head/devel/rgbds/files/
head/devel/rgbds/files/patch-Makefile (contents, props changed)
head/devel/rgbds/pkg-descr (contents, props changed)
head/devel/rgbds/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Wed Mar 10 06:08:24 2021 (r567984)
+++ head/devel/Makefile Wed Mar 10 06:26:22 2021 (r567985)
@@ -5420,6 +5420,7 @@
SUBDIR += reproc
SUBDIR += resolv_wrapper
SUBDIR += revive
+ SUBDIR += rgbds
SUBDIR += rhtvision
SUBDIR += rinutils
SUBDIR += riscv32-unknown-elf-gcc
Added: head/devel/rgbds/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rgbds/Makefile Wed Mar 10 06:26:22 2021 (r567985)
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+PORTNAME= rgbds
+DISTVERSION= 0.5.0-rc1
+CATEGORIES= devel games
+MASTER_SITES= https://github.com/gbdev/rgbds/releases/download/v${DISTVERSION}/
+
+MAINTAINER= tobik at FreeBSD.org
+COMMENT= Free assembler/linker for the Game Boy & Game Boy Color
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libpng.so:graphics/png
+
+USES= bison dos2unix pkgconfig
+WRKSRC= ${WRKDIR}/rgbds
+
+.include <bsd.port.mk>
Added: head/devel/rgbds/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rgbds/distinfo Wed Mar 10 06:26:22 2021 (r567985)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1615356903
+SHA256 (rgbds-0.5.0-rc1.tar.gz) = fcb894573a606880e2799b98962b4aba40757a9ddeb8f3163bf0db0a455f8e01
+SIZE (rgbds-0.5.0-rc1.tar.gz) = 7920373
Added: head/devel/rgbds/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rgbds/files/patch-Makefile Wed Mar 10 06:26:22 2021 (r567985)
@@ -0,0 +1,30 @@
+In file included from src/asm/charmap.c:22:
+include/hashmap.h:18:15: error: expected parameter declarator
+static_assert(HALF_HASH_NB_BITS * 2 == HASH_NB_BITS, "");
+ ^
+include/hashmap.h:17:27: note: expanded from macro 'HALF_HASH_NB_BITS'
+#define HALF_HASH_NB_BITS 16
+ ^
+include/hashmap.h:18:15: error: expected ')'
+include/hashmap.h:17:27: note: expanded from macro 'HALF_HASH_NB_BITS'
+#define HALF_HASH_NB_BITS 16
+ ^
+include/hashmap.h:18:14: note: to match this '('
+static_assert(HALF_HASH_NB_BITS * 2 == HASH_NB_BITS, "");
+ ^
+include/hashmap.h:18:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
+static_assert(HALF_HASH_NB_BITS * 2 == HASH_NB_BITS, "");
+^
+1 warning and 2 errors generated.
+
+--- Makefile.orig 2021-03-10 06:20:18 UTC
++++ Makefile
+@@ -35,7 +35,7 @@ WARNFLAGS := -Wall
+ # Overridable CFLAGS
+ CFLAGS ?= -O3 -flto -DNDEBUG
+ # Non-overridable CFLAGS
+-REALCFLAGS := ${CFLAGS} ${WARNFLAGS} -std=gnu11 -D_POSIX_C_SOURCE=200809L \
++REALCFLAGS := ${CFLAGS} ${WARNFLAGS} -std=gnu11 \
+ -Iinclude
+ # Overridable LDFLAGS
+ LDFLAGS ?=
Added: head/devel/rgbds/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rgbds/pkg-descr Wed Mar 10 06:26:22 2021 (r567985)
@@ -0,0 +1,12 @@
+RGBDS is a free GBZ80 assembler/linker package for the Game Boy and
+Game Boy Color. RGBDS additionally contains 2 extra tools to fix
+ROM headers, and convert PNG files to the Game Boy's planar tile
+format.
+
+The binaries it provides are:
+rgbasm(1) (assembler)
+rgblink(1) (linker)
+rgbfix(1) (checksum/header fixer)
+rgbgfx(1) (PNG-to-Game Boy graphics converter)
+
+WWW: https://rgbds.gbdev.io/
Added: head/devel/rgbds/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rgbds/pkg-plist Wed Mar 10 06:26:22 2021 (r567985)
@@ -0,0 +1,13 @@
+bin/rgbasm
+bin/rgbfix
+bin/rgbgfx
+bin/rgblink
+share/man/man1/rgbasm.1.gz
+share/man/man1/rgbfix.1.gz
+share/man/man1/rgbgfx.1.gz
+share/man/man1/rgblink.1.gz
+share/man/man5/rgbasm.5.gz
+share/man/man5/rgbds.5.gz
+share/man/man5/rgblink.5.gz
+share/man/man7/gbz80.7.gz
+share/man/man7/rgbds.7.gz
More information about the svn-ports-all
mailing list