Skip to content

Commit

Permalink
Built binary without mythlogserver and add option to build it so it c…
Browse files Browse the repository at this point in the history
…an be used to build 0.26

Causes nothing but problems on mac
  • Loading branch information
jyavenard committed Sep 3, 2013
1 parent 449a164 commit 58fdbbc
Showing 1 changed file with 30 additions and 12 deletions.
42 changes: 30 additions & 12 deletions OSX/build/osx-packager-qtsdk.pl
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ =head1 SYNOPSIS
-gcc build using gcc (deprecated, default is clang/clang++)
-no-optimization build mythtv without compiler optimization
Useful for debugging
-enable-mythlogserver Enable mythlogserver (required for building myth <= 0.26)
=head1 DESCRIPTION
Expand Down Expand Up @@ -361,7 +362,8 @@ =head1 CREDITS
'olevel=s',
'nosysroot',
'gcc',
'no-optimization'
'no-optimization',
'enable-mythlogserver'
) or Pod::Usage::pod2usage(2);
Pod::Usage::pod2usage(1) if $OPT{'help'};
Pod::Usage::pod2usage('-verbose' => 2) if $OPT{'man'};
Expand Down Expand Up @@ -601,6 +603,7 @@ END
'--enable-libmp3lame',
'--disable-lirc',
'--disable-distcc',
'--python=/usr/bin/python2.6',

# To "cross compile" something for a lesser Mac:
#'--tune=G3',
Expand Down Expand Up @@ -633,6 +636,8 @@ END
$ENV{'DEVROOT'} = $DEVROOT;
$ENV{'SDKVER'} = $SDKVER;
$ENV{'SDKROOT'} = $SDKROOT;
$ENV{'DYLD_LIBRARY_PATH'} = "$PREFIX/lib";
$ENV{'PYTHONPATH'} = "$PREFIX/lib/python2.6/site-packages";

our $GCC = $OPT{'gcc'};
our $CCBIN;
Expand Down Expand Up @@ -1648,6 +1653,10 @@ END
{
push @config, "--disable-optimizations";
}
if ( ! $OPT{'enable-mythlogserver'} )
{
push @config, "--disable-mythlogserver";
}
}

if ( $OPT{'profile'} )
Expand Down Expand Up @@ -1865,9 +1874,13 @@ END
if ( $target eq "MythFrontend" )
{
my $extralib;
my @list = ( 'mythavtest', 'ignyte', 'mythpreviewgen', 'mtd' );
if ( $OPT{'enable-mythlogserver'} )
{
push @list, "mythlogserver";
}

foreach my $extra ( 'mythavtest', 'ignyte', 'mythpreviewgen', 'mtd',
'mythlogserver' )
foreach my $extra (@list)
{
if ( -e "$PREFIX/bin/$extra" )
{
Expand Down Expand Up @@ -1951,9 +1964,14 @@ END
&Syscall([ 'cp', '-pR', "$PREFIX/share/mythtv/html", $share ]) or die;

# The backend gets all the useful binaries it might call:
foreach my $binary ( 'mythjobqueue', 'mythcommflag',
'mythpreviewgen', 'mythtranscode', 'mythfilldatabase',
'mythlogserver' )
my @list = ( 'mythjobqueue', 'mythcommflag',
'mythpreviewgen', 'mythtranscode', 'mythfilldatabase' );
if ( $OPT{'enable-mythlogserver'} )
{
push @list, "mythlogserver";
}

foreach my $binary (@list)
{
my $SRC = "$PREFIX/bin/$binary";
if ( -e $SRC )
Expand Down Expand Up @@ -2249,12 +2267,12 @@ sub Distclean
{
$arch .= "/";
}
&Syscall("/bin/rm -f $PREFIX/${arch}include/mythtv");
&Syscall("/bin/rm -f $PREFIX/${arch}bin/myth*" );
&Syscall("/bin/rm -fr $PREFIX/${arch}lib/libmyth*" );
&Syscall("/bin/rm -fr $PREFIX/${arch}lib/mythtv" );
&Syscall("/bin/rm -fr $PREFIX/${arch}share/mythtv" );
&Syscall("/bin/rm -fr $PREFIX/${arch}share/mythtv" );
&Syscall("/bin/rm -fr $PREFIX/${arch}include/mythtv");
&Syscall("/bin/rm -f $PREFIX/${arch}bin/myth*" );
&Syscall("/bin/rm -fr $PREFIX/${arch}lib/libmyth*" );
&Syscall("/bin/rm -fr $PREFIX/${arch}lib/mythtv" );
&Syscall("/bin/rm -fr $PREFIX/${arch}share/mythtv" );
&Syscall("/bin/rm -fr $PREFIX/${arch}share/mythtv" );
&Syscall([ 'find', "$GITDIR/", '-name', '*.o', '-delete' ]);
&Syscall([ 'find', "$GITDIR/", '-name', '*.a', '-delete' ]);
&Syscall([ 'find', "$GITDIR/", '-name', '*.dylib', '-delete' ]);
Expand Down

0 comments on commit 58fdbbc

Please sign in to comment.