head	1.3;
access;
symbols
	pkgsrc-2020Q1:1.2.0.2
	pkgsrc-2020Q1-base:1.2
	pkgsrc-2019Q4:1.2.0.4
	pkgsrc-2019Q4-base:1.2
	pkgsrc-2019Q3:1.1.0.10
	pkgsrc-2019Q3-base:1.1
	pkgsrc-2019Q2:1.1.0.8
	pkgsrc-2019Q2-base:1.1
	pkgsrc-2019Q1:1.1.0.6
	pkgsrc-2019Q1-base:1.1
	pkgsrc-2018Q4:1.1.0.4
	pkgsrc-2018Q4-base:1.1
	pkgsrc-2018Q3:1.1.0.2
	pkgsrc-2018Q3-base:1.1;
locks; strict;
comment	@# @;


1.3
date	2020.04.12.11.32.30;	author nia;	state dead;
branches;
next	1.2;
commitid	N8jKupOPmxwnx54C;

1.2
date	2019.11.01.17.39.34;	author nia;	state Exp;
branches;
next	1.1;
commitid	8f79aUmY9P5DOaJB;

1.1
date	2018.08.15.15.25.10;	author nia;	state Exp;
branches;
next	;
commitid	f0ZNGLH5SOBAieOA;


desc
@@


1.3
log
@rgbds: Update to 0.4.0

Very big release! This includes a lot of bug fixes, large portions of the
code rewritten, and some features deprecated or removed. We hope not to
break anyone's code, but we won't keep bugs for compatibility's sake. If
your code broke and the change isn't in the list below, please open an
issue in our tracker.

New:

 * Added warning flags to RGBASM: by default, most warnings are disabled
   now. Please see man rgbasm for more info
 * "LOAD blocks" simplify writing code that should run in RAM; users of
   unofficial program rgbbin may want to look into this
 * Shiny new assertions, whose checking can be deferred to RGBLINK
 * "Unionized" sections offer a sort of cross-file UNION
 * More flags in the RGBASM -M family for better automatic dependency
   management
 * Bracketed symbols can be nested (example)
 * SHIFT can now shift multiple times at once
 * Long options (such as --version for -V) have been added to all
   programs
 * RGBASM now accepts escape \r in strings
 * INCBIN now works with unseekable files as well

Deprecations and removals:

 * As part of a cleanup effort, features previously marked as deprecated
   have been removed, such as the CODE section type
 * Labels not starting with a dot nor followed by a colon have been
   deprecated; in a future version, they will be treated as macro
   invocations
 * Deprecated OPT z in favor of new and more consistent OPT p
 * Deprecated GLOBAL symbol (and its synonym XDEF), as it has the same
   effect as EXPORT
 * Removed "section-local" charmap (deprecated in 0.3.9)

Changes:

 * .sym and .map files are now output sorted
 * The argument to rst does not need to be known to RGBASM anymore (so
   labels can be used at all times)
 * Only labels may have dots in their name now
 * Labels beginning with a dot may have whitespace before their
   declaration
 * DEF() now accepts labels as arguments
 * ROMX and WRAMX sections can be used in RGBLINK's -t and -w modes,
   respectively
 * RGBLINK will report more detailed "error stacks", like RGBASM
 * RGBASM tries harder to treat expressions as "constant"
 * Second byte of stop can be specified without resorting to using db

For further information on new or changed features, please refer to our
documentation.

Fixes:

 * gbz80(7) had incorrect flag descriptions for sub
 * Arguments to RGBASM -i have a / implicitly appended if they don't end
   with one
 * = was treated as identical to set, so = 7, [hl] was valid; this has
   been fixed
 * Corrected wrong line reporting with REPT blocks
 * Changing sections now resets the label scope
 * Built-ins and symbols referenced in link-time expressions can no
   longer be PURGEd
 * __ISO_8601_UTC__ and __ISO_8601_LOCAL__ symbols fixed on Windows (with
   a caveat for the latter)

Notes:

 * RGBDS is now compiled with optimizations by default. To disable
   optimizations, use make CFLAGS=-O0. To compile in "debug mode", build
   using make develop instead of make; this requires a fairly specific
   configuration, though, and might not work for you.
 * Performance of RGBASM and RGBLINK should have been improved (beyond
   the above), but we would need help from someone experienced with YACC
   / Bison to make more significant changes
 * Reliability across systems and platforms has been improved:
      * RGBASM parser grammar has been cleaned up
      * Undefined behavior has been removed from various programs
 * Nightly builds are available for each commit now ("Actions" tab ⇒
   "Regression testing" ⇒ click on the commit name)
 * Docs have received an overhaul, including a more responsive and
   mobile-friendly styling
 * General system stability improvements to enhance the user's experience
@
text
@$NetBSD: patch-Makefile,v 1.2 2019/11/01 17:39:34 nia Exp $

Do not link statically.

--- Makefile.orig	2019-11-01 16:25:45.000000000 +0000
+++ Makefile
@@@@ -23,9 +23,9 @@@@ CHECKPATCH	:= ../linux/scripts/checkpatc
 # Other variables
 
 PKG_CONFIG	:= pkg-config
-PNGCFLAGS	:= `${PKG_CONFIG} --static --cflags libpng`
-PNGLDFLAGS	:= `${PKG_CONFIG} --static --libs-only-L libpng`
-PNGLDLIBS	:= `${PKG_CONFIG} --static --libs-only-l libpng`
+PNGCFLAGS	:= `${PKG_CONFIG} --cflags libpng`
+PNGLDFLAGS	:= `${PKG_CONFIG} --libs libpng`
+PNGLDLIBS	:= `${PKG_CONFIG} --libsl libpng`
 
 VERSION_STRING	:= `git describe --tags --dirty --always 2>/dev/null`
 
@


1.2
log
@rgbds: Update to 0.3.9

rgbasm:

    Enforced non-overwritability of some symbols
    - now allows assembling a file from stdin
    Allowed PUSHS to be used before a section declaration
    Prevented generating symbols with invalid names using macros
    Fixed the precedence of the == operator
    Added different output formats to bracketed symbols
    Fixed a parsing bug with some nested if constructs
    Improved error reporting now reports actual file line numbers as well as string expansions
    Added multiple charmaps (be careful as some feature has been deprecated, a warning has been added about it)
    Fixed bug with line numbers in some IF/ELIF/ELSE blocks
    Added configurable recursion limit to prevent infinite loops
    Fixed unary NOT being a no-op on constant expressions
    Made behavior consistent whether outputting a .o file or not
    Allowed tabs to be used before line continuations
    Allowed sections without content to be placed anywhere
    Made error message more explicit with macro argument 0

rgblink:

    Improved many error messages

rgbgfx:

    Added an option to use the GBC's color profile

other:

    Added more tests
    Did some internal cleanup
    Improved cross-platform compatibility of test suite
@
text
@d1 1
a1 1
$NetBSD$
@


1.1
log
@devel/rgbds: add version 0.3.7

RGBDS (Rednex Game Boy Development System) is a free assembler/linker
package for the Game Boy and Game Boy Color. It consists of:

* rgbasm (an assembler)
* rgblink (a linker)
* rgbfix (a checksum/header fixer)
* rgbgfx (a PNG-to-Game Boy graphics converter)

This is a fork of the original RGBDS which aims to make the programs
more like other UNIX tools.
@
text
@d3 1
a3 1
Don't override settings.
d5 1
a5 1
--- Makefile.orig	2018-05-02 19:04:00.000000000 +0000
d7 1
a7 10
@@@@ -8,8 +8,6 @@@@
 
 # User-defined variables
 
-Q		:= @@
-PREFIX		:= /usr/local
 bindir		:= ${PREFIX}/bin
 mandir		:= ${PREFIX}/man
 STRIP		:= -s
@@@@ -20,25 +18,17 @@@@ CHECKPATCH	:= ../linux/scripts/checkpatc
a13 2
-
-VERSION_STRING	:= `git describe --tags --dirty --always 2>/dev/null`
d15 2
a16 37
+PNGLDFLAGS	:= `${PKG_CONFIG} --libs-only-L libpng`
+PNGLDLIBS	:= `${PKG_CONFIG} --libs-only-l libpng`
 
 WARNFLAGS	:= -Wall
 
 # Overridable CFLAGS
-CFLAGS		:= -g
 # Non-overridable CFLAGS
 REALCFLAGS	:= ${CFLAGS} ${WARNFLAGS} -std=c99 -D_POSIX_C_SOURCE=200809L \
 		   -Iinclude -DBUILD_VERSION_STRING=\"${VERSION_STRING}\"
 
-YFLAGS		:=
-LFLAGS		:= --nounistd
-
-YACC		:= yacc
-LEX		:= flex
 RM		:= rm -rf
 
 # Rules to build the RGBDS binaries
@@@@ -94,16 +84,16 @@@@ rgbgfx_obj := \
 	src/version.o
 
 rgbasm: ${rgbasm_obj}
-	$Q${CC} ${REALCFLAGS} -o $@@ ${rgbasm_obj} -lm
+	$Q${CC} ${REALCFLAGS} ${LDFLAGS} -o $@@ ${rgbasm_obj} -lm
 
 rgblink: ${rgblink_obj}
-	$Q${CC} ${REALCFLAGS} -o $@@ ${rgblink_obj}
+	$Q${CC} ${REALCFLAGS} ${LDFLAGS} -o $@@ ${rgblink_obj}
 
 rgbfix: ${rgbfix_obj}
-	$Q${CC} ${REALCFLAGS} -o $@@ ${rgbfix_obj}
+	$Q${CC} ${REALCFLAGS} ${LDFLAGS} -o $@@ ${rgbfix_obj}
 
 rgbgfx: ${rgbgfx_obj}
-	$Q${CC} ${REALCFLAGS} ${PNGLDFLAGS} -o $@@ ${rgbgfx_obj} ${PNGLDLIBS}
+	$Q${CC} ${REALCFLAGS} ${LDFLAGS} ${PNGLDFLAGS} -o $@@ ${rgbgfx_obj} ${PNGLDLIBS}
d18 1
a18 1
 # Rules to process files
@

