void-packages/srcpkgs/bsd-games/patches/cross.patch

87 lines
2.8 KiB
Diff

diff --git a/adventure/Makefrag b/adventure/Makefrag
index 64bc7e2..ee02de8 100644
--- a/adventure/Makefrag
+++ b/adventure/Makefrag
@@ -28,11 +28,12 @@
adventure_CLEANFILES := data.c
adventure_DIRS := $(GAMESDIR) $(MAN6DIR)
+ADVENTURE_SETUP = adventure/setup
adventure_all: adventure/adventure adventure/adventure.6
adventure/data.c: adventure/glorkz adventure/setup
- adventure/setup $< >$@
+ $(ADVENTURE_SETUP) $< >$@
adventure_install: adventure_all
$(INSTALL_BINARY) adventure/adventure $(INSTALL_PREFIX)$(GAMESDIR)/adventure
diff --git a/boggle/mkdict/Makefrag b/boggle/mkdict/Makefrag
index 3e27969..1556e72 100644
--- a/boggle/mkdict/Makefrag
+++ b/boggle/mkdict/Makefrag
@@ -34,9 +34,10 @@ boggle_mkdict_DICTSRC := $(DICTIONARY_SRC)
boggle_mkdict_DIRS := $(BOGGLE_DIR)
boggle_mkdict_INCS := -Iboggle/boggle
+BOGGLE_MKDICT_MKDICT = boggle/mkdict/mkdict
boggle/mkdict/dictionary: boggle/mkdict/mkdict $(boggle_mkdict_DICTSRC)
- $< <$(boggle_mkdict_DICTSRC) >$@
+ $(BOGGLE_MKDICT_MKDICT) <$(boggle_mkdict_DICTSRC) >$@
boggle_mkdict_all: boggle/mkdict/dictionary
diff --git a/boggle/mkindex/Makefrag b/boggle/mkindex/Makefrag
index 5d406b3..08afad7 100644
--- a/boggle/mkindex/Makefrag
+++ b/boggle/mkindex/Makefrag
@@ -29,9 +29,10 @@
boggle_mkindex_CLEANFILES := dictindex
boggle_mkindex_DIRS := $(BOGGLE_DIR)
boggle_mkindex_INCS := -Iboggle/boggle
+BOGGLE_MKINDEX_MKINDEX = boggle/mkindex/mkindex
boggle/mkindex/dictindex: boggle/mkindex/mkindex boggle/mkdict/dictionary
- $< <boggle/mkdict/dictionary >$@
+ $(BOGGLE_MKINDEX_MKINDEX) <boggle/mkdict/dictionary >$@
boggle_mkindex_all: boggle/mkindex/dictindex
diff --git a/hack/Makefrag b/hack/Makefrag
index eabbd2a..bc4388b 100644
--- a/hack/Makefrag
+++ b/hack/Makefrag
@@ -29,11 +29,12 @@
hack_DIRS := $(GAMESDIR) $(MAN6DIR)
hack_CLEANFILES := hack.onames.h
+HACK_MAKEDEFS = hack/makedefs
hack_all: hack/hack hack/hack.6
hack/hack.onames.h: hack/def.objects.h hack/makedefs
- hack/makedefs $< >$@
+ $(HACK_MAKEDEFS) $< >$@
hack/alloc.d hack/hack.Decl.d hack/hack.apply.d hack/hack.bones.d \
hack/hack.d hack/hack.cmd.d hack/hack.do.d hack/hack.do_name.d \
diff --git a/phantasia/Makefrag b/phantasia/Makefrag
index 96c3e6a..a041d45 100644
--- a/phantasia/Makefrag
+++ b/phantasia/Makefrag
@@ -30,11 +30,12 @@ phantasia_DIRS := $(GAMESDIR) $(MAN6DIR) $(PHANTASIA_DIR)
phantasia_VFILES1 := gold lastdead mess monsters motd void
phantasia_VFILES2 := scoreboard characs
phantasia_CLEANFILES := $(phantasia_VFILES1) $(phantasia_VFILES2) scorefiles.stamp
+PHANTASIA_SETUP = ./setup
phantasia_all: phantasia/phantasia phantasia/phantasia.6 phantasia/scorefiles.stamp
phantasia/scorefiles.stamp: phantasia/setup phantasia/monsters.asc
- cd phantasia && ./setup -m monsters.asc
+ cd phantasia && $(PHANTASIA_SETUP) -m monsters.asc
touch phantasia/scorefiles.stamp
phantasia_install: phantasia_all