# $Id: Jamrules,v 1.59 2005/11/04 16:06:21 titer Exp $ # # This file is part of the HandBrake source code. # Homepage: . # It may be used under the terms of the GNU General Public License. include config.jam ; if ! $(DEFINES) { Exit "Please run ./configure first." ; } HB_VERSION = 0.8.0b1 ; HB_BUILD = 20060923 ; DEFINES += HB_VERSION=\\\"$(HB_VERSION)\\\" HB_BUILD=$(HB_BUILD) ; LANGUAGES = fr de it pl ru nl es pt ja ; RM = rm -rf ; # Build MediaFork.app using Xcode rule OSXApp { Depends exe : $(<) ; Depends $(<) : $(>) ; Clean clean : $(1) macosx/build ; } actions OSXApp { $(RM) $(<) macosx/build/MediaFork.app && \ ( cd macosx && xcodebuild -alltargets ) && \ mv macosx/build/Default/MediaFork.app $(<) && \ for i in $(LANGUAGES) ; do \ ( cd $(<)/Contents/Resources && \ cp -r English.lproj $i.lproj && \ cp ../../../macosx/i18n/$i.strings \ $i.lproj/Localizable.strings ) \ done ; } rule OSXPackage { Depends $(<) : $(>) ; } actions OSXPackage { rm -rf $(<) "MediaFork $(HB_VERSION)" && \ mkdir "MediaFork $(HB_VERSION)" && \ cp AUTHORS "MediaFork $(HB_VERSION)/AUTHORS.txt" && \ cp COPYING "MediaFork $(HB_VERSION)/COPYING.txt" && \ cp CREDITS "MediaFork $(HB_VERSION)/CREDITS.txt" && \ cp THANKS "MediaFork $(HB_VERSION)/THANKS.txt" && \ ( echo "[InternetShortcut]" && \ echo "URL=http://handbrake.m0k.org/" ) > \ "MediaFork $(HB_VERSION)/MediaFork Homepage.url" && \ ( echo "[InternetShortcut]" && \ echo "URL=http://handbrake.m0k.org/forum/" ) > \ "MediaFork $(HB_VERSION)/MediaFork Forums.url" && \ ( echo "[InternetShortcut]" && \ echo "URL=http://handbrake.m0k.org/contribute.php" ) > \ "MediaFork $(HB_VERSION)/Contribute.url" && \ cp -r MediaFork.app "MediaFork $(HB_VERSION)" && \ zip -9 -r $(<) "MediaFork $(HB_VERSION)" && \ rm -rf "MediaFork $(HB_VERSION)" } rule BeOSPackage { Depends $(<) : $(>) ; BuildBeOSPackage $(<) ; } actions BuildBeOSPackage { rm -rf $(<) "HandBrake $(HB_VERSION)" && \ mkdir "HandBrake $(HB_VERSION)" && \ cp AUTHORS "HandBrake $(HB_VERSION)/AUTHORS.txt" && \ cp COPYING "HandBrake $(HB_VERSION)/COPYING.txt" && \ cp CREDITS "HandBrake $(HB_VERSION)/CREDITS.txt" && \ cp THANKS "HandBrake $(HB_VERSION)/THANKS.txt" && \ xres -o HandBrake beos/HandBrake.rsrc && \ cp HandBrake "HandBrake $(HB_VERSION)" && \ zip -9 -r $(<) "HandBrake $(HB_VERSION)" && \ rm -rf "HandBrake $(HB_VERSION)" }