1 # $Id: Jamrules,v 1.59 2005/11/04 16:06:21 titer Exp $
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.
11 Exit "Please run ./configure first." ;
14 # This line needs to be manually bumped for each release.
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.
22 HB_VERSION = "svn$(SVN_REV)" ;
23 HB_BUILD = "$(BUILD_DATE)01" ;
24 APPCAST_URL = "http://handbrake.fr/appcast_unstable.xml" ;
28 HB_BUILD = "$(BUILD_DATE)00" ;
29 APPCAST_URL = "http://handbrake.fr/appcast.xml" ;
32 DEFINES += HB_VERSION=\\\"$(HB_VERSION)\\\" HB_BUILD=$(HB_BUILD) ;
33 DEFINES += APPCAST_URL=\\\"$(APPCAST_URL)\\\" ;
34 LANGUAGES = fr de it pl ru nl es pt ja ;
37 # Build HandBrake.app using Xcode --
38 # Getting the right version and build numbers
39 # requires editing the .plist and specifying
45 Clean clean : $(1) macosx/build ;
49 $(RM) $(<) macosx/build/HandBrake.app && \
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 ) \
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)"
88 BuildBeOSPackage $(<) ;
90 actions BuildBeOSPackage
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)"