forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / applications / emulators / bsnes / bsnes-hd / macos-copy-app-to-prefix.patch
blobd38efbc99bce1a09b1b3e1008da438d06ef3994e
1 diff --git a/bsnes/target-bsnes/GNUmakefile b/bsnes/target-bsnes/GNUmakefile
2 index 7a3ab9f..ec8a1a4 100644
3 --- a/bsnes/target-bsnes/GNUmakefile
4 +++ b/bsnes/target-bsnes/GNUmakefile
5 @@ -43,11 +43,8 @@ ifeq ($(platform),windows)
6 else ifeq ($(shell id -un),root)
7 $(error "make install should not be run as root")
8 else ifeq ($(platform),macos)
9 - mkdir -p ~/Library/Application\ Support/$(name)/
10 - mkdir -p ~/Library/Application\ Support/$(name)/Database/
11 - mkdir -p ~/Library/Application\ Support/$(name)/Firmware/
12 - mkdir -p ~/Library/Application\ Support/$(name)/Shaders/
13 - cp -R out/$(name).app /Applications/$(name).app
14 + mkdir -p $(prefix)/Applications
15 + cp -R out/$(name).app $(prefix)/Applications
16 else ifneq ($(filter $(platform),linux bsd),)
17 mkdir -p $(prefix)/bin/
18 mkdir -p $(prefix)/share/applications/