Ticket #4397: win32-packager.20.patch
File win32-packager.20.patch, 6.0 KB (added by , 16 years ago) |
---|
-
win32-packager.pl
old new 5 5 ### 6 6 ### =description 7 7 ### Tool for automating frontend builds on MS WIndows XP (and compatible) 8 ### based loosely on osx-packager.pl8 ### originally based loosely on osx-packager.pl, but now is its own beast. 9 9 ### 10 10 ### =revision 11 11 ### $Id$ … … 15 15 ############################################################################## 16 16 17 17 use strict; 18 #use Getopt::Long qw(:config auto_abbrev);19 #use Pod::Usage ();20 #use Cwd ();21 18 use LWP::UserAgent; 22 19 use IO::File; 23 20 use Data::Dumper; … … 30 27 # this scipt was last tested to work with this version, on other versions YMMV. 31 28 #my $SVNRELEASE = '15528'; #builds and runs with 3x patches commented out below 32 29 #my $SVNRELEASE = '15586'; # builds and runs without patches except backend.gz 33 my $SVNRELEASE = '15699'; # latest build that runs without any additional patches30 my $SVNRELEASE = '15699'; # latest build that seemed to run without any additional patches, YMMV. 34 31 #my $SVNRELEASE = 'HEAD' ;# if you are game, go forth and test the latest release! 35 32 36 37 33 # We allow SourceForge to tell us which server to download from, 38 34 # rather than assuming specific server/s 39 35 my $sourceforge = 'downloads.sourceforge.net'; # auto-redirect to a … … 51 47 # however downloads/etc will still work fine. 52 48 # TODO using the proxy here WILL cause any Subversion (SVN) commands to fail, 53 49 # you will need to do that by hand. 50 # TIP if you want to get a 'tarball' of a specific SVN version of the sourcecode, from behind a non-SVN friendly proxy, TRAC can do it for you like this: (eg.is for SVN version 16599) 51 # http://svn.mythtv.org/trac/changeset?format=zip&new=15699&old=2&new_path=trunk%2Fmythtv&old_path=trunk%2Fmythtv 54 52 my $proxy = ''; 55 53 #my $proxy = 'http://enter.your.proxy.here:8080'; 56 54 … … 214 212 [ file => $msys.'bin/msys-z.dll', exec => ["copy /Y ".$dossources.'zlib\usr\bin\* '.$dosmsys."bin"] ], 215 213 [ file => $msys.'include/zlib.h', exec => ["copy /Y ".$dossources.'zlib\usr\include\* '.$dosmsys."include"] ], 216 214 # taglib also requires zlib in /mingw , so we'll put it there too, why not! 217 [ file => $m sys.'lib/libz.a', exec => ["copy /Y ".$dossources.'zlib\usr\lib\* '.$dosmingw."lib"] ],218 [ file => $m sys.'bin/msys-z.dll', exec => ["copy /Y ".$dossources.'zlib\usr\bin\* '. $dosmingw."bin"] ],219 [ file => $m sys.'include/zlib.h', exec => ["copy /Y ".$dossources.'zlib\usr\include\* '.$dosmingw."include"] ],215 [ file => $mingw.'lib/libz.a', exec => ["copy /Y ".$dossources.'zlib\usr\lib\* '.$dosmingw."lib"] ], 216 [ file => $mingw.'bin/msys-z.dll', exec => ["copy /Y ".$dossources.'zlib\usr\bin\* '. $dosmingw."bin"] ], 217 [ file => $mingw.'include/zlib.h', exec => ["copy /Y ".$dossources.'zlib\usr\include\* '.$dosmingw."include"] ], 220 218 221 219 222 220 … … 521 519 # configure 522 520 [ file => $mythtv.'mythtv/Makefile', shell => ['source '.$unixmythtv.'qt_env.sh','cd '.$unixmythtv.'mythtv','./configure --prefix=/usr --disable-dbox2 --disable-hdhomerun --disable-dvb --disable-ivtv --disable-iptv --disable-joystick-menu --disable-xvmc-vld --disable-x11 --disable-xvmc --enable-directx --enable-memalign-hack --cpu=k8 --compile-type=debug'], comment => 'do we already have a Makefile for mythtv?' ], 523 521 # make 524 [ newer => [$mythtv.'mythtv/libs/libmyth/libmyth-0.2 0.dll',$mythtv.'mythtv/last_build.txt'], shell => ['rm '.$unixmythtv.'mythtv/libs/libmyth/libmyth-0.20.dll','source '.$unixmythtv.'qt_env.sh','cd '.$unixmythtv.'mythtv','make'], comment => 'libs/libmyth/libmyth-0.20.dll - redo make unless all these files exist, and are newer than the last_build.txt identifier' ],525 [ newer => [$mythtv.'mythtv/libs/libmythtv/libmythtv-0.2 0.dll',$mythtv.'mythtv/last_build.txt'], shell => ['rm '.$unixmythtv.'mythtv/libs/libmythtv/libmythtv-0.20.dll','source '.$unixmythtv.'qt_env.sh','cd '.$unixmythtv.'mythtv','make'], comment => 'libs/libmythtv/libmythtv-0.20.dll - redo make unless all these files exist, and are newer than the last_build.txt identifier' ],522 [ newer => [$mythtv.'mythtv/libs/libmyth/libmyth-0.21.dll',$mythtv.'mythtv/last_build.txt'], shell => ['rm '.$unixmythtv.'mythtv/libs/libmyth/libmyth-0.21.dll','source '.$unixmythtv.'qt_env.sh','cd '.$unixmythtv.'mythtv','make'], comment => 'libs/libmyth/libmyth-0.21.dll - redo make unless all these files exist, and are newer than the last_build.txt identifier' ], 523 [ newer => [$mythtv.'mythtv/libs/libmythtv/libmythtv-0.21.dll',$mythtv.'mythtv/last_build.txt'], shell => ['rm '.$unixmythtv.'mythtv/libs/libmythtv/libmythtv-0.21.dll','source '.$unixmythtv.'qt_env.sh','cd '.$unixmythtv.'mythtv','make'], comment => 'libs/libmythtv/libmythtv-0.21.dll - redo make unless all these files exist, and are newer than the last_build.txt identifier' ], 526 524 [ newer => [$mythtv.'mythtv/programs/mythfrontend/mythfrontend.exe',$mythtv.'mythtv/last_build.txt'], shell => ['rm '.$unixmythtv.'mythtv/programs/mythfrontend/mythfrontend.exe','source '.$unixmythtv.'qt_env.sh','cd '.$unixmythtv.'mythtv','make'], comment => 'programs/mythfrontend/mythfrontend.exe - redo make unless all these files exist, and are newer than the last_build.txt identifier' ], 527 525 [ newer => [$mythtv.'mythtv/programs/mythbackend/mythbackend.exe',$mythtv.'mythtv/last_build.txt'], shell => ['rm '.$unixmythtv.'mythtv/programs/mythbackend/mythbackend.exe','source '.$unixmythtv.'qt_env.sh','cd '.$unixmythtv.'mythtv','make'], comment => 'programs/mythbackend/mythbackend.exe - redo make unless all these files exist, and are newer than the last_build.txt identifier' ], 528 526 … … 981 979 $f->binmode(); 982 980 $f->print($res->content); 983 981 $f->close(); 982 } 983 if ( ! -s $file ) { 984 die ("ERR: Unable to automatically fetch file!\nPerhaps manually downloading from the URL to the filename (both listed above) might work, or you might want to choose your own SF mirror (edit this script for instructions), or perhaps this version of the file is no longer available."); 984 985 } 985 986 } 986 987 #------------------------------------------------------------------------------