| 32 | post-destroot { |
| 33 | set my_app BZFlag |
| 34 | xinstall -d ${destroot}${applications_dir}/${my_app}.app/Contents/MacOS |
| 35 | ln -s ${prefix}/bin/${name} ${destroot}${applications_dir}/${my_app}.app/Contents/MacOS/${my_app} |
| 36 | xinstall -d ${destroot}${applications_dir}/${my_app}.app/Contents/Resources |
| 37 | system "makeicns -in ${worksrcpath}/data/bzflag-256x256.png -out ${destroot}${applications_dir}/${my_app}.app/Contents/Resources/${my_app}.icns" |
| 38 | system "echo '<?xml version=\"1.0\" encoding=\"UTF-8\"?>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist" |
| 39 | system "echo '<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist" |
| 40 | system "echo '<plist version=\"1.0\">' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist" |
| 41 | system "echo '<dict>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist" |
| 42 | system "echo ' <key>CFBundleExecutable</key>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist" |
| 43 | system "echo ' <string>${my_app}</string>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist" |
| 44 | system "echo ' <key>CFBundleIconFile</key>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist" |
| 45 | system "echo ' <string>${my_app}.icns</string>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist" |
| 46 | system "echo '</dict>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist" |
| 47 | system "echo '</plist>' >> ${destroot}${applications_dir}/${my_app}.app/Contents/Info.plist" |
| 48 | } |
| 49 | |