Ticket #8381: osx-packager.patch

File osx-packager.patch, 2.7 KB (added by Ojas Parekh <mythtv@…>, 16 years ago)

packaging/OSX/build/osx-packager.pl patch

  • osx-packager.pl

     
    10931093    if ( $AVCfw )
    10941094    {   &RecursiveCopy($AVCfw, "$finalTarget/Contents/Frameworks")   }
    10951095
    1096     if ( $target eq "MythFrontend" or $target =~ m/^MythTV/ )
     1096    if ( $target eq "MythFrontend" or $target =~ m/^MythTV/ or $target eq "MythBackend" )
    10971097    {
    10981098        my $res  = "$finalTarget/Contents/Resources";
    10991099        my $libs = "$res/lib";
     
    11011101
    11021102        # Install themes, filters, etc.
    11031103        &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";
    11071105        &RecursiveCopy("$PREFIX/share/mythtv", "$res/share");
    11081106
    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);
    11121111
    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        }
    11261130    }
    11271131
    11281132    if ( $target eq "MythFrontend" )
     
    11641168    my $BE = "$SCRIPTDIR/MythBackend.app";
    11651169
    11661170    # 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' )
    11681172    {
    11691173        my $SRC  = "$PREFIX/bin/$binary";
    11701174        if ( -e $SRC )