summaryrefslogtreecommitdiff
path: root/games/nil/files
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-09-29 13:52:36 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-09-29 13:52:36 +0000
commit1912be0da67f0631bd7498b0dd8acc7c53fa1e8d (patch)
tree2c99a3069afe2b90ed29e3ab0ddb193d6fcd80c8 /games/nil/files
parentComplexProgramTarget() -> ComplexProgramTargetNoMan(). (diff)
Add nil - a really eye-candy multiplayer game.
See http://www.linuxworld.com/linuxworld/lw-2000-04/lw-04-nil.html for details.
Notes
Notes: svn path=/head/; revision=33248
Diffstat (limited to 'games/nil/files')
-rw-r--r--games/nil/files/Makeflags37
-rw-r--r--games/nil/files/patch-aa11
-rw-r--r--games/nil/files/patch-ab26
3 files changed, 74 insertions, 0 deletions
diff --git a/games/nil/files/Makeflags b/games/nil/files/Makeflags
new file mode 100644
index 000000000000..de83567d2f66
--- /dev/null
+++ b/games/nil/files/Makeflags
@@ -0,0 +1,37 @@
+# This file contains the template for Makeflags
+
+SYSTEM = FreeBSD
+FEATURES = -DASYNCHRONOUS_IO -DUSE_POSIX_SIGNALS -DUNSIGNED_AUDIO_DATA -DFORCE_XSHM -DNETPLAY
+
+LOGIC = netlogic
+
+XPMINCLUDE =
+XPMLINKDIR =
+
+BINDIR = ${PREFIX}/bin
+LIBDIR = ${PREFIX}/share/Maelstrom
+DATAFILES = Images/*.icon Images/*.cicn "Maelstrom Fonts" \
+ "Maelstrom Sounds" "Maelstrom Sprites"
+
+OBJS = main.o framebuf.o v_framebuf.o x11_framebuf.o vga_framebuf.o \
+ dga_framebuf.o fontserv.o sound.o Mac_Resource.o imagedump.o \
+ init.o $(LOGIC)/$(LOGIC).o \
+ controls.o scores.o dialog.o fastrand.o netscore.o checksum.o \
+ Utils.o shared.o myerror.o
+SOUNDOBJS = Maelstrom_sound.o Mac_Resource.o soundres.o mixer.o shared.o myerror.o
+
+X11INCLUDE = -I${X11BASE}/include
+INCLUDES = -I$(LOGIC) $(X11INCLUDE) $(XPMINCLUDE)
+CFLAGS += $(INCLUDES) $(FEATURES) \
+ -pedantic -DSYSTEM=\"$(SYSTEM)\" -DLIBDIR=\"$(LIBDIR)\"
+EXTRALIBS =
+X11LINKDIR = -L${X11BASE}/lib
+X11LIBS = -lXpm $(XPMLINKDIR) -lX11 -lXext $(X11LINKDIR)
+CSUMLIB =
+LIBS = $(EXTRALIBS) $(X11LIBS) $(CSUMLIB)
+SOUNDLIBS =
+
+INSTALL = install
+
+all: $(MAELSTROM)
+
diff --git a/games/nil/files/patch-aa b/games/nil/files/patch-aa
new file mode 100644
index 000000000000..52bfe8e77a60
--- /dev/null
+++ b/games/nil/files/patch-aa
@@ -0,0 +1,11 @@
+--- nil/configuration.cpp 2000/09/28 15:45:28 1.1
++++ nil/configuration.cpp 2000/09/28 15:46:09
+@@ -159,7 +159,7 @@
+ "default.lump\tgfx/ripped\tgfx/original",
+ #else
+ "The filename of either the .lump file or the directory where data can be found (default is: ~/nil/gfx/ripped and ~/nil/gfx/original)",
+- "default.lump\t~/nil/gfx/ripped\t~/nil/gfx/original",
++ "default.lump\t%%PREFIX%%/share/nil/gfx/ripped\t%%PREFIX%%/share/nil/gfx/original",
+ #endif
+ 0,0,false,
+ true
diff --git a/games/nil/files/patch-ab b/games/nil/files/patch-ab
new file mode 100644
index 000000000000..ebf2c68f8d6f
--- /dev/null
+++ b/games/nil/files/patch-ab
@@ -0,0 +1,26 @@
+--- nil/Makefile.in.orig Thu Sep 28 20:41:58 2000
++++ nil/Makefile.in Thu Sep 28 20:45:33 2000
+@@ -69,7 +69,7 @@
+ ####### kdevelop will overwrite this part!!! (end)############
+ bin_PROGRAMS = nil
+ nil_SOURCES = obj_grenade.cpp obj_clusterbomb.cpp obj_weapon_clusterbomb.cpp obj_fireball.cpp obj_weapon_flamethrower.cpp obj_weapon_rocket.cpp obj_weapon_mininuke.cpp obj_weapon_larpa.cpp obj_rocket.cpp soundsystem.cpp event.cpp event_target.cpp menu_item.cpp menu.cpp obj_weapon_bignuke.cpp obj_tinygranade.cpp obj_bignuke.cpp update_queue.cpp keymapper_bindings.cpp keymapper.cpp animations.cpp anim_helpers.cpp animation.cpp obj_weapon_plasmagun.cpp obj_plasmaball.cpp fonts.cpp nil_files.cpp game_client.cpp configuration.cpp font_instance.cpp font_glyph.cpp icon_graph.cpp icon_base.cpp animator.cpp tcp_socket.cpp serializer_writer.cpp serializer_reader.cpp serializer.cpp serializable.cpp nil_math.cpp obj_railslug.cpp obj_weapon_railgun.cpp raw_surface.cpp obj_weapon_megashotgun.cpp obj_scoreboard.cpp graphic_bar.cpp obj_hook.cpp obj_weapon_shotgun.cpp obj_weapon_minigun.cpp obj_projectile.cpp obj_weapon_test.cpp obj_weapon.cpp obj_gib.cpp tcp_client.cpp nil_client.cpp nil_main.cpp nil_server.cpp tcp_server_connection.cpp tcp_server.cpp obj_player_data.cpp obj_particle.cpp controls.cpp obj_player.cpp clientworld.cpp serverworld.cpp world.cpp viewport.cpp obj_test.cpp obj_explosion.cpp obj_base.cpp loader.cpp graphics.cpp graphic.cpp fluff.cpp
+-nil_LDADD = -lSDL -lSDL_mixer -L/usr/X11R6/lib -lXxf86dga -lXxf86vm -lpthread -lz -lXext -lX11
++nil_LDADD = -lSDL_mixer -lz -lsmpeg -lgcc_r
+
+ EXTRA_DIST = all.h fluff.cpp fluff.h graphic.cpp graphic.h graphics.cpp graphics.h loader.cpp loader.h obj_base.cpp obj_base.h obj_explosion.cpp obj_explosion.h obj_test.cpp obj_test.h viewport.cpp viewport.h world.cpp world.h serverworld.cpp serverworld.h clientworld.cpp clientworld.h obj_player.cpp obj_player.h controls.cpp controls.h obj_particle.cpp obj_particle.h obj_player_data.cpp obj_player_data.h tcp_server.cpp tcp_server.h tcp_server_connection.cpp tcp_server_connection.h nil_server.h nil_server.cpp nil_main.cpp nil_client.h nil_client.cpp tcp_client.cpp tcp_client.h obj_gib.cpp obj_gib.h obj_weapon.cpp obj_weapon.h obj_weapon_test.cpp obj_weapon_test.h obj_projectile.cpp obj_projectile.h obj_weapon_minigun.cpp obj_weapon_minigun.h obj_weapon_shotgun.cpp obj_weapon_shotgun.h obj_hook.cpp obj_hook.h graphic_bar.cpp graphic_bar.h obj_scoreboard.cpp obj_scoreboard.h obj_weapon_megashotgun.cpp obj_weapon_megashotgun.h raw_surface.cpp raw_surface.h obj_weapon_railgun.cpp obj_weapon_railgun.h obj_railslug.cpp obj_railslug.h nil_math.h nil_math.cpp systemheaders.h serializable.cpp serializable.h serializer.cpp serializer.h serializer_reader.cpp serializer_reader.h serializer_writer.cpp serializer_writer.h netpackets.h tcp_socket.cpp tcp_socket.h animator.cpp animator.h icon_base.cpp icon_base.h icon_graph.cpp icon_graph.h font_glyph.cpp font_glyph.h font_instance.cpp font_instance.h configuration.cpp configuration.h game_client.cpp game_client.h nil_files.h nil_files.cpp fonts.cpp fonts.h obj_plasmaball.cpp obj_plasmaball.h obj_weapon_plasmagun.cpp obj_weapon_plasmagun.h animation.cpp animation.h anim_helpers.h anim_helpers.cpp animations.cpp animations.h keymapper.cpp keymapper.h keymapper_bindings.h keymapper_bindings.cpp update_queue.cpp update_queue.h world_objects.h obj_bignuke.cpp obj_bignuke.h obj_tinygranade.cpp obj_tinygranade.h obj_weapon_bignuke.cpp obj_weapon_bignuke.h menu.cpp menu.h menu_item.cpp menu_item.h event_target.cpp event_target.h event.cpp event.h soundsystem.cpp soundsystem.h obj_rocket.cpp obj_rocket.h obj_weapon_larpa.cpp obj_weapon_larpa.h obj_weapon_mininuke.cpp obj_weapon_mininuke.h obj_weapon_rocket.cpp obj_weapon_rocket.h obj_weapon_clusterbomb.cpp obj_weapon_clusterbomb.h obj_clusterbomb.cpp obj_clusterbomb.h obj_grenade.cpp obj_grenade.h obj_fireball.cpp obj_weapon_flamethrower.cpp
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+@@ -102,10 +102,12 @@
+ loader.o graphics.o graphic.o fluff.o
+ nil_DEPENDENCIES =
+ nil_LDFLAGS =
++SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
++SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
+ CXXFLAGS = @CXXFLAGS@
+-CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
++CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(SDL_CFLAGS)
+ CXXLD = $(CXX)
+-CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
++CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) $(SDL_LDFLAGS) -o $@
+ DIST_COMMON = Makefile.am Makefile.in
+
+