OSDN Git Service

fix CLI version reader, and translate some x264 panel's tooltip
[handbrake-jp/handbrake-jp.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.fr/>.
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 # This line needs to be manually bumped for each release.
15 HB_VERSION  = 0.9.3-jp ;
16
17 # If the user configured with the --snapshot argument,
18 # generate  version and build numbers that include
19 # the svn revision and are marked as unstable.
20 if $(SNAPSHOT) = 1
21 {
22 HB_VERSION = "svn$(SVN_REV)" ;
23 HB_BUILD = "$(BUILD_DATE)01" ;
24 APPCAST_URL = "http://handbrake.fr/appcast_unstable.xml" ;
25 }
26 else
27 {
28 HB_BUILD = "$(BUILD_DATE)00" ;
29 # APPCAST_URL = "http://handbrake.fr/appcast.xml" ;
30 APPCAST_URL = "http://sourceforge.jp/projects/handbrake-jp/docs/appcast_unstable.xml" ;
31 }
32
33 DEFINES    += HB_VERSION=\\\"$(HB_VERSION)\\\" HB_BUILD=$(HB_BUILD) ;
34 LANGUAGES   = fr de it pl ru nl es pt ja ;
35 RM          = rm -rf ;
36
37 # Build HandBrake.app using Xcode --
38 # Getting the right version and build numbers
39 # requires editing the .plist and specifying
40 # extra CFLAGs.
41 rule OSXApp
42 {
43     Depends     exe   : $(<) ;
44     Depends     $(<)  : $(>) ;
45     Clean       clean : $(1) macosx/build ;
46 }
47 actions OSXApp
48 {
49     $(RM) $(<) macosx/build/HandBrake.app && \
50       ( cd macosx && \
51         xcodebuild HB_BUILD="$(HB_BUILD)" HB_VERSION="$(HB_VERSION)" APPCAST_URL="$(APPCAST_URL)" -target libhb -target HandBrake -target HandBrakeCLI ) && \
52       for i in $(LANGUAGES) ; do \
53         ( cd $(<)/Contents/Resources && \
54           cp -r English.lproj $i.lproj && \
55           cp ../../../macosx/i18n/$i.strings \
56             $i.lproj/Localizable.strings ) \
57       done ;
58 }
59 rule OSXPackage 
60 {
61     Depends $(<) : $(>) ;
62 }   
63 actions OSXPackage
64 {                 
65     rm -rf $(<) "HandBrake $(HB_VERSION)" && \
66       mkdir "HandBrake $(HB_VERSION)" && \
67       cp AUTHORS "HandBrake $(HB_VERSION)/AUTHORS.txt" && \
68       cp COPYING "HandBrake $(HB_VERSION)/COPYING.txt" && \
69       cp CREDITS "HandBrake $(HB_VERSION)/CREDITS.txt" && \
70       cp THANKS "HandBrake $(HB_VERSION)/THANKS.txt" && \
71       ( echo "[InternetShortcut]" && \
72         echo "URL=http://handbrake.fr/" ) > \
73         "HandBrake $(HB_VERSION)/HandBrake Homepage.url" && \
74       ( echo "[InternetShortcut]" && \
75         echo "URL=http://forum.handbrake,fr/" ) > \
76         "HandBrake $(HB_VERSION)/HandBrake Forums.url" && \
77       ( echo "[InternetShortcut]" && \
78         echo "URL=http://handbrake.fr/?article=development" ) > \
79         "HandBrake $(HB_VERSION)/Contribute.url" && \
80       cp -r HandBrake.app "HandBrake $(HB_VERSION)" && \
81       zip -9 -r $(<) "HandBrake $(HB_VERSION)" && \
82       rm -rf "HandBrake $(HB_VERSION)"
83 }
84
85 rule BeOSPackage 
86 {
87     Depends         $(<) : $(>) ;
88     BuildBeOSPackage $(<) ;
89 }   
90 actions BuildBeOSPackage
91 {                 
92     rm -rf $(<) "HandBrake $(HB_VERSION)" && \
93       mkdir "HandBrake $(HB_VERSION)" && \
94       cp AUTHORS "HandBrake $(HB_VERSION)/AUTHORS.txt" && \
95       cp COPYING "HandBrake $(HB_VERSION)/COPYING.txt" && \
96       cp CREDITS "HandBrake $(HB_VERSION)/CREDITS.txt" && \
97       cp THANKS "HandBrake $(HB_VERSION)/THANKS.txt" && \
98       xres -o HandBrake beos/HandBrake.rsrc && \
99       cp HandBrake "HandBrake $(HB_VERSION)" && \
100       zip -9 -r $(<) "HandBrake $(HB_VERSION)" && \
101       rm -rf "HandBrake $(HB_VERSION)"
102 }