Commit a1bd7150 authored by tobik's avatar tobik
Browse files

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@waifu.club (old version 0.3.9)
parent 787c36c2
...@@ -5420,6 +5420,7 @@ ...@@ -5420,6 +5420,7 @@
SUBDIR += reproc SUBDIR += reproc
SUBDIR += resolv_wrapper SUBDIR += resolv_wrapper
SUBDIR += revive SUBDIR += revive
SUBDIR += rgbds
SUBDIR += rhtvision SUBDIR += rhtvision
SUBDIR += rinutils SUBDIR += rinutils
SUBDIR += riscv32-unknown-elf-gcc SUBDIR += riscv32-unknown-elf-gcc
......
# $FreeBSD$
PORTNAME= rgbds
DISTVERSION= 0.5.0-rc1
CATEGORIES= devel games
MASTER_SITES= https://github.com/gbdev/rgbds/releases/download/v${DISTVERSION}/
MAINTAINER= tobik@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>
TIMESTAMP = 1615356903
SHA256 (rgbds-0.5.0-rc1.tar.gz) = fcb894573a606880e2799b98962b4aba40757a9ddeb8f3163bf0db0a455f8e01
SIZE (rgbds-0.5.0-rc1.tar.gz) = 7920373
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 ?=
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/
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment