freebsd-ports/games/super_methane_brothers/files/patch-source::linux::makefile
Pav Lucistnik 4fbf31e94a Add super_methane_brothers.
Puff and Blow each have a Methane Gas Gun which fires a cloud of
immobilising gas. If this comes into contact with a bad guy he will be
absorbed into the gas and then float around the screen for a limited
time. Bad guys are harmless in this state. Puff and Blow must suck the
floating gas clouds into their guns and blast them out against a
vertical surface. Bad guys then turn into bonuses which can be
collected. Be warned! - the gas cloud dissolves with time after which
baddies become active again and extremely annoyed.

WWW: http://www.methane.fsnet.co.uk/

PR:		ports/61743
Submitted by:	Jean-Yves Lefort <jylefort@brutele.be>
2004-01-24 14:37:16 +00:00

49 lines
2.1 KiB
Text

--- source/linux/makefile.orig Thu Jan 22 17:22:08 2004
+++ source/linux/makefile Thu Jan 22 17:40:13 2004
@@ -1,7 +1,7 @@
# Comment out the two lines shown below to disable sound
-MIKMOD_LIBS = `libmikmod-config --cflags` `libmikmod-config --libs`
-METHANE_FLAGS = -DMETHANE_MIKMOD
+MIKMOD_LIBS = `libmikmod-config --libs`
+METHANE_FLAGS = -DMETHANE_MIKMOD -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
all: message methane
@@ -22,7 +22,7 @@
MainSource/misc.o MainSource/objlist.o MainSource/player.o MainSource/power.o MainSource/target.o \
MainSource/suck.o MainSource/weapon.o MainSource/sound.o MainData/snddata.o MainData/gfxdata.o MainData/gfxdata2.o \
MainData/gfxdata3.o MainData/mapdata.o MainLinux/font32.o MainLinux/doc.o MainLinux/main.o MainMikMod/audiodrv.o \
- -o methane -lclanCore -lclanApp -lclanDisplay ${MIKMOD_LIBS}
+ -o methane -L${LOCALBASE}/lib -lclanCore -lclanApp -lclanDisplay ${MIKMOD_LIBS} ${PTHREAD_LIBS}
clean:
@rm -Rf MainSource
@@ -38,23 +38,23 @@
MainSource/%.o : ../%.cpp
@echo " Compiling $<..."
@if [ ! -d MainSource ]; then mkdir MainSource; fi
- gcc ${CXXFLAGS} ${METHANE_FLAGS} -I ../linux `libmikmod-config --cflags` -c $< -o $@
+ ${CXX} ${CXXFLAGS} ${METHANE_FLAGS} -I ../linux `libmikmod-config --cflags` -c $< -o $@
# The main data
MainData/%.o : ../data/%.cpp
@echo " Compiling $<..."
@if [ ! -d MainData ]; then mkdir MainData; fi
- gcc ${CXXFLAGS} ${METHANE_FLAGS} -I ../ `libmikmod-config --cflags` -c $< -o $@
+ ${CXX} ${CXXFLAGS} ${METHANE_FLAGS} -I ../ `libmikmod-config --cflags` -c $< -o $@
# The linux source code
MainLinux/%.o : ../linux/%.cpp
@echo " Compiling $<..."
@if [ ! -d MainLinux ]; then mkdir MainLinux; fi
- gcc ${CXXFLAGS} ${METHANE_FLAGS} -I ../ `libmikmod-config --cflags` -c $< -o $@
+ ${CXX} ${CXXFLAGS} ${METHANE_FLAGS} -I ../ `libmikmod-config --cflags` -c $< -o $@
# The sound driver source code
MainMikMod/%.o : ../mikmod/%.cpp
@echo " Compiling $<..."
@if [ ! -d MainMikMod ]; then mkdir MainMikMod; fi
- gcc ${CXXFLAGS} ${METHANE_FLAGS} -I ../ `libmikmod-config --cflags` -c $< -o $@
+ ${CXX} ${CXXFLAGS} ${METHANE_FLAGS} -I ../ `libmikmod-config --cflags` -c $< -o $@