From: nhmall Date: Mon, 27 Feb 2023 16:47:09 +0000 (-0500) Subject: more macOS.370 macro usage X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d31db79558869c5d72b4aefb4542892b3aed5b0d;p=nethack more macOS.370 macro usage --- diff --git a/sys/unix/hints/macOS.370 b/sys/unix/hints/macOS.370 index 710f52e60..4500d8a3f 100755 --- a/sys/unix/hints/macOS.370 +++ b/sys/unix/hints/macOS.370 @@ -491,16 +491,15 @@ buildbundle: bundledir $(BUNDLEDIRS) $(BUNDLELIST) updatescript @echo $(GAME) bundle : $(BUNDLE_TOP) @echo $(GAME) game : $(BUNDLE_GAME) -$(BUNDLE_RESOURCESDIR)/%: ../sound/wav/% | $(BUNDLE_RESOURCESDIR) +$(BUNDLE_RESOURCESDIR)/%: $(NHTOP)sound/wav/% | $(BUNDLE_RESOURCESDIR) cp $< $@ -$(BUNDLE_MACOSDIR)/%: ../win/macosx/% | $(BUNDLE_MACOSDIR) - cp $< $@ +#$(BUNDLE_MACOSDIR)/%: $(NHTOP)win/macosx/% | $(BUNDLE_MACOSDIR) +# cp $< $@ $(BUNDLE_MACOSDIR)/%: $(dir $(GAMEBIN))/% | $(BUNDLE_MACOSDIR) cp $< $@ - $(BUNDLE_PARENTDIR): mkdir -p $@ @@ -531,6 +530,7 @@ $(BUNDLE_SHAREDFRAMEWORKSDIR): $(BUNDLE_CONTENTSDIR) $(BUNDLE_GAME): nethack cp nethack $@ +#FIXME: replace hardcoded information with actual values derived from NetHack build $(BUNDLE_INFOPLIST): @echo '' >$@ @echo '' >>$@ @@ -560,14 +560,11 @@ $(BUNDLE_INFOPLIST): @echo '3.7.0' >>$@ @echo 'NSHumanReadableCopyright' >>$@ @echo '©By Stichting Mathematisch Centrum and M. Stephenson 1985-2023' >>$@ -# @echo 'CFBundleSignature' >>$@ -# @echo '????' >>$@ @echo 'LSApplicationCategoryType' >>$@ -# @echo 'public.app-category.role-playing-games' >>$@ @echo 'public.app-category.adventure-games' >>$@ @echo '' >>$@ @echo '' >>$@ -# ../sys/unix/hints/macosx.sh infoplist >$@ +# $(NHTOP)sys/unix/hints/macosx.sh infoplist >$@ $(BUNDLE_LAUNCHER): @echo '#!/bin/sh' >$@ @@ -586,9 +583,10 @@ ifneq "$(SHELLDIR)" "" endif # We can't use a general rule because the file name of the .uu does not match the -# uudecode target file name in this case (nhicns.uu to nethack.icns) -$(BUNDLE_RESOURCESDIR)/$(BUNDLE_NAME).icns: $(BUNDLE_RESOURCESDIR) $(NHTOP)util/uudecode $(NHTOP)win/share/nhicns.uu - $(NHTOP)util/uudecode ../win/share/nhicns.uu +# uudecode target file name inside the .uu file, in this case (nhicns.uu to nethack.icns) +$(BUNDLE_RESOURCESDIR)/$(BUNDLE_NAME).icns: $(BUNDLE_RESOURCESDIR) $(NHTOP)util/uudecode \ + $(NHTOP)win/share/nhicns.uu + $(NHTOP)util/uudecode $(NHTOP)win/share/nhicns.uu mv nethack.icns $@ endif # MAKEFILE_SRC