OSDN Git Service

Put the correct subtitle language in the Queue for the Mac GUI.
[handbrake-jp/handbrake-jp-git.git] / Jamrules
1 # $Id: Jamrules,v 1.59 2005/11/04 16:06:21 titer Exp $
2 #
3 # This file is part of the HandBrake source code.
4 # Homepage: <http://handbrake.m0k.org/>.
5 # It may be used under the terms of the GNU General Public License.
6
7 include config.jam ;
8
9 if ! $(DEFINES)
10 {
11     Exit "Please run ./configure first." ;
12 }
13
14 HB_VERSION  = 0.9.1 ;
15 HB_BUILD    = 2007100800 ;
16 DEFINES    += HB_VERSION=\\\"$(HB_VERSION)\\\" HB_BUILD=$(HB_BUILD) ;
17 LANGUAGES   = fr de it pl ru nl es pt ja ;
18 RM          = rm -rf ;
19
20 # Build HandBrake.app using Xcode
21 rule OSXApp
22 {
23     Depends     exe   : $(<) ;
24     Depends     $(<)  : $(>) ;
25     Clean       clean : $(1) macosx/build ;
26 }
27 actions OSXApp
28 {
29     $(RM) $(<) macosx/build/HandBrake.app && \
30       ( cd macosx && xcodebuild -target libhb -target HandBrake -target HandBrakeCLI ) && \
31       for i in $(LANGUAGES) ; do \
32         ( cd $(<)/Contents/Resources && \
33           cp -r English.lproj $i.lproj && \
34           cp ../../../macosx/i18n/$i.strings \
35             $i.lproj/Localizable.strings ) \
36       done ;
37 }
38 rule OSXPackage 
39 {
40     Depends $(<) : $(>) ;
41 }   
42 actions OSXPackage
43 {                 
44     rm -rf $(<) "HandBrake $(HB_VERSION)" && \
45       mkdir "HandBrake $(HB_VERSION)" && \
46       cp AUTHORS "HandBrake $(HB_VERSION)/AUTHORS.txt" && \
47       cp COPYING "HandBrake $(HB_VERSION)/COPYING.txt" && \
48       cp CREDITS "HandBrake $(HB_VERSION)/CREDITS.txt" && \
49       cp THANKS "HandBrake $(HB_VERSION)/THANKS.txt" && \
50       ( echo "[InternetShortcut]" && \
51         echo "URL=http://handbrake.m0k.org/" ) > \
52         "HandBrake $(HB_VERSION)/HandBrake Homepage.url" && \
53       ( echo "[InternetShortcut]" && \
54         echo "URL=http://handbrake.m0k.org/forum/" ) > \
55         "HandBrake $(HB_VERSION)/HandBrake Forums.url" && \
56       ( echo "[InternetShortcut]" && \
57         echo "URL=http://handbrake.m0k.org/contribute.php" ) > \
58         "HandBrake $(HB_VERSION)/Contribute.url" && \
59       cp -r HandBrake.app "HandBrake $(HB_VERSION)" && \
60       zip -9 -r $(<) "HandBrake $(HB_VERSION)" && \
61       rm -rf "HandBrake $(HB_VERSION)"
62 }
63
64 rule BeOSPackage 
65 {
66     Depends         $(<) : $(>) ;
67     BuildBeOSPackage $(<) ;
68 }   
69 actions BuildBeOSPackage
70 {                 
71     rm -rf $(<) "HandBrake $(HB_VERSION)" && \
72       mkdir "HandBrake $(HB_VERSION)" && \
73       cp AUTHORS "HandBrake $(HB_VERSION)/AUTHORS.txt" && \
74       cp COPYING "HandBrake $(HB_VERSION)/COPYING.txt" && \
75       cp CREDITS "HandBrake $(HB_VERSION)/CREDITS.txt" && \
76       cp THANKS "HandBrake $(HB_VERSION)/THANKS.txt" && \
77       xres -o HandBrake beos/HandBrake.rsrc && \
78       cp HandBrake "HandBrake $(HB_VERSION)" && \
79       zip -9 -r $(<) "HandBrake $(HB_VERSION)" && \
80       rm -rf "HandBrake $(HB_VERSION)"
81 }