~strahinja/lav-sdl

620343f0a70c84f494c636f008d3ad26832d5403 — Страхиња Радић 4 months ago ac6c0e7 + 5dda543 master
Merge branch 'master' of git.sr.ht:~strahinja/lav-sdl
2 files changed, 8 insertions(+), 4 deletions(-)

M INSTALL
M config.mk
M INSTALL => INSTALL +5 -2
@@ 25,11 25,14 @@ are specified in config.mk.
OpenBSD
-------

Before running make(1), comment the _CPPFLAGS definition in config.mk above the
line with the "OpenBSD" comment and uncomment the one below it:
Before running make(1), comment the _CPPFLAGS and INCLUDE definitions in
config.mk above the line with the "OpenBSD" comment and uncomment the ones below
it:

	#_CPPFLAGS	= -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
	#		  -D_XOPEN_SOURCE=700
	#INCLUDE	= -I/usr/include/SDL2
	# OpenBSD
	_CPPFLAGS	= -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
			  -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
	INCLUDE		= -I$/usr/local/include/SDL2

M config.mk => config.mk +3 -2
@@ 2,10 2,11 @@
CFLAGS		= -Os -Wall -pedantic -std=c99
_CPPFLAGS	= -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
		  -D_XOPEN_SOURCE=700
INCLUDE		= -I/usr/include/SDL2
# OpenBSD
#_CPPFLAGS	= -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
#		  -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
INCLUDE		= -I/usr/local/include/SDL2
#INCLUDE		= -I$/usr/local/include/SDL2
INSTALL		= install
LIBS		= -lSDL2_image -lSDL2 -lm
SRC		= lav-sdl.c


@@ 18,7 19,7 @@ PROG		= lav-sdl
BINDIR		= $(PREFIX)/bin
CPPFLAGS	= $(_CPPFLAGS) $(INCLUDE)
DATADIR		= $(PREFIX)/share/$(PROG)
#DOCDIR		= $(PREFIX)/share/doc/$(PROG)
DOCDIR		= $(PREFIX)/share/doc/$(PROG)
#MANPREFIX	= $(PREFIX)/share/man
# OpenBSD
#MANPREFIX	= $(PREFIX)/man