Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

45 lignes
1.8 KiB

  1. WINE_LIBSNDFILE_PATH=~/.wine/drive_c/Program\ Files/Mega-Nerd/libsndfile
  2. TEMP_PATH=/tmp/windows_build
  3. # Compile zlib
  4. git clone https://github.com/madler/zlib && cd zlib
  5. mkdir build && cd build
  6. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$TEMP_PATH ..
  7. make -j4
  8. make install
  9. cd ../../
  10. # Compile libpng
  11. git clone https://github.com/glennrp/libpng && cd libpng
  12. mkdir build && cd build
  13. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$TEMP_PATH ..
  14. make -j4
  15. make install
  16. cd ../../
  17. # Download libsndfile (compiling from source is an absolute bitch)
  18. if [[ ! -e $WINE_LIBSNDFILE_PATH ]]; then
  19. wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28-w64-setup.exe
  20. echo "This build script has guessed that you don't have libsndfile installed under wine, the libsndfile installer will be launched"
  21. read
  22. wine libsndfile-1.0.28-w64-setup.exe
  23. fi
  24. if [[ ! -e $WINE_LIBSNDFILE_PATH ]]; then
  25. echo "Something went wrong installing libsndfile"
  26. exit
  27. fi
  28. cp "$WINE_LIBSNDFILE_PATH/lib/libsndfile-1.def" $TEMP_PATH/lib/libsndfile-1.def
  29. cp "$WINE_LIBSNDFILE_PATH/lib/libsndfile-1.lib" $TEMP_PATH/lib/libsndfile-1.lib
  30. cp "$WINE_LIBSNDFILE_PATH/lib/pkgconfig/sndfile.pc" $TEMP_PATH/lib/pkgconfig/sndfile.pc
  31. cp "$WINE_LIBSNDFILE_PATH/bin/libsndfile-1.dll" $TEMP_PATH/bin/libsndfile-1.dll
  32. cp "$WINE_LIBSNDFILE_PATH/include/sndfile.h" $TEMP_PATH/include/sndfile.h
  33. sed -i "s/c:\/devel\/target\/libsndfile/$(echo $TEMP_PATH | sed 's/\//\\\//g')/g" $TEMP_PATH/lib/pkgconfig/sndfile.pc
  34. mkdir build && cd build
  35. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$TEMP_PATH ..
  36. cp $TEMP_PATH/bin/*.dll ./
  37. echo "Done, you should have a executable called aptdec.exe"