ieda: init at 0-unstable-2024-10-11 (#338769)
[NixPkgs.git] / pkgs / by-name / ga / gargoyle / darwin.sh
blobed0daec4ef1faf080057da6f6fd939d783f9805e
1 #!@shell@
3 set -e
5 GARGDIST=build/macosx.release
6 BUNDLE=${out}/Applications/Gargoyle.app/Contents
7 TERPS="
8 advsys/advsys
9 agility/agility
10 alan2/alan2
11 alan3/alan3
12 bocfel/bocfel
13 frotz/frotz
14 garglk/gargoyle
15 geas/geas
16 git/git
17 glulxe/glulxe
18 hugo/hugo
19 jacl/jacl
20 level9/level9
21 magnetic/magnetic
22 nitfol/nitfol
23 scare/scare
24 scott/scott
25 tads/tadsr
28 mkdir -p $BUNDLE/MacOS
29 mkdir -p $BUNDLE/Frameworks
30 mkdir -p $BUNDLE/Resources
31 mkdir -p $BUNDLE/PlugIns
33 install_name_tool -id @executable_path/../Frameworks/libgarglk.dylib $GARGDIST/garglk/libgarglk.dylib
34 for file in $TERPS
36 install_name_tool -change @executable_path/libgarglk.dylib @executable_path/../Frameworks/libgarglk.dylib $GARGDIST/$file || true
37 cp -f $GARGDIST/$file $BUNDLE/PlugIns
38 done
40 cp -f garglk/launcher.plist $BUNDLE/Info.plist
41 cp -f $GARGDIST/garglk/gargoyle $BUNDLE/MacOS/Gargoyle
42 cp -f $GARGDIST/garglk/libgarglk.dylib $BUNDLE/Frameworks
43 cp -f $GARGDIST/garglk/libgarglk.dylib $BUNDLE/PlugIns
44 cp -f garglk/launchmac.nib $BUNDLE/Resources/MainMenu.nib
45 cp -f garglk/garglk.ini $BUNDLE/Resources
46 cp -f garglk/*.icns $BUNDLE/Resources
47 cp -f licenses/* $BUNDLE/Resources
49 mkdir $BUNDLE/Resources/Fonts
50 cp fonts/LiberationMono*.ttf $BUNDLE/Resources/Fonts
51 cp fonts/LinLibertine*.otf $BUNDLE/Resources/Fonts
53 mkdir -p ${out}/bin
54 ln -s $BUNDLE/MacOS/Gargoyle ${out}/bin/gargoyle