-$Id: BUILD,v 1.11 2005/10/23 01:35:59 titer Exp $\r
-\r
-BUILD file for HandBrake <http://handbrake.fr/>\r
-\r
-Building HandBrake with make\r
-=============================\r
-\r
-Step 1: get needed tools\r
-==============\r
-\r
-+ gcc and g++\r
- There are usually included in your OS' dev tools. On BeOS/Zeta, the\r
- default gcc isn't enough, gcc 2.95.3 is required.\r
-\r
-+ nasm (Only for x86. On Mac OS X Intel, Xcode 2.4.1 include it)\r
-\r
-Cygwin setup:\r
- There are a couple extra things required to make the code build for Cygwin.\r
- Make sure you have /bin and /usr/bin on your path *first*, before\r
- the Windows paths. Otherwise the Cygwin find.exe won't be used, and\r
- lame won't build.\r
- Also, I have not tried to build this with MinGW, I've only built it with\r
- the Cygwin environment, so you should build with Cygwin gcc and dev tools.\r
- Unfortunately this means you need to have cygwin1.dll around to run the\r
- HandbrakeCLI.exe program, but that's the way it is for now, until I get time\r
- to try building it with MinGW. If you want to try making it work with\r
- MinGW, then go for it!\r
-\r
-Step 2: configuration\r
-==============\r
-\r
-The HB_BUILD and HB_VERSION are defined in a single file, the Makefile correct the values in Xcode too.\r
-\r
-The file where the informations are stored is Makefile.config\r
-\r
-Step 3: build\r
-==============\r
-\r
-Run `make'. This will build libhb, Handbrake and HandBrakeCLI as Universal Binary.\r
-This build method use precompiled contrib libraries. Script to build those binaries are provided too.\r
-All the build is handled by Xcode 2.4.1, should work on powerPC and Intel Macs.\r
-\r
-# To build under Cygwin simply use the command:\r
-make HandbrakeCLI\r
-\r
-This will download pre-compiled libaries and build the handbrake source.\r
-\r
------------------------------------------------------------------------------------------------------\r
-\r
-Building HandBrake with jam\r
-=============================\r
-\r
-You can build HandBrake on BeOS, MacOS X, Linux, and on Windows using Cygwin.\r
-If you'd like to port it to another OS, email me (titer@m0k.org).\r
-\r
-Step 1: get needed tools\r
-==============\r
-\r
-+ gcc and g++\r
- There are usually included in your OS' dev tools. On BeOS/Zeta, the\r
- default gcc isn't enough, gcc 2.95.3 is required.\r
-\r
-+ jam\r
- I use 2.5rc3, earlier versions might cause issues.\r
- On BeOS, you can download it at <http://www.haiku-os.org/develop.php>.\r
- On OS X, you cannot use the modified jam shipped with the developer\r
- tools, use the one included in the Handbrake svn checkout instead.\r
- On Cygwin, get the jam source from\r
- http://public.perforce.com/public/jam/index.html,\r
- compile it with gcc in Cygwin, and put the jam executable somewhere on\r
- your path.\r
-\r
-+ nasm (Only for x86. On Mac OS X Intel, Xcode 2.4.1 include it)\r
-\r
-+ libtool, autoconf, automake\r
- To build libdca (the DTS audio extraction library) on Mac OS X via jam, you'll\r
- need to update the default Mac OS X versions of libtool, autoconf and automake.\r
- Compilation has been seen to work with libtool and libtool-shlibs v1.5.22-1000,\r
- autoconf v2.60-4, and automake v1.9.6-3. You can update these tools using Fink.\r
- Download the Fink 0.8.1 Binary Installer for your platform (PowerPC or Intel)\r
- from http://www.finkproject.org/download/index.php?phpLang=en and install Fink\r
- using the installer. If you want to use a GUI to run Fink, you can install\r
- FinkCommander. Download the FinkCommander 0.5.4 installer from\r
- http://finkcommander.sourceforge.net/ and install from the disk image. You can\r
- install libtool, libtool-shlibs, autoconf and automake using FinkCommander.\r
-\r
-Cygwin setup:\r
- There are a couple extra things required to make the code build for Cygwin.\r
- Make sure you have /bin and /usr/bin on your path *first*, before\r
- the Windows paths. Otherwise the Cygwin find.exe won't be used, and\r
- lame won't build.\r
- Also, I have not tried to build this with MinGW, I've only built it with\r
- the Cygwin environment, so you should build with Cygwin gcc and dev tools.\r
- Unfortunately this means you need to have cygwin1.dll around to run the\r
- HandbrakeCLI.exe program, but that's the way it is for now, until I get time\r
- to try building it with MinGW. If you want to try making it work with\r
- MinGW, then go for it!\r
-\r
-Step 2: build\r
-==============\r
-\r
-Run `./configure && jam'. This will build every library HandBrake\r
-requires, then HandBrake itself.\r
+$Id: BUILD,v 1.11 2005/10/23 01:35:59 titer Exp $
+
+BUILD file for HandBrake <http://handbrake.fr/>
+
+Building HandBrake with make
+=============================
+
+Step 1: get needed tools
+==============
+
++ gcc and g++
+ There are usually included in your OS' dev tools. On BeOS/Zeta, the
+ default gcc isn't enough, gcc 2.95.3 is required.
+
++ nasm (Only for x86. On Mac OS X Intel, Xcode 2.4.1 include it)
+
+Cygwin setup:
+ There are a couple extra things required to make the code build for Cygwin.
+ Make sure you have /bin and /usr/bin on your path *first*, before
+ the Windows paths. Otherwise the Cygwin find.exe won't be used, and
+ lame won't build.
+ Also, I have not tried to build this with MinGW, I've only built it with
+ the Cygwin environment, so you should build with Cygwin gcc and dev tools.
+ Unfortunately this means you need to have cygwin1.dll around to run the
+ HandbrakeCLI.exe program, but that's the way it is for now, until I get time
+ to try building it with MinGW. If you want to try making it work with
+ MinGW, then go for it!
+
+Step 2: configuration
+==============
+
+The HB_BUILD and HB_VERSION are defined in a single file, the Makefile correct the values in Xcode too.
+
+The file where the informations are stored is Makefile.config
+
+Step 3: build
+==============
+
+Run `make'. This will build libhb, Handbrake and HandBrakeCLI as Universal Binary.
+This build method use precompiled contrib libraries. Script to build those binaries are provided too.
+All the build is handled by Xcode 2.4.1, should work on powerPC and Intel Macs.
+
+# To build under Cygwin simply use the command:
+make HandbrakeCLI
+
+This will download pre-compiled libaries and build the handbrake source.
+
+-----------------------------------------------------------------------------------------------------
+
+Building HandBrake with jam
+=============================
+
+You can build HandBrake on BeOS, MacOS X, Linux, and on Windows using Cygwin.
+If you'd like to port it to another OS, email me (titer@m0k.org).
+
+Step 1: get needed tools
+==============
+
++ gcc and g++
+ There are usually included in your OS' dev tools. On BeOS/Zeta, the
+ default gcc isn't enough, gcc 2.95.3 is required.
+
++ jam
+ I use 2.5rc3, earlier versions might cause issues.
+ On BeOS, you can download it at <http://www.haiku-os.org/develop.php>.
+ On OS X, you cannot use the modified jam shipped with the developer
+ tools, use the one included in the Handbrake svn checkout instead.
+ On Cygwin, get the jam source from
+ http://public.perforce.com/public/jam/index.html,
+ compile it with gcc in Cygwin, and put the jam executable somewhere on
+ your path.
+
++ nasm (Only for x86. On Mac OS X Intel, Xcode 2.4.1 include it)
+
++ libtool, autoconf, automake
+ To build libdca (the DTS audio extraction library) on Mac OS X via jam, you'll
+ need to update the default Mac OS X versions of libtool, autoconf and automake.
+ Compilation has been seen to work with libtool and libtool-shlibs v1.5.22-1000,
+ autoconf v2.60-4, and automake v1.9.6-3. You can update these tools using Fink.
+ Download the Fink 0.8.1 Binary Installer for your platform (PowerPC or Intel)
+ from http://www.finkproject.org/download/index.php?phpLang=en and install Fink
+ using the installer. If you want to use a GUI to run Fink, you can install
+ FinkCommander. Download the FinkCommander 0.5.4 installer from
+ http://finkcommander.sourceforge.net/ and install from the disk image. You can
+ install libtool, libtool-shlibs, autoconf and automake using FinkCommander.
+
+Cygwin setup:
+ There are a couple extra things required to make the code build for Cygwin.
+ Make sure you have /bin and /usr/bin on your path *first*, before
+ the Windows paths. Otherwise the Cygwin find.exe won't be used, and
+ lame won't build.
+ Also, I have not tried to build this with MinGW, I've only built it with
+ the Cygwin environment, so you should build with Cygwin gcc and dev tools.
+ Unfortunately this means you need to have cygwin1.dll around to run the
+ HandbrakeCLI.exe program, but that's the way it is for now, until I get time
+ to try building it with MinGW. If you want to try making it work with
+ MinGW, then go for it!
+
+Step 2: build
+==============
+
+Run `./configure && jam'. This will build every library HandBrake
+requires, then HandBrake itself.
-CREDITS file for HandBrake <http://handbrake.fr/>\r
-\r
-HandBrake uses many cool libraries from the GNU/Linux world.\r
-Thank their authors!\r
-\r
-liba52 authors:\r
- Aaron Holtzman\r
- Michel Lespinasse\r
- Gildas Bazin\r
- Billy Biggs\r
- Eduard Hasenleithner\r
- Håkan Hjort\r
- Charles M. Hannum\r
- Chris Hodges\r
- Michael Holzt\r
- Angelos Keromytis\r
- David I. Lehn\r
- Don Mahurin\r
- Jim Miller\r
- Takefumi Sayo\r
- Shoji Tokunaga\r
-\r
-libavcodec authors:\r
- Fabrice Bellard\r
- Alex Beregszaszi\r
- Brian Foley\r
- Arpad Gereoffy\r
- Philip Gladstone\r
- Falk Hueffner\r
- Zdenek Kabelac\r
- Nick Kurshev\r
- Michael Niedermayer\r
- François Revol\r
- Dieter Shirley\r
- Juan J. Sierralta\r
- Lionel Ulmer\r
-\r
-libdts authors:\r
- Gildas Bazin\r
- Sam Hocevar\r
-\r
-libdvdcss authors:\r
- Billy Biggs\r
- Stéphane Borel\r
- Håkan Hjort\r
- Samuel Hocevar\r
- Eugenio Jarosiewicz\r
- Jon Lech Johansen\r
- Markus Kuespert\r
- Pascal Levesque\r
- Steven M. Schultz\r
- David Siebörger\r
- Alex Strelnikov\r
- German Tischler\r
- Gildas Bazin\r
-\r
-libdvdread authors:\r
- Björn Englund\r
- Håkan Hjort\r
- Billy Biggs\r
- Christian Wolff\r
-\r
-libfaac authors:\r
- M. Bakker\r
- Tony Lenox\r
- RageOMatic\r
- thebard\r
- Ivan Dimkovic\r
- Krzysztof Nikiel\r
-\r
-libmp3lame authors:\r
- Mike Cheng\r
- Robert Hegemann\r
- Frank Klemm\r
- Alexander Leidinger\r
- Naoki Shibata\r
- Mark Taylor\r
- Takehiro Tominiga\r
- Iván Cavero Belaunde\r
- Gabriel Bouvigne\r
- Florian Bomers\r
- CISC\r
- John Dahlstrom\r
- John Dee\r
- Albert Faber\r
- Peter Gubanov\r
- Lars Magne Ingebrigtsen \r
- Yosi Markovich\r
- Zdenek Kabelac\r
- Iwasa Kazmi\r
- Guillaume Lessard\r
- Steve Lhomme\r
- Don Melton\r
- Viral Shah\r
- Acy Stapp\r
- Roel VdB\r
-\r
-libmp4v2 authors:\r
- Dave Mackie\r
- Alix Marchandise-Franquet\r
- Bill May\r
- Massimo Villari\r
- Waqar Mohsin\r
- Richard Chen\r
- Rob Arnold\r
- Howdy Pierce\r
- Steven Schultz\r
- sergent@io.com\r
- Sean Gilligan\r
- Michael Rossberg\r
- Luis F. Ramirez\r
- Petter Reinholdtsen\r
-\r
-libmpeg2 authors:\r
- Aaron Holtzman\r
- Michel Lespinasse\r
- Bruno Barreyra\r
- Gildas Bazin\r
- Alexander W. Chin\r
- Stephen Crowley\r
- Didier Gautheron\r
- Ryan C. Gordon\r
- Peter Gubanov\r
- Håkan Hjort\r
- Nicolas Joly\r
- Gerd Knorr\r
- David I. Lehn\r
- Olie Lho\r
- Rick Niles\r
- Real Ouellet\r
- Bajusz Peter\r
- Franck Sicard\r
- Brion Vibber\r
- Martin Vogt\r
- Fredrik Vraalsen\r
-\r
-libogg authors:\r
- Christopher Montgomery\r
-\r
-libsamplerate authors:\r
- Erik de Castro Lopo\r
-\r
-libvorbis authors:\r
- Christopher Montgomery\r
-\r
-libx264 authors:\r
- Laurent Aimar\r
-\r
-libxvidcore authors:\r
- Christoph Lampert\r
- Michael Militzer\r
- Peter Ross\r
- Benjamin Herrenschmidt\r
- Daniel Smith\r
- Dirk Knop\r
- Edouard Gomez\r
- Guillaume Morin\r
- MinChen\r
- Pascal Massimino\r
- Radoslaw Czyz\r
+CREDITS file for HandBrake <http://handbrake.fr/>
+
+HandBrake uses many cool libraries from the GNU/Linux world.
+Thank their authors!
+
+liba52 authors:
+ Aaron Holtzman
+ Michel Lespinasse
+ Gildas Bazin
+ Billy Biggs
+ Eduard Hasenleithner
+ Håkan Hjort
+ Charles M. Hannum
+ Chris Hodges
+ Michael Holzt
+ Angelos Keromytis
+ David I. Lehn
+ Don Mahurin
+ Jim Miller
+ Takefumi Sayo
+ Shoji Tokunaga
+
+libavcodec authors:
+ Fabrice Bellard
+ Alex Beregszaszi
+ Brian Foley
+ Arpad Gereoffy
+ Philip Gladstone
+ Falk Hueffner
+ Zdenek Kabelac
+ Nick Kurshev
+ Michael Niedermayer
+ François Revol
+ Dieter Shirley
+ Juan J. Sierralta
+ Lionel Ulmer
+
+libdts authors:
+ Gildas Bazin
+ Sam Hocevar
+
+libdvdcss authors:
+ Billy Biggs
+ Stéphane Borel
+ Håkan Hjort
+ Samuel Hocevar
+ Eugenio Jarosiewicz
+ Jon Lech Johansen
+ Markus Kuespert
+ Pascal Levesque
+ Steven M. Schultz
+ David Siebörger
+ Alex Strelnikov
+ German Tischler
+ Gildas Bazin
+
+libdvdread authors:
+ Björn Englund
+ Håkan Hjort
+ Billy Biggs
+ Christian Wolff
+
+libfaac authors:
+ M. Bakker
+ Tony Lenox
+ RageOMatic
+ thebard
+ Ivan Dimkovic
+ Krzysztof Nikiel
+
+libmp3lame authors:
+ Mike Cheng
+ Robert Hegemann
+ Frank Klemm
+ Alexander Leidinger
+ Naoki Shibata
+ Mark Taylor
+ Takehiro Tominiga
+ Iván Cavero Belaunde
+ Gabriel Bouvigne
+ Florian Bomers
+ CISC
+ John Dahlstrom
+ John Dee
+ Albert Faber
+ Peter Gubanov
+ Lars Magne Ingebrigtsen
+ Yosi Markovich
+ Zdenek Kabelac
+ Iwasa Kazmi
+ Guillaume Lessard
+ Steve Lhomme
+ Don Melton
+ Viral Shah
+ Acy Stapp
+ Roel VdB
+
+libmp4v2 authors:
+ Dave Mackie
+ Alix Marchandise-Franquet
+ Bill May
+ Massimo Villari
+ Waqar Mohsin
+ Richard Chen
+ Rob Arnold
+ Howdy Pierce
+ Steven Schultz
+ sergent@io.com
+ Sean Gilligan
+ Michael Rossberg
+ Luis F. Ramirez
+ Petter Reinholdtsen
+
+libmpeg2 authors:
+ Aaron Holtzman
+ Michel Lespinasse
+ Bruno Barreyra
+ Gildas Bazin
+ Alexander W. Chin
+ Stephen Crowley
+ Didier Gautheron
+ Ryan C. Gordon
+ Peter Gubanov
+ Håkan Hjort
+ Nicolas Joly
+ Gerd Knorr
+ David I. Lehn
+ Olie Lho
+ Rick Niles
+ Real Ouellet
+ Bajusz Peter
+ Franck Sicard
+ Brion Vibber
+ Martin Vogt
+ Fredrik Vraalsen
+
+libogg authors:
+ Christopher Montgomery
+
+libsamplerate authors:
+ Erik de Castro Lopo
+
+libvorbis authors:
+ Christopher Montgomery
+
+libx264 authors:
+ Laurent Aimar
+
+libxvidcore authors:
+ Christoph Lampert
+ Michael Militzer
+ Peter Ross
+ Benjamin Herrenschmidt
+ Daniel Smith
+ Dirk Knop
+ Edouard Gomez
+ Guillaume Morin
+ MinChen
+ Pascal Massimino
+ Radoslaw Czyz
-include Makefile.config\r
-\r
-SYSTEM = $(shell uname -s)\r
-\r
-# Special case for Mac OS X: everything is handled from the Xcode project\r
-\r
-#\r
-# Darwin\r
-#\r
-ifeq ($(SYSTEM),Darwin)\r
-\r
-snapshot: clean snapshot-app\r
-\r
-all: clean app\r
-\r
-all-chunky: clean app-chunky\r
-\r
-test: clean cli\r
-\r
-dev: clean internal\r
-\r
-app: libhb/hbversion.h\r
- (./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -target libhb -target HandBrake -target HandBrakeCLI -configuration UB HB_BUILD="$(HB_BUILD)" HB_VERSION="$(HB_VERSION)" APPCAST_URL="http://handbrake.fr/appcast.xml" build | sed '/^$$/d' )\r
-\r
-contrib/.contrib:\r
- @$(MAKE) --no-print-directory -C contrib all\r
-\r
-snapshot-app: contrib/.contrib unstable-libhb/hbversion.h\r
- ( cd macosx ; xcodebuild -target libhb -target HandBrake -target HandBrakeCLI -configuration Deployment HB_BUILD="$(SNAP_HB_BUILD)" HB_VERSION="$(SNAP_HB_VERSION)" CURRENT_PROJECT_VERSION="$(SNAP_HB_VERSION)" APPCAST_URL="http://handbrake.fr/appcast_unstable.xml" build | sed '/^$$/d' )\r
-\r
-app-chunky: libhb/hbversion.h\r
- (./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -alltargets -configuration UB HB_BUILD="$(HB_BUILD)" HB_VERSION="$(HB_VERSION)" APPCAST_URL="http://handbrake.fr/appcast.xml" build | sed '/^$$/d' )\r
-\r
-cli: libhb/hbversion.h\r
- (./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -target libhb -target HandBrakeCLI -configuration UB HB_BUILD="$(HB_BUILD)" HB_VERSION="$(HB_VERSION)" build | sed '/^$$/d' )\r
-\r
-clean:\r
- (cd macosx ; xcodebuild -alltargets -configuration UB clean | sed '/^$$/d' ; rm -f libhb/hbversion.h )\r
-\r
-mrproper:\r
- (rm -rf libhb/hbversion.h contrib/*tar.gz contrib/include contrib/lib contrib/DarwinContribVersion.txt ; cd macosx ; xcodebuild -alltargets -configuration UB clean | sed '/^$$/d' )\r
-\r
-release:\r
- (rm -rf HandBrake HandBrake*dmg ; mkdir -p HandBrake/api HandBrake/doc HandBrake/doc/pdf; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/doc ; cp -rp pdf/ HandBrake/doc/pdf/ ; cp -rp HandBrake.app HandBrake ; cp -rp libhb/libhb.dylib HandBrake/api ; cp -rp libhb/hb.h libhb/common.h libhb/ports.h HandBrake/api ; cp -rp HandBrakeCLI HandBrake ; hdiutil create -srcfolder HandBrake -format UDZO HandBrake-$(HB_VERSION)-MacOS_UB.dmg ; rm -rf HandBrake )\r
-\r
-gui-release:\r
- (rm -rf HandBrake HandBrake*GUI_UB.dmg ; mkdir -p HandBrake/docs ; cp AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/docs ; cp -rp HandBrake.app HandBrake ; hdiutil create -srcfolder HandBrake -format UDBZ HandBrake-$(HB_VERSION)-MacOSX.4_GUI_UB.dmg ; rm -rf HandBrake )\r
-\r
-cli-release:\r
- (rm -rf HandBrake HandBrake*CLI_UB.dmg ; mkdir -p HandBrake/docs ; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/docs ; cp -rp HandBrakeCLI HandBrake ; hdiutil create -srcfolder HandBrake -format UDZO HandBrake-$(HB_VERSION)-MacOSX.3_CLI_UB.dmg ; rm -rf HandBrake )\r
-\r
-gui-snapshot-release:\r
- (rm -rf HandBrake HandBrake*GUI_UB.dmg ; mkdir -p HandBrake/docs ; cp AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/docs ; cp -rp HandBrake.app HandBrake ; hdiutil create -srcfolder HandBrake -format UDBZ HandBrake-$(SNAP_HB_VERSION)-MacOSX.5_GUI_UB.dmg ; rm -rf HandBrake )\r
-\r
-cli-snapshot-release:\r
- (rm -rf HandBrake HandBrake*CLI_UB.dmg ; mkdir -p HandBrake/docs ; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/docs ; cp -rp HandBrakeCLI HandBrake ; hdiutil create -srcfolder HandBrake -format UDZO HandBrake-$(SNAP_HB_VERSION)-MacOSX.5_CLI_UB.dmg ; rm -rf HandBrake )\r
-\r
-endif\r
-\r
-#\r
-# Linux\r
-#\r
-ifeq ($(SYSTEM),Linux)\r
-\r
-all: contrib/.contrib libhb/libhb.a HandBrakeCLI\r
- (rm -rf HandBrake HandBrake*.tar.gz ; mkdir -p HandBrake/api HandBrake/doc; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/doc ; cp -rp libhb/libhb.so HandBrake/api ; cp -rp libhb/hb.h libhb/common.h libhb/ports.h HandBrake/api ; cp -rp HandBrakeCLI HandBrake ; tar zcvf HandBrake-$(HB_VERSION)_i386.tar.gz HandBrake ; rm -rf HandBrake )\r
-\r
-contrib/.contrib:\r
- @$(MAKE) --no-print-directory -C contrib all\r
-\r
-libhb/libhb.a: unstable-libhb/hbversion.h\r
- @$(MAKE) --no-print-directory -C libhb all\r
-\r
-HandBrakeCLI:\r
- @$(MAKE) --no-print-directory -C test all\r
-\r
-clean:\r
- @$(MAKE) --no-print-directory -C libhb clean\r
- @$(MAKE) --no-print-directory -C test clean\r
- @rm libhb/hbversion.h\r
-\r
-mrproper: clean\r
- @$(MAKE) --no-print-directory -C contrib mrproper\r
-\r
-endif\r
-\r
-#\r
-# Cygwin\r
-#\r
-ifeq ($(findstring CYGWIN_NT,$(SYSTEM)),CYGWIN_NT)\r
-\r
-all: contrib/.contrib libhb/libhb.a HandBrakeCLI\r
-\r
-app: contribPack libhb/libhb.a HandBrakeCLI\r
-\r
-contribPack:\r
- (./DownloadCygWinContribBinaries.sh)\r
- \r
-contrib/.contrib:\r
- @$(MAKE) --no-print-directory -C contrib all\r
-\r
-libhb/libhb.a: unstable-libhb/hbversion.h\r
- @$(MAKE) --no-print-directory -C libhb all\r
-\r
-HandBrakeCLI: \r
- @$(MAKE) --no-print-directory -C test all\r
- \r
-clean:\r
- @$(MAKE) --no-print-directory -C libhb clean\r
- @$(MAKE) --no-print-directory -C test clean\r
- @rm libhb/hbversion.h\r
-\r
-mrproper: clean\r
- @$(MAKE) --no-print-directory -C contrib mrproper\r
-\r
-endif\r
-\r
-libhb/hbversion.h:\r
- echo "#ifndef HB_BUILD" > libhb/hbversion.h\r
- echo "#define HB_BUILD $(HB_BUILD)" >> libhb/hbversion.h\r
- echo "#endif" >> libhb/hbversion.h\r
- echo "#ifndef HB_VERSION" >> libhb/hbversion.h\r
- echo "#define HB_VERSION \"$(HB_VERSION)\"" >> libhb/hbversion.h\r
- echo "#endif" >> libhb/hbversion.h\r
- echo "#ifndef HB_APPCAST_URL" >> libhb/hbversion.h\r
- echo "#define APPCAST_URL \"http://handbrake.fr/appcast.xml\"" >> libhb/hbversion.h\r
- echo "#endif" >> libhb/hbversion.h\r
-\r
-unstable-libhb/hbversion.h:\r
- echo "#ifndef HB_BUILD" > libhb/hbversion.h\r
- echo "#define HB_BUILD $(SNAP_HB_BUILD)" >> libhb/hbversion.h\r
- echo "#endif" >> libhb/hbversion.h\r
- echo "#ifndef HB_VERSION" >> libhb/hbversion.h\r
- echo "#define HB_VERSION \"$(SNAP_HB_VERSION)\"" >> libhb/hbversion.h\r
- echo "#endif" >> libhb/hbversion.h\r
- echo "#ifndef HB_APPCAST_URL" >> libhb/hbversion.h\r
- echo "#define APPCAST_URL \"http://handbrake.fr/appcast_unstable.xml\"" >> libhb/hbversion.h\r
- echo "#endif" >> libhb/hbversion.h\r
+include Makefile.config
+
+SYSTEM = $(shell uname -s)
+
+# Special case for Mac OS X: everything is handled from the Xcode project
+
+#
+# Darwin
+#
+ifeq ($(SYSTEM),Darwin)
+
+snapshot: clean snapshot-app
+
+all: clean app
+
+all-chunky: clean app-chunky
+
+test: clean cli
+
+dev: clean internal
+
+app: libhb/hbversion.h
+ (./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -target libhb -target HandBrake -target HandBrakeCLI -configuration UB HB_BUILD="$(HB_BUILD)" HB_VERSION="$(HB_VERSION)" APPCAST_URL="http://handbrake.fr/appcast.xml" build | sed '/^$$/d' )
+
+contrib/.contrib:
+ @$(MAKE) --no-print-directory -C contrib all
+
+snapshot-app: contrib/.contrib unstable-libhb/hbversion.h
+ ( cd macosx ; xcodebuild -target libhb -target HandBrake -target HandBrakeCLI -configuration Deployment HB_BUILD="$(SNAP_HB_BUILD)" HB_VERSION="$(SNAP_HB_VERSION)" CURRENT_PROJECT_VERSION="$(SNAP_HB_VERSION)" APPCAST_URL="http://handbrake.fr/appcast_unstable.xml" build | sed '/^$$/d' )
+
+app-chunky: libhb/hbversion.h
+ (./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -alltargets -configuration UB HB_BUILD="$(HB_BUILD)" HB_VERSION="$(HB_VERSION)" APPCAST_URL="http://handbrake.fr/appcast.xml" build | sed '/^$$/d' )
+
+cli: libhb/hbversion.h
+ (./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -target libhb -target HandBrakeCLI -configuration UB HB_BUILD="$(HB_BUILD)" HB_VERSION="$(HB_VERSION)" build | sed '/^$$/d' )
+
+clean:
+ (cd macosx ; xcodebuild -alltargets -configuration UB clean | sed '/^$$/d' ; rm -f libhb/hbversion.h )
+
+mrproper:
+ (rm -rf libhb/hbversion.h contrib/*tar.gz contrib/include contrib/lib contrib/DarwinContribVersion.txt ; cd macosx ; xcodebuild -alltargets -configuration UB clean | sed '/^$$/d' )
+
+release:
+ (rm -rf HandBrake HandBrake*dmg ; mkdir -p HandBrake/api HandBrake/doc HandBrake/doc/pdf; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/doc ; cp -rp pdf/ HandBrake/doc/pdf/ ; cp -rp HandBrake.app HandBrake ; cp -rp libhb/libhb.dylib HandBrake/api ; cp -rp libhb/hb.h libhb/common.h libhb/ports.h HandBrake/api ; cp -rp HandBrakeCLI HandBrake ; hdiutil create -srcfolder HandBrake -format UDZO HandBrake-$(HB_VERSION)-MacOS_UB.dmg ; rm -rf HandBrake )
+
+gui-release:
+ (rm -rf HandBrake HandBrake*GUI_UB.dmg ; mkdir -p HandBrake/docs ; cp AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/docs ; cp -rp HandBrake.app HandBrake ; hdiutil create -srcfolder HandBrake -format UDBZ HandBrake-$(HB_VERSION)-MacOSX.4_GUI_UB.dmg ; rm -rf HandBrake )
+
+cli-release:
+ (rm -rf HandBrake HandBrake*CLI_UB.dmg ; mkdir -p HandBrake/docs ; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/docs ; cp -rp HandBrakeCLI HandBrake ; hdiutil create -srcfolder HandBrake -format UDZO HandBrake-$(HB_VERSION)-MacOSX.3_CLI_UB.dmg ; rm -rf HandBrake )
+
+gui-snapshot-release:
+ (rm -rf HandBrake HandBrake*GUI_UB.dmg ; mkdir -p HandBrake/docs ; cp AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/docs ; cp -rp HandBrake.app HandBrake ; hdiutil create -srcfolder HandBrake -format UDBZ HandBrake-$(SNAP_HB_VERSION)-MacOSX.5_GUI_UB.dmg ; rm -rf HandBrake )
+
+cli-snapshot-release:
+ (rm -rf HandBrake HandBrake*CLI_UB.dmg ; mkdir -p HandBrake/docs ; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/docs ; cp -rp HandBrakeCLI HandBrake ; hdiutil create -srcfolder HandBrake -format UDZO HandBrake-$(SNAP_HB_VERSION)-MacOSX.5_CLI_UB.dmg ; rm -rf HandBrake )
+
+endif
+
+#
+# Linux
+#
+ifeq ($(SYSTEM),Linux)
+
+all: contrib/.contrib libhb/libhb.a HandBrakeCLI
+ (rm -rf HandBrake HandBrake*.tar.gz ; mkdir -p HandBrake/api HandBrake/doc; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/doc ; cp -rp libhb/libhb.so HandBrake/api ; cp -rp libhb/hb.h libhb/common.h libhb/ports.h HandBrake/api ; cp -rp HandBrakeCLI HandBrake ; tar zcvf HandBrake-$(HB_VERSION)_i386.tar.gz HandBrake ; rm -rf HandBrake )
+
+contrib/.contrib:
+ @$(MAKE) --no-print-directory -C contrib all
+
+libhb/libhb.a: unstable-libhb/hbversion.h
+ @$(MAKE) --no-print-directory -C libhb all
+
+HandBrakeCLI:
+ @$(MAKE) --no-print-directory -C test all
+
+clean:
+ @$(MAKE) --no-print-directory -C libhb clean
+ @$(MAKE) --no-print-directory -C test clean
+ @rm libhb/hbversion.h
+
+mrproper: clean
+ @$(MAKE) --no-print-directory -C contrib mrproper
+
+endif
+
+#
+# Cygwin
+#
+ifeq ($(findstring CYGWIN_NT,$(SYSTEM)),CYGWIN_NT)
+
+all: contrib/.contrib libhb/libhb.a HandBrakeCLI
+
+app: contribPack libhb/libhb.a HandBrakeCLI
+
+contribPack:
+ (./DownloadCygWinContribBinaries.sh)
+
+contrib/.contrib:
+ @$(MAKE) --no-print-directory -C contrib all
+
+libhb/libhb.a: unstable-libhb/hbversion.h
+ @$(MAKE) --no-print-directory -C libhb all
+
+HandBrakeCLI:
+ @$(MAKE) --no-print-directory -C test all
+
+clean:
+ @$(MAKE) --no-print-directory -C libhb clean
+ @$(MAKE) --no-print-directory -C test clean
+ @rm libhb/hbversion.h
+
+mrproper: clean
+ @$(MAKE) --no-print-directory -C contrib mrproper
+
+endif
+
+libhb/hbversion.h:
+ echo "#ifndef HB_BUILD" > libhb/hbversion.h
+ echo "#define HB_BUILD $(HB_BUILD)" >> libhb/hbversion.h
+ echo "#endif" >> libhb/hbversion.h
+ echo "#ifndef HB_VERSION" >> libhb/hbversion.h
+ echo "#define HB_VERSION \"$(HB_VERSION)\"" >> libhb/hbversion.h
+ echo "#endif" >> libhb/hbversion.h
+ echo "#ifndef HB_APPCAST_URL" >> libhb/hbversion.h
+ echo "#define APPCAST_URL \"http://handbrake.fr/appcast.xml\"" >> libhb/hbversion.h
+ echo "#endif" >> libhb/hbversion.h
+
+unstable-libhb/hbversion.h:
+ echo "#ifndef HB_BUILD" > libhb/hbversion.h
+ echo "#define HB_BUILD $(SNAP_HB_BUILD)" >> libhb/hbversion.h
+ echo "#endif" >> libhb/hbversion.h
+ echo "#ifndef HB_VERSION" >> libhb/hbversion.h
+ echo "#define HB_VERSION \"$(SNAP_HB_VERSION)\"" >> libhb/hbversion.h
+ echo "#endif" >> libhb/hbversion.h
+ echo "#ifndef HB_APPCAST_URL" >> libhb/hbversion.h
+ echo "#define APPCAST_URL \"http://handbrake.fr/appcast_unstable.xml\"" >> libhb/hbversion.h
+ echo "#endif" >> libhb/hbversion.h
-THANKS file for HandBrake <http://handbrake.fr/>\r
-\r
-Several people noticeably contributed to MediaFork and HandBrake development\r
-without writing code (submitting/checking translations, DVD samples, etc).\r
-Let's thank them here!\r
-\r
-Chris (audley)\r
- + Inspiration and example of patching mpeg4ip for iPod atom support\r
-\r
-Omar Ahmad Bhatti\r
- + Intensive beta testing, suggestions. Convinced me to port HandBrake\r
- to OS X, which finally was a pretty good idea.\r
-\r
-Hanna Bauer\r
-Adrien Marquette\r
-Norbert Rittel\r
- + German translation\r
-\r
-Paul Bénéchet\r
-Luidgi Esposito\r
-Andrea Gianarro\r
-Emilio Gelosi\r
- + Italian translation\r
-\r
-Adam\r
- + Polish translation\r
-\r
-Nik Roby\r
- + Russian translation\r
-\r
-Leendert\r
- + Dutch translation\r
-\r
-Eric Kornblum\r
- + Sent me a sample DVD with LPCM tracks\r
-\r
-migol Superkid\r
- + Spanish translation\r
-\r
-pgjw\r
- + Portuguese translation\r
-\r
-cygma\r
- + Japanese translation\r
-\r
-Michelle De Sio\r
- + Sent me a sample DVD with MPEG audio tracks\r
-\r
-Ian Rickard\r
- + Enhanced icon\r
-\r
-Sébastien Noël\r
- + Debian packages (http://www.twolife.org/debian/repository.php)\r
-\r
-People who sent me an iTunes gift certificate: a BIG thanks!\r
-\r
+THANKS file for HandBrake <http://handbrake.fr/>
+
+Several people noticeably contributed to MediaFork and HandBrake development
+without writing code (submitting/checking translations, DVD samples, etc).
+Let's thank them here!
+
+Chris (audley)
+ + Inspiration and example of patching mpeg4ip for iPod atom support
+
+Omar Ahmad Bhatti
+ + Intensive beta testing, suggestions. Convinced me to port HandBrake
+ to OS X, which finally was a pretty good idea.
+
+Hanna Bauer
+Adrien Marquette
+Norbert Rittel
+ + German translation
+
+Paul Bénéchet
+Luidgi Esposito
+Andrea Gianarro
+Emilio Gelosi
+ + Italian translation
+
+Adam
+ + Polish translation
+
+Nik Roby
+ + Russian translation
+
+Leendert
+ + Dutch translation
+
+Eric Kornblum
+ + Sent me a sample DVD with LPCM tracks
+
+migol Superkid
+ + Spanish translation
+
+pgjw
+ + Portuguese translation
+
+cygma
+ + Japanese translation
+
+Michelle De Sio
+ + Sent me a sample DVD with MPEG audio tracks
+
+Ian Rickard
+ + Enhanced icon
+
+Sébastien Noël
+ + Debian packages (http://www.twolife.org/debian/repository.php)
+
+People who sent me an iTunes gift certificate: a BIG thanks!
+
-# Contrib Makefile\r
-\r
-SYSTEM = $(shell uname -s)\r
-\r
-# Special case for Mac OS X: everything is handled from the Xcode project\r
-ifeq ($(SYSTEM),Darwin)\r
-\r
-all: .contrib\r
-\r
-.contrib:\r
- ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; ../jam )\r
-\r
-clean: \r
- ( echo "Do a make mrproper to remove the contrib libraries )\r
-\r
-mrproper: \r
- (rm -rf lib ; rm -rf include )\r
-\r
-endif\r
-\r
-ifeq ($(SYSTEM),Linux)\r
-\r
-all: .contrib\r
-\r
-.contrib:\r
- ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; jam )\r
-\r
-clean: \r
- ( echo "Do a make mrproper to remove the contrib libraries )\r
-\r
-mrproper: \r
- (rm -rf lib ; rm -rf include )\r
-\r
-endif\r
-\r
-ifeq ($(findstring CYGWIN_NT,$(SYSTEM)),CYGWIN_NT)\r
-\r
-all: .contrib\r
-\r
-.contrib: \r
- ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; jam.exe )\r
-\r
-clean:\r
- ( echo "Do a make mrproper to remove the contrib libraries )\r
-\r
-mrproper: clean\r
- (rm -rf lib ; rm -rf include ; rm -f .contrib)\r
-\r
-endif\r
+# Contrib Makefile
+
+SYSTEM = $(shell uname -s)
+
+# Special case for Mac OS X: everything is handled from the Xcode project
+ifeq ($(SYSTEM),Darwin)
+
+all: .contrib
+
+.contrib:
+ ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; ../jam )
+
+clean:
+ ( echo "Do a make mrproper to remove the contrib libraries )
+
+mrproper:
+ (rm -rf lib ; rm -rf include )
+
+endif
+
+ifeq ($(SYSTEM),Linux)
+
+all: .contrib
+
+.contrib:
+ ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; jam )
+
+clean:
+ ( echo "Do a make mrproper to remove the contrib libraries )
+
+mrproper:
+ (rm -rf lib ; rm -rf include )
+
+endif
+
+ifeq ($(findstring CYGWIN_NT,$(SYSTEM)),CYGWIN_NT)
+
+all: .contrib
+
+.contrib:
+ ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; jam.exe )
+
+clean:
+ ( echo "Do a make mrproper to remove the contrib libraries )
+
+mrproper: clean
+ (rm -rf lib ; rm -rf include ; rm -f .contrib)
+
+endif
-SYSTEM = $(shell uname -s)\r
-\r
-LIBS = a52 mkv avformat avcodec avutil dca dvdread faac mp3lame mpeg2 vorbis \\r
- vorbisenc ogg samplerate x264 xvidcore mp4v2 swscale theora faad\r
-\r
-all: ../HandBrakeCLI\r
-\r
-CFLAGS += -I../libhb\r
-CXXFLAGS += -I../libhb\r
-LIBS2 = ../libhb/libhb.a $(LIBS:%=../contrib/lib/lib%.a)\r
-LDFLAGS += $(LIBS2) -lbz2 -ldl\r
-\r
-../HandBrakeCLI: test.c parsecsv.c $(LIBS2)\r
- @CMD="$(CC) $(CFLAGS) -o test.o -c test.c"; $$CMD || \\r
- ( echo "Compile line for $@ was:"; echo $$CMD; false )\r
- @CMD="$(CC) $(CFLAGS) -o parsecsv.o -c parsecsv.c"; $$CMD || \\r
- ( echo "Compile line for $@ was:"; echo $$CMD; false )\r
- @echo "Link HandBrakeCLI"\r
- @CMD="g++ $(CXXFLAGS) -o ../HandBrakeCLI test.o parsecsv.o $(LDFLAGS) -lz -lpthread"; $$CMD || \\r
- ( echo "Compile line for $@ was:"; echo $$CMD; false )\r
- @CMD="rm -rf ../plugins ; mkdir ../plugins ; cp ../contrib/lib/libquicktime/* ../plugins"; $$CMD\r
-\r
-\r
-clean:\r
- @echo "Clean HandBrakeCLI"\r
- @$(RM) ../HandBrakeCLI \r
- @$(RM) ../HandBrakeCLI.exe\r
- @$(RM) *.o\r
-\r
+SYSTEM = $(shell uname -s)
+
+LIBS = a52 mkv avformat avcodec avutil dca dvdread faac mp3lame mpeg2 vorbis \
+ vorbisenc ogg samplerate x264 xvidcore mp4v2 swscale theora faad
+
+all: ../HandBrakeCLI
+
+CFLAGS += -I../libhb
+CXXFLAGS += -I../libhb
+LIBS2 = ../libhb/libhb.a $(LIBS:%=../contrib/lib/lib%.a)
+LDFLAGS += $(LIBS2) -lbz2 -ldl
+
+../HandBrakeCLI: test.c parsecsv.c $(LIBS2)
+ @CMD="$(CC) $(CFLAGS) -o test.o -c test.c"; $$CMD || \
+ ( echo "Compile line for $@ was:"; echo $$CMD; false )
+ @CMD="$(CC) $(CFLAGS) -o parsecsv.o -c parsecsv.c"; $$CMD || \
+ ( echo "Compile line for $@ was:"; echo $$CMD; false )
+ @echo "Link HandBrakeCLI"
+ @CMD="g++ $(CXXFLAGS) -o ../HandBrakeCLI test.o parsecsv.o $(LDFLAGS) -lz -lpthread"; $$CMD || \
+ ( echo "Compile line for $@ was:"; echo $$CMD; false )
+ @CMD="rm -rf ../plugins ; mkdir ../plugins ; cp ../contrib/lib/libquicktime/* ../plugins"; $$CMD
+
+
+clean:
+ @echo "Clean HandBrakeCLI"
+ @$(RM) ../HandBrakeCLI
+ @$(RM) ../HandBrakeCLI.exe
+ @$(RM) *.o
+