OSDN Git Service

import 0.9.4
[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 ;
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 }
31
32 DEFINES    += HB_VERSION=\\\"$(HB_VERSION)\\\" HB_BUILD=$(HB_BUILD) ;
33 LANGUAGES   = fr de it pl ru nl es pt ja ;
34 RM          = rm -rf ;
35
36 # Build HandBrake.app using Xcode --
37 # Getting the right version and build numbers
38 # requires editing the .plist and specifying
39 # extra CFLAGs.
40 rule OSXApp
41 {
42     Depends     exe   : $(<) ;
43     Depends     $(<)  : $(>) ;
44     Clean       clean : $(1) macosx/build ;
45 }
46 actions OSXApp
47 {
48     $(RM) $(<) macosx/build/HandBrake.app && \
49       ( cd macosx && \
50         xcodebuild HB_BUILD="$(HB_BUILD)" HB_VERSION="$(HB_VERSION)" APPCAST_URL="$(APPCAST_URL)" -target libhb -target HandBrake -target HandBrakeCLI ) && \
51       for i in $(LANGUAGES) ; do \
52         ( cd $(<)/Contents/Resources && \
53           cp -r English.lproj $i.lproj && \
54           cp ../../../macosx/i18n/$i.strings \
55             $i.lproj/Localizable.strings ) \
56       done ;
57 }
58 rule OSXPackage 
59 {
60     Depends $(<) : $(>) ;
61 }   
62 actions OSXPackage
63 {                 
64     rm -rf $(<) "HandBrake $(HB_VERSION)" && \
65       mkdir "HandBrake $(HB_VERSION)" && \
66       cp AUTHORS "HandBrake $(HB_VERSION)/AUTHORS.txt" && \
67       cp COPYING "HandBrake $(HB_VERSION)/COPYING.txt" && \
68       cp CREDITS "HandBrake $(HB_VERSION)/CREDITS.txt" && \
69       cp THANKS "HandBrake $(HB_VERSION)/THANKS.txt" && \
70       ( echo "[InternetShortcut]" && \
71         echo "URL=http://handbrake.fr/" ) > \
72         "HandBrake $(HB_VERSION)/HandBrake Homepage.url" && \
73       ( echo "[InternetShortcut]" && \
74         echo "URL=http://forum.handbrake,fr/" ) > \
75         "HandBrake $(HB_VERSION)/HandBrake Forums.url" && \
76       ( echo "[InternetShortcut]" && \
77         echo "URL=http://handbrake.fr/?article=development" ) > \
78         "HandBrake $(HB_VERSION)/Contribute.url" && \
79       cp -r HandBrake.app "HandBrake $(HB_VERSION)" && \
80       zip -9 -r $(<) "HandBrake $(HB_VERSION)" && \
81       rm -rf "HandBrake $(HB_VERSION)"
82 }
83
84 rule BeOSPackage 
85 {
86     Depends         $(<) : $(>) ;
87     BuildBeOSPackage $(<) ;
88 }   
89 actions BuildBeOSPackage
90 {                 
91     rm -rf $(<) "HandBrake $(HB_VERSION)" && \
92       mkdir "HandBrake $(HB_VERSION)" && \
93       cp AUTHORS "HandBrake $(HB_VERSION)/AUTHORS.txt" && \
94       cp COPYING "HandBrake $(HB_VERSION)/COPYING.txt" && \
95       cp CREDITS "HandBrake $(HB_VERSION)/CREDITS.txt" && \
96       cp THANKS "HandBrake $(HB_VERSION)/THANKS.txt" && \
97       xres -o HandBrake beos/HandBrake.rsrc && \
98       cp HandBrake "HandBrake $(HB_VERSION)" && \
99       zip -9 -r $(<) "HandBrake $(HB_VERSION)" && \
100       rm -rf "HandBrake $(HB_VERSION)"
101 }