forked from mean00/avidemux2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn://svn.berlios.de/avidemux/branches/avidemux_2.6_branch_mean@7994 30592fff-cfd4-0310-bf0e-8235a3c7be26
- Loading branch information
gruntster
committed
May 31, 2012
1 parent
84e6f12
commit e0f6a93
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
@echo off | ||
|
||
echo MSYS build for twolame | ||
echo ====================== | ||
echo 1. 32-bit build | ||
echo 2. 64-bit build | ||
echo X. Exit | ||
echo. | ||
|
||
choice /c 12x | ||
|
||
if errorlevel 1 set BuildBits=32 | ||
if errorlevel 2 set BuildBits=64 | ||
if errorlevel 3 goto :eof | ||
|
||
verify >nul | ||
call "../Set Common Environment Variables" | ||
if errorlevel 1 goto end | ||
|
||
set version=0.3.13 | ||
set package=twolame-%version%.tar.gz | ||
set sourceFolder=twolame-%version%-%BuildBits% | ||
set tarFolder=twolame-%version% | ||
set curDir=%CD% | ||
set PATH=%PATH%;%msysDir%\bin | ||
|
||
if not exist %package% ( | ||
echo. | ||
echo Downloading | ||
wget http://sourceforge.net/projects/twolame/files/twolame/%version%/%package%/download | ||
) | ||
|
||
if errorlevel 1 goto end | ||
|
||
echo. | ||
echo Preparing | ||
rm -r -f "%devDir%\%sourceFolder%" | ||
if errorlevel 1 goto end | ||
|
||
mkdir "%devDir%\%sourceFolder%" | ||
if errorlevel 1 goto end | ||
|
||
tar xfz "%package%" -C "%devDir%\\%sourceFolder%" | ||
if errorlevel 1 goto end | ||
cd "%devDir%\%sourceFolder%" | ||
|
||
for /f "delims=" %%a in ('dir /b %tarFolder%') do ( | ||
move "%CD%\%tarFolder%\%%a" "%CD%" | ||
) | ||
|
||
echo. | ||
echo Configuring | ||
|
||
sh ./configure --prefix="%usrLocalDir%" --disable-static | ||
|
||
if errorlevel 1 goto end | ||
echo. | ||
pause | ||
|
||
make CFLAGS="-O3 -DLIBTWOLAME_DLL_EXPORTS" LDFLAGS="-no-undefined" install-strip | ||
if errorlevel 1 goto end | ||
|
||
copy "%usrLocalDir%\bin\libtwolame-0.dll" "%admBuildDir%" | ||
|
||
goto end | ||
|
||
:error | ||
echo Error | ||
|
||
:end | ||
pause |