pkgsrc/games/vms-empire/patches/patch-aa
leot 930757fb15 Update games/vms-empire to 1.14.
Patch based on PR pkg/50624 provided by Ben Gergely.

Thanks to riastradh@, joerg@ and dholland@ for misc suggestions and review.

pkgsrc changes:
 o Add LICENSE
 o Instead of define a do-install use the install target provided by upstream

Changes:
1.14: 2016-01-05 06:49:17Z
        Add an identifying magic cookie and version to save files.
        Full ANSI prototypes for private functions as well as public.
	Markup fix for probability table.

1.13: 2014-12-14T17:06:26Z
	Comment on entry to and exit from edit mode.
	Cleaned up packaging and install/uninstall productions.

1.12: 2014-05-20T09:03:09Z
	Incorporated Dennis Pinckard's fix for a Mac OS/X port bug.
	Added desktop file.

1.11: 2013-12-31T17:31:04Z
	Clean up code to modern C, apply cppcheck.
	Fix code typo reported as Debian bug #593434

1.10: 2013-08-22T23:47:21Z
	Fix core dump when a satellite bounced off the world edge.
	Full ANSIfication of function prototypes (which fixed the
	sat bug - the code appears to have been tickling some obscure
	bug in the compilation of function calls with K&R-style prototypes).

1.9: 2012-02-16T22:59:22Z
	Drop RPM packaging. Documentation cleanups.

1.8: 2010-10-21T12:47:33Z
	Joe Wells's patch to enable different-sized worlds.  Minor fixes to
	map functions by Andrew Morrow. More on the history of the game.
	Enable arrow keys in edit mode.
	License changed from Chuck Simmons's cosmetically tweaked clone
	of the GPL to GPL proper, so the classifier systems that forge
	and archive sites use will be less confused.
2016-01-11 19:37:43 +00:00

39 lines
1,000 B
Text

$NetBSD: patch-aa,v 1.5 2016/01/11 19:37:43 leot Exp $
o Turn off optimizations present in DEBUG
o Link against (generic) curses
o Honors user's CFLAGS and LDFLAGS
--- Makefile.orig 2016-01-11 18:19:51.000000000 +0000
+++ Makefile
@@ -8,18 +8,18 @@ VERS=1.14
# Use -g to compile the program for debugging.
#DEBUG = -g -DDEBUG
-DEBUG = -O2
+#DEBUG = -O2
# Use -p to profile the program.
#PROFILE = -p -DPROFILE
PROFILE =
-LIBS = -lncurses
+LIBS = -lcurses
# You shouldn't have to modify anything below this line.
# There's a dynamic format in the object-display routines; suppress the warning
-CFLAGS = $(DEBUG) $(PROFILE) -Wall -Wno-format-security
+CFLAGS += $(DEBUG) $(PROFILE) -Wall -Wno-format-security
FILES = \
attack.c \
@@ -58,7 +58,7 @@ OFILES = \
all: vms-empire
vms-empire: $(OFILES)
- $(CC) $(PROFILE) -o vms-empire $(OFILES) $(LIBS)
+ $(CC) $(PROFILE) -o vms-empire $(OFILES) $(LIBS) $(LDFLAGS)
attack.o:: extern.h empire.h
compmove.o:: extern.h empire.h