forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
85 additions
and
5 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
pkgs/applications/emulators/bsnes/ares/002-sips-to-png2icns.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
diff --git a/desktop-ui/GNUmakefile b/desktop-ui/GNUmakefile | ||
index 4515610d3..916c8fcd8 100644 | ||
--- a/desktop-ui/GNUmakefile | ||
+++ b/desktop-ui/GNUmakefile | ||
@@ -91,7 +91,7 @@ endif | ||
cp resource/$(name).plist $(output.path)/$(name).app/Contents/Info.plist | ||
cp -R $(ares.path)/Shaders $(output.path)/$(name).app/Contents/Resources/ | ||
cp -R $(mia.path)/Database $(output.path)/$(name).app/Contents/Resources/ | ||
- sips -s format icns resource/$(name).png --out $(output.path)/$(name).app/Contents/Resources/$(name).icns | ||
+ png2icns $(output.path)/$(name).app/Contents/Resources/$(name).icns resource/$(name).png | ||
codesign --force --deep --options runtime --entitlements resource/$(name).selfsigned.entitlements --sign - $(output.path)/$(name).app | ||
else ifeq ($(platform),windows) | ||
$(call mkdir,$(output.path)/Shaders/) | ||
diff --git a/genius/GNUmakefile b/genius/GNUmakefile | ||
index 5287309a8..8d80f9306 100644 | ||
--- a/genius/GNUmakefile | ||
+++ b/genius/GNUmakefile | ||
@@ -24,7 +24,7 @@ ifeq ($(platform),macos) | ||
mkdir -p $(output.path)/$(name).app/Contents/Resources/ | ||
mv $(output.path)/$(name) $(output.path)/$(name).app/Contents/MacOS/$(name) | ||
cp data/$(name).plist $(output.path)/$(name).app/Contents/Info.plist | ||
- sips -s format icns data/$(name).png --$(output.path) $(output.path)/$(name).app/Contents/Resources/$(name).icns | ||
+ png2icns $(output.path)/$(name).app/Contents/Resources/$(name).icns data/$(name).png | ||
endif | ||
|
||
verbose: hiro.verbose nall.verbose all; | ||
diff --git a/mia/GNUmakefile b/mia/GNUmakefile | ||
index b6930b6df..7a51b5028 100644 | ||
--- a/mia/GNUmakefile | ||
+++ b/mia/GNUmakefile | ||
@@ -32,7 +32,7 @@ ifeq ($(platform),macos) | ||
mkdir -p $(output.path)/$(name).app/Contents/Resources/ | ||
mv $(output.path)/$(name) $(output.path)/$(name).app/Contents/MacOS/$(name) | ||
cp resource/$(name).plist $(output.path)/$(name).app/Contents/Info.plist | ||
- sips -s format icns resource/$(name).png --out $(output.path)/$(name).app/Contents/Resources/$(name).icns | ||
+ png2icns $(output.path)/$(name).app/Contents/Resources/$(name).icns resource/$(name).png | ||
endif | ||
|
||
verbose: hiro.verbose nall.verbose all; |
23 changes: 23 additions & 0 deletions
23
pkgs/applications/emulators/bsnes/ares/003-fix-darwin-install.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/desktop-ui/GNUmakefile b/desktop-ui/GNUmakefile | ||
index 916c8fcd8..b767c1335 100644 | ||
--- a/desktop-ui/GNUmakefile | ||
+++ b/desktop-ui/GNUmakefile | ||
@@ -92,7 +92,6 @@ endif | ||
cp -R $(ares.path)/Shaders $(output.path)/$(name).app/Contents/Resources/ | ||
cp -R $(mia.path)/Database $(output.path)/$(name).app/Contents/Resources/ | ||
png2icns $(output.path)/$(name).app/Contents/Resources/$(name).icns resource/$(name).png | ||
- codesign --force --deep --options runtime --entitlements resource/$(name).selfsigned.entitlements --sign - $(output.path)/$(name).app | ||
else ifeq ($(platform),windows) | ||
$(call mkdir,$(output.path)/Shaders/) | ||
$(call mkdir,$(output.path)/Database/) | ||
@@ -115,8 +114,8 @@ ifeq ($(platform),windows) | ||
else ifeq ($(shell id -un),root) | ||
$(error "make install should not be run as root") | ||
else ifeq ($(platform),macos) | ||
- mkdir -p ~/Library/Application\ Support/$(name)/ | ||
- cp -R $(output.path)/$(name).app /Applications/$(name).app | ||
+ mkdir -p $(prefix)/Applications/ | ||
+ cp -R $(output.path)/$(name).app $(prefix)/Applications/$(name).app | ||
else ifneq ($(filter $(platform),linux bsd),) | ||
mkdir -p $(prefix)/bin/ | ||
mkdir -p $(prefix)/share/applications/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters