Index: osx-packager.pl
===================================================================
--- osx-packager.pl	(revision 24258)
+++ osx-packager.pl	(working copy)
@@ -1093,7 +1093,7 @@
     if ( $AVCfw )
     {   &RecursiveCopy($AVCfw, "$finalTarget/Contents/Frameworks")   }
 
-    if ( $target eq "MythFrontend" or $target =~ m/^MythTV/ )
+    if ( $target eq "MythFrontend" or $target =~ m/^MythTV/ or $target eq "MythBackend" )
     {
         my $res  = "$finalTarget/Contents/Resources";
         my $libs = "$res/lib";
@@ -1101,28 +1101,32 @@
 
         # Install themes, filters, etc.
         &Verbose("Installing resources into $target");
-        mkdir $res; mkdir $libs;
-        &RecursiveCopy("$PREFIX/lib/mythtv", $libs);
-        mkdir "$res/share";
+        mkdir $res; mkdir "$res/share";
         &RecursiveCopy("$PREFIX/share/mythtv", "$res/share");
 
-        # Correct the library paths for the filters and plugins
-        foreach my $lib ( glob "$libs/mythtv/*/*" )
-        {   &Syscall([ @bundler, $lib ]) or die   }
+	if ($target ne "MythBackend" )
+	{
+	    mkdir $libs;
+	    &RecursiveCopy("$PREFIX/lib/mythtv", $libs);
 
-        if ( -e $plug )
-        {
-            # Allow Finder's 'Get Info' to manage plugin list:
-            &Syscall([ 'mv', $plug, "$finalTarget/Contents/Plugins" ]) or die;
-            &Syscall([ 'ln', '-s', "../../../Plugins", $plug ]) or die;
-        }
-
-        # The icon
-        &Syscall([ 'cp',
-                   "$SVNDIR/mythtv/programs/mythfrontend/mythfrontend.icns",
-                   "$res/application.icns" ]) or die;
-        &Syscall([ '/Developer/Tools/SetFile', '-a', 'C', $finalTarget ])
-            or die;
+	    # Correct the library paths for the filters and plugins
+	    foreach my $lib ( glob "$libs/mythtv/*/*" )
+	    {   &Syscall([ @bundler, $lib ]) or die   }
+	    
+	    if ( -e $plug )
+	    {
+		# Allow Finder's 'Get Info' to manage plugin list:
+		&Syscall([ 'mv', $plug, "$finalTarget/Contents/Plugins" ]) or die;
+		&Syscall([ 'ln', '-s', "../../../Plugins", $plug ]) or die;
+	    }
+	    
+	    # The icon
+	    &Syscall([ 'cp',
+		       "$SVNDIR/mythtv/programs/mythfrontend/mythfrontend.icns",
+		       "$res/application.icns" ]) or die;
+	    &Syscall([ '/Developer/Tools/SetFile', '-a', 'C', $finalTarget ])
+		or die;
+	}
     }
 
     if ( $target eq "MythFrontend" )
@@ -1164,7 +1168,7 @@
     my $BE = "$SCRIPTDIR/MythBackend.app";
 
     # The backend gets all the useful binaries it might call:
-    foreach my $binary ( 'mythjobqueue', 'mythcommflag', 'mythtranscode' )
+    foreach my $binary ( 'mythjobqueue', 'mythcommflag', 'mythtranscode', 'mythfilldatabase' )
     {
         my $SRC  = "$PREFIX/bin/$binary";
         if ( -e $SRC )
