pkgsrc/devel/xa65/patches/patch-Makefile
fcambus 9edcc42259 xa65: update to 2.3.10.
ChangeLog:

xa-2.3.6

  * 'make test' for regression testing framework (requires Perl).
  * Changed getline() to xa_getline() to avoid collision with glibc 2.10+
  * Fixed compile problems with misc/.
  * Fixed message offsets.

xa-2.3.7

  * Fixed buffer overflow and test failure with gcc 4.9 (thanks Adam Sampson).
  * mvn and mvp now use the standard syntax (thanks Alessandro Gatti).
  * Copyright message is no longer put in the error log to simplify testing.
  * Makefile properly triggers a relink for testing or source changes.
  * Spurious messages quelled.
  * Documentation updated.
  * Testsuite expanded.

xa-2.3.8

  * Fixed issue with colons in string literals being treated as separators
    (thanks Simon Rowe).
  * Testsuite expanded.

xa-2.3.9

  * Fixed issue on Windows and DOS systems with the .bin pseudo-op (thanks
    Bago Zonde).
  * Documentation updated.
  * Testsuite expanded.
  * For the thirty year anniversary of xa, we're changing the name to xxxa.
    (Just kidding.)

xa-2.3.10

  * Three fixes, all from Andre:
    - Don't crash if a useless segment is referenced outside of relocating
      mode (thanks Laszlo Barath for the report).
    - Don't substitute within strings, for better cpp compatibility (thanks
      Glenn Holmer for the report). I added the -S option for backwards
      compatibility for the old behaviour; it will be removed in 2.4 and later.
    - Fix underflow issue if a variable is late-bound (with -L) when that
      variable is used in computations with negative offsets.
  * Deprecated options will be removed in 2.4 and everything is warned.
  * Documentation updated.
  * Testsuite expanded.
2020-02-05 09:12:19 +00:00

57 lines
1.5 KiB
Text

$NetBSD: patch-Makefile,v 1.3 2020/02/05 09:12:19 fcambus Exp $
Install documentation, fix Makefile variables
--- Makefile.orig 2009-02-08 06:49:30.000000000 +0000
+++ Makefile
@@ -15,11 +15,11 @@ LDFLAGS = -lc
#CFLAGS =
#LD = ld
-DESTDIR = /usr/local
+PREFIX?= /usr/local
-BINDIR = $(DESTDIR)/bin
-MANDIR = $(DESTDIR)/share/man/man1
-DOCDIR = $(DESTDIR)/share/doc
+BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/${PKGMANDIR}/man1
+DOCDIR = $(PREFIX)/share/doc
MKDIR = mkdir -p
INSTALL = install
@@ -51,11 +51,29 @@ clean:
rm -f xa *.exe *.o65
install: xa uncpk
- $(MKDIR) $(BINDIR)
- $(MKDIR) $(MANDIR)
- $(INSTALL) xa reloc65 ldo65 file65 printcbm uncpk $(BINDIR)
- $(INSTALL) man/file65.1 man/ldo65.1 man/printcbm.1 man/reloc65.1 man/uncpk.1 man/xa.1 $(MANDIR)
- #$(MKDIR) $(DOCDIR)/xa65
+ $(MKDIR) $(DESTDIR)$(BINDIR)
+ $(MKDIR) $(DESTDIR)$(MANDIR)
+ $(MKDIR) $(DESTDIR)$(DOCDIR)/xa65
+.for prg in xa reloc65 ldo65 file65 printcbm uncpk
+ $(BSD_INSTALL_PROGRAM) $(prg) $(DESTDIR)$(BINDIR)
+ $(BSD_INSTALL_DATA) man/$(prg).1 $(DESTDIR)$(MANDIR)
+.endfor
+.for doc in examples/c64def.def \
+ examples/pack.doc \
+ examples/pack_eng.a65 \
+ examples/pack_ger.a65 \
+ examples/peng.l \
+ doc/fileformat.txt \
+ doc/README \
+ doc/xaannounce \
+ doc/xa-de.log \
+ doc/xa-de.txt \
+ doc/xa.html \
+ doc/xa.log \
+ doc/xa.txt
+
+ $(BSD_INSTALL_DATA) $(doc) $(DESTDIR)$(DOCDIR)/xa65
+.endfor
dist: clean
cd .. ; tar cvf xa-2.3.10.tar xa-2.3.10 ; gzip xa-2.3.10.tar