Ticket #8381: osx-packager.patch
File osx-packager.patch, 2.7 KB (added by , 14 years ago) |
---|
-
osx-packager.pl
1093 1093 if ( $AVCfw ) 1094 1094 { &RecursiveCopy($AVCfw, "$finalTarget/Contents/Frameworks") } 1095 1095 1096 if ( $target eq "MythFrontend" or $target =~ m/^MythTV/ )1096 if ( $target eq "MythFrontend" or $target =~ m/^MythTV/ or $target eq "MythBackend" ) 1097 1097 { 1098 1098 my $res = "$finalTarget/Contents/Resources"; 1099 1099 my $libs = "$res/lib"; … … 1101 1101 1102 1102 # Install themes, filters, etc. 1103 1103 &Verbose("Installing resources into $target"); 1104 mkdir $res; mkdir $libs; 1105 &RecursiveCopy("$PREFIX/lib/mythtv", $libs); 1106 mkdir "$res/share"; 1104 mkdir $res; mkdir "$res/share"; 1107 1105 &RecursiveCopy("$PREFIX/share/mythtv", "$res/share"); 1108 1106 1109 # Correct the library paths for the filters and plugins 1110 foreach my $lib ( glob "$libs/mythtv/*/*" ) 1111 { &Syscall([ @bundler, $lib ]) or die } 1107 if ($target ne "MythBackend" ) 1108 { 1109 mkdir $libs; 1110 &RecursiveCopy("$PREFIX/lib/mythtv", $libs); 1112 1111 1113 if ( -e $plug ) 1114 { 1115 # Allow Finder's 'Get Info' to manage plugin list: 1116 &Syscall([ 'mv', $plug, "$finalTarget/Contents/Plugins" ]) or die; 1117 &Syscall([ 'ln', '-s', "../../../Plugins", $plug ]) or die; 1118 } 1119 1120 # The icon 1121 &Syscall([ 'cp', 1122 "$SVNDIR/mythtv/programs/mythfrontend/mythfrontend.icns", 1123 "$res/application.icns" ]) or die; 1124 &Syscall([ '/Developer/Tools/SetFile', '-a', 'C', $finalTarget ]) 1125 or die; 1112 # Correct the library paths for the filters and plugins 1113 foreach my $lib ( glob "$libs/mythtv/*/*" ) 1114 { &Syscall([ @bundler, $lib ]) or die } 1115 1116 if ( -e $plug ) 1117 { 1118 # Allow Finder's 'Get Info' to manage plugin list: 1119 &Syscall([ 'mv', $plug, "$finalTarget/Contents/Plugins" ]) or die; 1120 &Syscall([ 'ln', '-s', "../../../Plugins", $plug ]) or die; 1121 } 1122 1123 # The icon 1124 &Syscall([ 'cp', 1125 "$SVNDIR/mythtv/programs/mythfrontend/mythfrontend.icns", 1126 "$res/application.icns" ]) or die; 1127 &Syscall([ '/Developer/Tools/SetFile', '-a', 'C', $finalTarget ]) 1128 or die; 1129 } 1126 1130 } 1127 1131 1128 1132 if ( $target eq "MythFrontend" ) … … 1164 1168 my $BE = "$SCRIPTDIR/MythBackend.app"; 1165 1169 1166 1170 # The backend gets all the useful binaries it might call: 1167 foreach my $binary ( 'mythjobqueue', 'mythcommflag', 'mythtranscode' )1171 foreach my $binary ( 'mythjobqueue', 'mythcommflag', 'mythtranscode', 'mythfilldatabase' ) 1168 1172 { 1169 1173 my $SRC = "$PREFIX/bin/$binary"; 1170 1174 if ( -e $SRC )