pkgsrc/games/maelstrom-x11/patches/patch-aa
wiz 6d5dc9656f Re-import of maelstrom as maelstrom-x11 to better show which version it is;
also, the SDL version seems to be the only one that's under development
right now. Requested in pkg/15583 by Ben Wong.
2002-07-11 13:26:12 +00:00

52 lines
1.6 KiB
Text

$NetBSD: patch-aa,v 1.1.1.1 2002/07/11 13:26:13 wiz Exp $
--- Makeflags.orig Mon Jul 14 14:32:13 1997
+++ Makeflags Sun Jul 30 01:32:07 2000
@@ -1,12 +1,42 @@
+# This file contains the template for Makeflags
-# Some sensible defaults
-BINDIR = /usr/local/bin
-LIBDIR = /usr/local/lib/Maelstrom
+SYSTEM =
+FEATURES = -DAUDIO_16BIT -DASYNCHRONOUS_IO -DUSE_POSIX_SIGNALS
-INSTALL = install
+LOGIC = netlogic
+XPMINCLUDE = -I$(XPMDIR)/include
+XPMLINKDIR = -Wl,-R$(XPMDIR)/lib -L$(XPMDIR)/lib
+
+BINDIR = $(PREFIX)/bin
+LIBDIR = $(PREFIX)/share/maelstrom
DATAFILES = Images/*.icon Images/*.cicn "Maelstrom Fonts" \
"Maelstrom Sounds" "Maelstrom Sprites"
-all: config
+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
+
+#CXX = c++
+OPTIMIZE = -O2
+X11INCLUDE = -I$(X11BASE)/include
+INCLUDES = -I$(LOGIC) $(X11INCLUDE) $(XPMINCLUDE)
+CFLAGS = $(OPTIMIZE) $(INCLUDES) $(FEATURES) \
+ -DSYSTEM=\"$(SYSTEM)\" -DLIBDIR=\"$(LIBDIR)\"
+EXTRALIBS =
+X11LINKDIR = -Wl,-R$(X11BASE)/lib -L$(X11BASE)/lib
+X11LIBS = -lX11 -lXext -lXpm
+CSUMLIB =
+LIBS = $(EXTRALIBS) $(XPMLINKDIR) $(X11LINKDIR) $(X11LIBS) $(CSUMLIB)
+SOUNDLIBS = -lossaudio
+
+INSTALL = /usr/bin/install
+
+all: $(MAELSTROM) netplayd/netplayd
+
+netplayd:
+ cd netplayd && make