pkgsrc/games/finalbattle/patches/patch-makefile
dholland 6bf7e37a58 Make this work. Add a distfile jumbo patch doing the following:
- use standard headers
   - don't use perror, don't use sprintf
   - fix time handling issues
   - compile in paths so the data can be installed (from patch-ab)
   - fix name conflict with libc
   - avoid undefined behavior
   - avoid implicit int for clang
   - declare own functions, sprinkle const and static, and fix
     signedness to get a clean build (except for one remaining issue
     where it's not clear what to do)
   - remove unused elements detected by gcc
   - fix some problems detected by gcc
   - fix a startup crash
   - modernize the makefile

Also, don't install the raw image bitmap data and the scripts to digest
it; install only the digested form, as that's all that's used at runtime.
2016-12-11 01:10:26 +00:00

30 lines
581 B
Text

$NetBSD: patch-makefile,v 1.1 2016/12/11 01:10:26 dholland Exp $
Configure for pkgsrc.
--- makefile~ 2016-12-11 00:38:57.236393895 +0000
+++ makefile
@@ -9,8 +9,8 @@
# Makefile defines
-DESTDIR=
-PREFIX=/usr/local
+#DESTDIR=
+#PREFIX=/usr/local
#CC=cc
CC=gcc
@@ -24,10 +24,10 @@ STRIP=strip
#X11BASE=/usr/openwin
#X11BASE=/usr/X11R6
-X11BASE=/usr/X11
+#X11BASE=/usr/X11
XINCS=-I$(X11BASE)/include
-XLIBS=-L$(X11BASE)/lib -lX11 # -R$(X11BASE)/lib
+XLIBS=-L$(X11BASE)/lib -lX11 -R$(X11BASE)/lib
DATADIR=$(PREFIX)/share/finalbattle
SPRITESDIR=$(DATADIR)/sprites