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 LANGUAGES = fr de it pl ru nl es pt ja ;
36 # Build HandBrake.app using Xcode --
37 # Getting the right version and build numbers
38 # requires editing the .plist and specifying
44 Clean clean : $(1) macosx/build ;
48 $(RM) $(<) macosx/build/HandBrake.app && \
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 ) \
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)"
87 BuildBeOSPackage $(<) ;
89 actions BuildBeOSPackage
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)"