head	1.5;
access;
symbols
	netbsd-11-0-RC4:1.5
	netbsd-11-0-RC3:1.5
	netbsd-11-0-RC2:1.5
	netbsd-11-0-RC1:1.5
	perseant-exfatfs-base-20250801:1.5
	netbsd-11:1.5.0.10
	netbsd-11-base:1.5
	netbsd-10-1-RELEASE:1.5
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.8
	perseant-exfatfs-base:1.5
	netbsd-10-0-RELEASE:1.5
	netbsd-10-0-RC6:1.5
	netbsd-10-0-RC5:1.5
	netbsd-10-0-RC4:1.5
	netbsd-10-0-RC3:1.5
	netbsd-10-0-RC2:1.5
	netbsd-10-0-RC1:1.5
	netbsd-10:1.5.0.6
	netbsd-10-base:1.5
	cjep_sun2x-base1:1.5
	cjep_sun2x:1.5.0.4
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	cjep_staticlib_x:1.5.0.2
	cjep_staticlib_x-base:1.5;
locks; strict;
comment	@# @;


1.5
date	2020.11.11.20.04.02;	author christos;	state Exp;
branches;
next	1.4;
commitid	jUd9peF9X6hPwvvC;

1.4
date	2020.11.11.19.54.53;	author christos;	state Exp;
branches;
next	1.3;
commitid	lrjb3zEwwjbNtvvC;

1.3
date	2020.11.11.17.11.19;	author christos;	state Exp;
branches;
next	1.2;
commitid	WhcQjdryNAMyzuvC;

1.2
date	2020.11.10.08.49.08;	author kamil;	state Exp;
branches;
next	1.1;
commitid	v28ntuGNuPEyOjvC;

1.1
date	2020.11.09.23.37.05;	author kamil;	state Exp;
branches;
next	;
commitid	h8D7WARQZwHGLgvC;


desc
@@


1.5
log
@Comment out debugging build (it still randomly crashes though) pointed out
by wiz
@
text
@#	$NetBSD: Makefile,v 1.4 2020/11/11 19:54:53 christos Exp $

.include <bsd.own.mk>

PROG=	warp
#DBG=-g

SRCS=	bang.c init.c intrp.c move.c object.c play.c score.c sig.c term.c \
	them.c us.c util.c version.c warp.c weapon.c

DPADD=	${LIBTERMLIB} ${LIBM}
LDADD=	-ltermlib -lm

CPPFLAGS+=-DHAVETERMLIB

CLEANFILES+=sm sm.lo smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
CLEANFILES+=warp.6
HIDEGAME=hidegame
SETGIDGAME=yes
MAN=	warp.6

warp.6:
	${_MKTARGET_CREATE}
	cat ${.CURDIR}/warp.man > ${.TARGET}

DPSRCS+=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7

smap.0: smp.0 sm
	${_MKTARGET_CREATE}
	./sm < ${.CURDIR}/smp.0 > ${.TARGET}

smap.1: smp.1 sm
	${_MKTARGET_CREATE}
	./sm < ${.CURDIR}/smp.1 > ${.TARGET}

smap.2: smp.2 sm
	${_MKTARGET_CREATE}
	./sm < ${.CURDIR}/smp.2 > ${.TARGET}

smap.3: smp.3 sm
	${_MKTARGET_CREATE}
	./sm < ${.CURDIR}/smp.3 > ${.TARGET}

smap.4: smp.4 sm
	${_MKTARGET_CREATE}
	./sm < ${.CURDIR}/smp.4 > ${.TARGET}

smap.5: smp.5 sm
	${_MKTARGET_CREATE}
	./sm < ${.CURDIR}/smp.5 > ${.TARGET}

smap.6: smp.6 sm
	${_MKTARGET_CREATE}
	./sm < ${.CURDIR}/smp.6 > ${.TARGET}

smap.7: smp.7 sm
	${_MKTARGET_CREATE}
	./sm < ${.CURDIR}/smp.7 > ${.TARGET}

sm: sm.lo
	${_MKTARGET_LINK}
	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}

.if ${MKSHARE} != "no"
FILES=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
FILES+=warp.doc warp.news README
FILESDIR=/usr/share/games/warp
.endif

.include <bsd.prog.mk>
@


1.4
log
@no need for -lcompat
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2020/11/11 17:11:19 christos Exp $
d6 1
a6 1
DBG=-g
@


1.3
log
@- use termios
- enable setgid games
- enable savedir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2020/11/10 08:49:08 kamil Exp $
d6 1
d11 2
a12 2
DPADD=	${LIBTERMLIB} ${LIBM} ${LIBCOMPAT}
LDADD=	-ltermlib -lm -lcompat
a21 3
BINGRP= games
BINMODE=2555

a69 10
CFLAGS+= -Wno-error=old-style-definition -Wno-error=strict-prototypes
CFLAGS+= -Wno-error=comment -Wno-error=maybe-uninitialized
CFLAGS+= -Wno-error=discarded-qualifiers -Wno-error=dangling-else
CFLAGS+= -Wno-error=char-subscripts -Wno-error=parentheses
CFLAGS+= -Wno-error=unused-value -Wno-error=format-extra-args
CFLAGS+= -Wno-error=format-overflow= -Wno-error=builtin-declaration-mismatch
CFLAGS+= -Wno-error=format= -Wno-error=sign-compare -Wno-error=return-type
CFLAGS+= -Wno-error=unused-label -Wno-error=unused-variable
CFLAGS+= -Wno-error=format-nonliteral -Wno-error=implicit-fallthrough=

@


1.2
log
@Integrate Warp Kit into the NetBSD build

Fix the build and make it install and run with minimal required changes.
@
text
@d1 1
a1 1
#	$NetBSD$
d21 3
@


1.1
log
@Add Warp Kit, Version 7.0 by Larry Wall

Warp is a real-time space war game that doesn't get boring very quickly.
Read warp.doc and the manual page for more information.

games/warp originally distributed with 4.3BSD-Reno, is back to the BSD
world via NetBSD. Its remnants were still mentioned in games/Makefile.

Larry Wall, the original author and the copyright holder, generously
donated the game and copyright to The NetBSD Foundation, Inc.

Import the game sources as-is from 4.3BSD-Reno, with the cession
of the copyright and license to BSD-2-clause NetBSD-style.

Signed-off-by: Larry Wall <larry@@wall.org>
Signed-off-by: Kamil Rytarowski <kamil@@netbsd.org>
@
text
@d1 6
a6 1
CFLAGS+=-O
a8 2
OBJS=	bang.o init.o intrp.o move.o object.o play.o score.o sig.o term.o \
	them.o us.o util.o version.o warp.o weapon.o
d10 4
a13 2
warp: ${OBJS}
	${CC} ${OBJS} -o $@@ -ltermlib -lm
d15 5
a19 27
install: warp
	export PATH || exit 1
	- mv $(bin)/warp $(bin)/warp.old
	- if test `pwd` != $(bin); then cp $(public) $(bin); fi
	- cd $(bin); chmod 755 $(public); chown '$(CHOWNER)' $(public)
	- chmod 4711 $(bin)/warp
	- chmod 755 makedir
	- ./makedir `./filexp $(privlib)`
	- \
if test `pwd` != `./filexp $(privlib)`; then \
cp $(private) `./filexp $(privlib)`; \
fi
	- \
cd `./filexp $(privlib)`; \
chmod 755 $(private); \
chown '$(CHOWNER)' . $(private); \
cp /dev/null save.blurfl
	- \
if test ! -f `./filexp $(privlib)/warp.news`; then \
cp warp.news `./filexp $(privlib)`; \
fi
	- \
if test `pwd` != $(mansrc); then \
for page in $(manpages); do \
cp $$page $(mansrc)/`basename $$page .man`.$(manext); \
done; \
fi
d21 5
a25 2
clean:
	rm -f warp core ${OBJS}
d28 3
a30 1
	sm <smp.0 >smap.0
d32 3
a34 1
	sm <smp.1 >smap.1
d36 3
a38 1
	sm <smp.2 >smap.2
d40 3
a42 1
	sm <smp.3 >smap.3
d44 3
a46 1
	sm <smp.4 >smap.4
d48 3
a50 1
	sm <smp.5 >smap.5
d52 3
a54 1
	sm <smp.6 >smap.6
d56 22
a77 3
	sm <smp.7 >smap.7
sm: sm.c
	${CC} sm.c -o $@@
d79 1
a79 2
depend: ${SRCS}
	mkdep ${SRCS}
@

