Initial import of copter-commander-1.8.

From the DESCR:
Copter Commander is a free implementation of Armor Alley and Rescue
Raiders.  R.R. was associated with a company called Sir-Tech
software, and A.A. was associated with Three Sixty Pacific.

Basically, you try to send a convoy from your part of the screen
that destroys the commanding vessel of the opposing convoy, while
protecting your own commanding vessel.

You can only directly control a helicopter, though, and the order
of creation of the new vehicles/infantry.
This commit is contained in:
wiz 2002-03-08 16:45:35 +00:00
parent 5cd67facc1
commit c371bf9b2e
11 changed files with 316 additions and 0 deletions

View file

@ -0,0 +1,10 @@
Copter Commander is a free implementation of Armor Alley and Rescue
Raiders. R.R. was associated with a company called Sir-Tech
software, and A.A. was associated with Three Sixty Pacific.
Basically, you try to send a convoy from your part of the screen
that destroys the commanding vessel of the opposing convoy, while
protecting your own commanding vessel.
You can only directly control a helicopter, though, and the order
of creation of the new vehicles/infantry.

View file

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1.1.1 2002/03/08 16:45:35 wiz Exp $
#
DISTNAME= copter-commander-1.8
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=coco/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.speakeasy.org/~morse/copter-commander/
COMMENT= Armor Alley/Rescue Raiders clone
DEPENDS+= gtkglarea>=1.2.2:../../x11/gtkglarea
DEPENDS+= gnome-libs>=1.4.0:../../x11/gnome-libs
USE_GMAKE= yes
MAKE_ENV+= X11PREFIX=${X11PREFIX}
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,39 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2002/03/08 16:45:35 wiz Exp $
bin/copter-commander
bin/glx-copter-commander
share/copter-commander/1.8/doc/copyright
share/copter-commander/1.8/doc/keybindings.txt
share/copter-commander/1.8/doc/manual.txt
share/copter-commander/1.8/levels/balloon-run.ccl
share/copter-commander/1.8/levels/boot-camp.cct
share/copter-commander/1.8/levels/cloud-city.ccl
share/copter-commander/1.8/levels/flashpoint.ccl
share/copter-commander/1.8/levels/gun-country.ccl
share/copter-commander/1.8/levels/long-battle.ccl
share/copter-commander/1.8/levels/micro.ccl
share/copter-commander/1.8/levels/solo-play.ccl
share/copter-commander/1.8/levels/wind-walker.ccl
share/copter-commander/1.8/sounds/aaah-f.wav
share/copter-commander/1.8/sounds/abuse-mech-warm-up.wav
share/copter-commander/1.8/sounds/abuse-scream.wav
share/copter-commander/1.8/sounds/abuse-whang.wav
share/copter-commander/1.8/sounds/abuse-whang2.wav
share/copter-commander/1.8/sounds/big-boom.wav
share/copter-commander/1.8/sounds/gnobots-die.wav
share/copter-commander/1.8/sounds/marty-aa-gun.wav
share/copter-commander/1.8/sounds/marty-airburst.wav
share/copter-commander/1.8/sounds/marty-bomb-hit.wav
share/copter-commander/1.8/sounds/marty-copter-cannon-clip.wav
share/copter-commander/1.8/sounds/marty-rocket-hit.wav
share/copter-commander/1.8/sounds/missile-f.wav
share/copter-commander/1.8/sounds/openal-plasma.wav
share/copter-commander/1.8/sounds/pop.wav
share/copter-commander/1.8/sounds/rifle-f.wav
share/copter-commander/1.8/sounds/rocket-f.wav
share/copter-commander/1.8/sounds/take-off-f.wav
share/copter-commander/1.8/sounds/tank-gun-f.wav
@dirrm share/copter-commander/1.8/sounds
@dirrm share/copter-commander/1.8/levels
@dirrm share/copter-commander/1.8/doc
@dirrm share/copter-commander/1.8
@dirrm share/copter-commander

View file

@ -0,0 +1,11 @@
$NetBSD: distinfo,v 1.1.1.1 2002/03/08 16:45:35 wiz Exp $
SHA1 (copter-commander-1.8.tar.bz2) = 5ad2818193ffb7567fc318c9e2b19e0cb9a71b7a
Size (copter-commander-1.8.tar.bz2) = 1415285 bytes
SHA1 (patch-aa) = 22bee79e403dd544be5304c1276d4b1f55f80e5a
SHA1 (patch-ab) = 229a2e2e49ad5f9bb5e9bfcce98a63be34ab4f5f
SHA1 (patch-ac) = 6a64b0ff837f55e6ee73709113e2607de8cb9441
SHA1 (patch-ad) = e7a8f56c48adc230204177d98a2ba4a7954b1c10
SHA1 (patch-ae) = 84ef56a8b8bb1cdb9452219b13492b183e4e6132
SHA1 (patch-af) = 97cf5784d57c383b9f3d0890dfb1d6bbf148f0ee
SHA1 (patch-ag) = fd63fcee10105e79c84a1e2abb6c4878b4362470

View file

@ -0,0 +1,143 @@
$NetBSD: patch-aa,v 1.1.1.1 2002/03/08 16:45:36 wiz Exp $
--- Makefile.orig Fri Feb 8 23:12:31 2002
+++ Makefile
@@ -54,7 +54,7 @@
# INSTALLATION LOCATIONS
-COCO_INSTALL_DIRECTORY=/usr/local
+COCO_INSTALL_DIRECTORY=${PREFIX}
COCO_BIN_DIRECTORY=${COCO_INSTALL_DIRECTORY}/bin
COCO_SHARE_DIRECTORY=${COCO_INSTALL_DIRECTORY}/share/copter-commander/${COCO_MAJOR_VERSION}.${COCO_MINOR_VERSION}
COCO_DOC_DIRECTORY=${COCO_SHARE_DIRECTORY}/doc
@@ -79,23 +79,23 @@
COCO_GII_INCLUDE_DIRECTORY=/usr/include
# X11 (glx-copter-commander only)
-COCO_X11_LIB_DIRECTORY=/usr/X11R6/lib
-COCO_X11_INCLUDE_DIRECTORY=/usr/X11R6/include
+COCO_X11_LIB_DIRECTORY=${X11BASE}/lib
+COCO_X11_INCLUDE_DIRECTORY=${X11BASE}/include
# GtkGLArea (copter-commander only)
-COCO_GTKGLAREA_LIB_DIRECTORY=/usr/lib
-COCO_GTKGLAREA_INCLUDE_DIRECTORY=/usr/include
+COCO_GTKGLAREA_LIB_DIRECTORY=${X11PREFIX}/lib
+COCO_GTKGLAREA_INCLUDE_DIRECTORY=${X11PREFIX}/include
# Gnome (handled by the gnome-config script)
# OpenGL (According to http://oss.sgi.com/projects/ogl-sample/ABI, these
# should be as shown, if not, consider making a symlink)
-COCO_GL_LIB_DIRECTORY=/usr/lib
-COCO_GL_INCLUDE_DIRECTORY=/usr/include
+COCO_GL_LIB_DIRECTORY=${X11PREFIX}/usr/lib
+COCO_GL_INCLUDE_DIRECTORY=${X11PREFIX}/include
# LibTIFF image library
-COCO_LIBTIFF_LIB_DIRECTORY=/usr/lib
-COCO_LIBTIFF_INCLUDE_DIRECTORY=/usr/include
+COCO_LIBTIFF_LIB_DIRECTORY=${LOCALBASE}/lib
+COCO_LIBTIFF_INCLUDE_DIRECTORY=${LOCALBASE}/include
# Sound Support
# Select the sound technique that works for you, valid values are
@@ -112,8 +112,8 @@
COCO_OPENAL_INCLUDE_DIRECTORY=/usr/local/include
# ESD sound library (only used if COCO_SOUND=esd)
-COCO_ESD_LIB_DIRECTORY=/usr/lib
-COCO_ESD_INCLUDE_DIRECTORY=/usr/include
+COCO_ESD_LIB_DIRECTORY=${LOCALBASE}/lib
+COCO_ESD_INCLUDE_DIRECTORY=${LOCALBASE}/include
COCO_ESD_LIBS=-lesd
@@ -155,7 +155,7 @@
COCO_SOUND_LINK_LINE=-L${COCO_OPENAL_LIB_DIRECTORY} ${COCO_OPENAL_LIBS}
else
ifeq (${COCO_SOUND},esd)
-COCO_SOUND_LINK_LINE=-L${COCO_ESD_LIB_DIRECTORY} ${COCO_ESD_LIBS}
+COCO_SOUND_LINK_LINE=-L${COCO_ESD_LIB_DIRECTORY} -Wl,-R${COCO_ESD_LIB_DIRECTORY} ${COCO_ESD_LIBS}
else
#assign null string:
COCO_SOUND_LINK_LINE=
@@ -350,11 +350,11 @@
`gnome-config --cflags gnomeui`
client.o: client.c
- ${CC} ${CFLAGS_UNANSI} -c client.c ${COCO_GII_INCLUDE_ARGUMENTS}
+ ${CC} ${CFLAGS_UNANSI} -c client.c -I${COCO_GL_INCLUDE_DIRECTORY} ${COCO_GII_INCLUDE_ARGUMENTS}
screenshot.o: screenshot.c
${CC} ${CFLAGS} -c screenshot.c -o $@ \
- -I${COCO_LIBTIFF_INCLUDE_DIRECTORY}
+ -I${COCO_LIBTIFF_INCLUDE_DIRECTORY} -I${COCO_GL_INCLUDE_DIRECTORY}
# build other objects the standard way
%.o: %.c
@@ -367,10 +367,10 @@
GNOME_LINK_LINE=\
${CC} ${CFLAGS} -o $@ ${GAME_OBJ_FILES} ${GNOME_OBJ_FILES} ${USED_SOUND_OBJ_FILES} ${COCO_RASTER_DIRECTORY}/*.o \
${COCO_BASIC_LIBS} \
--L${COCO_LIBTIFF_LIB_DIRECTORY} -ltiff \
--L${COCO_GL_LIB_DIRECTORY} -lGL \
+-Wl,-R${COCO_LIBTIFF_LIB_DIRECTORY} -L${COCO_LIBTIFF_LIB_DIRECTORY} -ltiff \
+-Wl,-R${COCO_GL_LIB_DIRECTORY} -L${COCO_GL_LIB_DIRECTORY} -lGL \
`gnome-config --libs gnome gnomeui` \
--L${COCO_GTKGLAREA_LIB_DIRECTORY} -lgtkgl \
+-Wl,-R${COCO_GTKGLAREA_LIB_DIRECTORY} -L${COCO_GTKGLAREA_LIB_DIRECTORY} -lgtkgl \
${COCO_GII_LINK_ARGUMENTS}
@@ -380,9 +380,9 @@
GLX_LINK_LINE=\
${CC} ${CFLAGS} -o $@ ${GAME_OBJ_FILES} ${GLX_OBJ_FILES} ${USED_SOUND_OBJ_FILES} ${COCO_RASTER_DIRECTORY}/*.o \
${COCO_BASIC_LIBS} \
--L${COCO_LIBTIFF_LIB_DIRECTORY} -ltiff \
--L${COCO_X11_LIB_DIRECTORY} -lX11 -lXext \
--L${COCO_GL_LIB_DIRECTORY} -lGL \
+-Wl,-R${COCO_LIBTIFF_LIB_DIRECTORY} -L${COCO_LIBTIFF_LIB_DIRECTORY} -ltiff \
+-Wl,-R${COCO_X11_LIB_DIRECTORY} -L${COCO_X11_LIB_DIRECTORY} -lX11 -lXext \
+-Wl,-R${COCO_GL_LIB_DIRECTORY} -L${COCO_GL_LIB_DIRECTORY} -lGL \
${COCO_GII_LINK_ARGUMENTS}
glx-copter-commander: ${GAME_OBJ_FILES} ${GLX_OBJ_FILES} ${USED_SOUND_OBJ_FILES} ${COCO_RASTER_DIRECTORY}/built
@@ -414,7 +414,7 @@
# [ #499186 ] tiff-compile doesn't compile -dm 01-03-2002
tiff-compile: tiff-compile.c raster.h c-header.strlit
${CC} ${CFLAGS_UNANSI} -I${COCO_LIBTIFF_INCLUDE_DIRECTORY} \
- -o $@ $@.c -L${COCO_LIBTIFF_LIB_DIRECTORY} -ltiff -lm
+ -o $@ $@.c -Wl,-R${COCO_LIBTIFF_LIB_DIRECTORY} -L${COCO_LIBTIFF_LIB_DIRECTORY} -ltiff -lm
sizeof: sizeof.c
${CC} ${CFLAGS} -o sizeof sizeof.c
@@ -475,19 +475,18 @@
gzip -c ${COCO_TAR_FILE} > ${COCO_TAR_FILE}.gz
install:
- set -e ;\
- mkdir -p \
+ ${BSD_INSTALL_DATA_DIR} \
${COCO_BIN_DIRECTORY} \
${COCO_SHARE_DIRECTORY} \
${COCO_DOC_DIRECTORY} \
${COCO_LEVEL_DIRECTORY} \
- ${COCO_SOUND_DIRECTORY} ;\
- install copter-commander ${COCO_BIN_DIRECTORY} ;\
- install glx-copter-commander ${COCO_BIN_DIRECTORY} ;\
- install -m u=rw,go=r keybindings.txt manual.txt copyright ${COCO_DOC_DIRECTORY} ;\
- install -m u=rw,go=r levels/*.ccl ${COCO_LEVEL_DIRECTORY} ;\
- install -m u=rw,go=r levels/*.cct ${COCO_LEVEL_DIRECTORY} ;\
- install -m u=rw,go=r sounds/*.wav ${COCO_SOUND_DIRECTORY}
+ ${COCO_SOUND_DIRECTORY}
+ ${BSD_INSTALL_PROGRAM} copter-commander ${COCO_BIN_DIRECTORY}
+ ${BSD_INSTALL_PROGRAM} glx-copter-commander ${COCO_BIN_DIRECTORY}
+ ${BSD_INSTALL_DATA} keybindings.txt manual.txt copyright ${COCO_DOC_DIRECTORY}
+ ${BSD_INSTALL_DATA} levels/*.ccl ${COCO_LEVEL_DIRECTORY}
+ ${BSD_INSTALL_DATA} levels/*.cct ${COCO_LEVEL_DIRECTORY}
+ ${BSD_INSTALL_DATA} sounds/*.wav ${COCO_SOUND_DIRECTORY}
COCO_RPM_RELEASE=1
COCO_RPM_SPEC=copter-commander-${COCO_MAJOR_VERSION}.${COCO_MINOR_VERSION}-${COCO_RPM_RELEASE}.spec

View file

@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1.1.1 2002/03/08 16:45:36 wiz Exp $
--- ccl.c.orig Tue Jul 17 21:04:37 2001
+++ ccl.c
@@ -25,8 +25,6 @@
#include <errno.h>
#include <assert.h>
#include <string.h> /* for strlen */
-#include <alloca.h> /* for alloca. Normally stdlib would get it, but
- we're compiling -ansi */
#include "coco.h"

View file

@ -0,0 +1,12 @@
$NetBSD: patch-ac,v 1.1.1.1 2002/03/08 16:45:36 wiz Exp $
--- clsho.c.orig Wed Dec 19 19:49:07 2001
+++ clsho.c
@@ -18,7 +18,6 @@
*/
#include <string.h>
-#include <alloca.h>
#include <assert.h>
#include <stdlib.h> /* for exit */
#include "coco.h"

View file

@ -0,0 +1,22 @@
$NetBSD: patch-ad,v 1.1.1.1 2002/03/08 16:45:36 wiz Exp $
--- language.c.orig Wed Nov 28 23:44:02 2001
+++ language.c
@@ -29,7 +29,7 @@
#include <dirent.h> /* for readdir */
#include <assert.h>
#include <errno.h>
-#include <alloca.h>
+#include <unistd.h>
#include "coco.h"
@@ -511,7 +511,7 @@
int
coco_dice( int number, unsigned char sides )
{
- int randomness;
+ int randomness = 0;
int bytes_left = 0; /* bytes of randomness in sides */
int acc = number; /* every die starts with 1, not 0 */
if (0==sides) return 1; /* nonsense! */

View file

@ -0,0 +1,24 @@
$NetBSD: patch-ae,v 1.1.1.1 2002/03/08 16:45:37 wiz Exp $
--- server.c.orig Tue Jan 29 06:43:07 2002
+++ server.c
@@ -417,10 +417,8 @@
if ((connfd==EAGAIN) || (connfd==EWOULDBLOCK))
return;
else if ((connfd==ENETDOWN) ||
- (connfd==EPROTO) ||
(connfd==ENOPROTOOPT) ||
(connfd==EHOSTDOWN) ||
- (connfd==ENONET) ||
(connfd==EHOSTUNREACH) ||
(connfd==EOPNOTSUPP) ||
(connfd==ENETUNREACH))
@@ -1933,7 +1931,7 @@
signed char camera_index = COCO_SOBJECT_CAMERA_INDEX( sobject );
signed char comp_index = COCO_SOBJECT_COMP_INDEX( sobject );
struct coco_keyboard_pointer_state *input;
- coco_facing run;
+ coco_facing run = 0;
coco_bool landed_p = COCO_MECH_LANDED_ON_PAD_P( sobject );
coco_bool jump = COCO_FALSE;
int jumped_strength = 0;

View file

@ -0,0 +1,12 @@
$NetBSD: patch-af,v 1.1.1.1 2002/03/08 16:45:37 wiz Exp $
--- simple-command-line.c.orig Wed Dec 12 01:23:38 2001
+++ simple-command-line.c
@@ -21,7 +21,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <alloca.h> /* for alloca. (not stdlib because of --ansi) */
#include <assert.h>
#include "coco.h"

View file

@ -0,0 +1,11 @@
$NetBSD: patch-ag,v 1.1.1.1 2002/03/08 16:45:37 wiz Exp $
--- string-literalize.sh.orig Thu May 17 20:35:25 2001
+++ string-literalize.sh
@@ -17,5 +17,5 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' | sed 's/^/"/g' - | sed 's/$/\\n"/g' -
+ sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' | sed 's/^/"/g' | sed 's/$/\\n"/g'
# double backslashes protect quotes " to bol \n" to eol