|
1 | 1 | #!/bin/bash
|
2 | 2 |
|
3 |
| -SCRIPT_VERSION="1.7.1" |
| 3 | +SCRIPT_VERSION="1.7.3" |
4 | 4 | THIS="ffmpeg-cxc-mingw64"
|
5 | 5 |
|
6 | 6 | #build paths
|
|
462 | 462 | #test and fix cross for cygwin build environment
|
463 | 463 | if [[ "$CXC_OS" == *cygwin* ]]
|
464 | 464 | then
|
465 |
| - find /usr -ipath "*x86_64*mingw*sys-root*mingw/bin/iconv.dll" 2> /dev/null | grep -Ev "^$" &> /dev/null |
466 |
| - [ $? -eq 0 ] || build_die "$THIS: mingw win-iconv package is required and not found in PATH" |
467 | 465 | if [[ "$PATH" == *x86_64*mingw*sys-root*mingw/bin* ]]
|
468 | 466 | then
|
469 | 467 | CXC_BUILD='--build=x86_64-pc-cygwin'
|
470 | 468 | else
|
471 | 469 | build_die "$THIS: mingw 'sys-root/bin' must be in PATH"
|
472 | 470 | fi
|
473 | 471 | build_message BM_YELLOW "$THIS: Cygwin build detected - ensure sys-root contains a symlink to construct a valid path for '$OUT_PATH/include'"
|
| 472 | +elif [[ "$CXC_OS" == *linux* ]] |
| 473 | +then |
| 474 | + CXC_BUILD='--build=x86_64-pc-linux-gnu' |
474 | 475 | fi
|
475 | 476 |
|
476 | 477 | #display the detected system type and hints file in use
|
@@ -560,15 +561,6 @@ then
|
560 | 561 | if [ "$BUILD" -ne 0 ]
|
561 | 562 | then
|
562 | 563 | CXC_CPPFLAGS="$CXC_CPPFLAGS -DFRIBIDI_LIB_STATIC"
|
563 |
| - |
564 |
| - #autotools |
565 |
| - #cd_source |
566 |
| - #autoreconf -fiv |
567 |
| - #./configure --prefix="$ROOT_PATH/$OUT_PATH" CFLAGS="$CXC_OPTIM $CXC_CFLAGS" CXXFLAGS="$CXC_OPTIM $CXC_CFLAGS" CPPFLAGS="$CXC_CPPFLAGS" --host="$CXC_HOST" --enable-static --disable-shared |
568 |
| - #[ $? -eq 0 ] || build_die "$THIS: configure stage failed -> $SRC_NAME" |
569 |
| - #build_make $CXC_JOBS -C lib |
570 |
| - |
571 |
| - #meson |
572 | 564 | mkdir "$SRC_NAME"_build
|
573 | 565 | cd "$SRC_NAME"_build
|
574 | 566 | meson --prefix="$ROOT_PATH/$OUT_PATH" -Ddefault_library=static --bindir="$ROOT_PATH/$OUT_PATH/bin" --libdir="$ROOT_PATH/$OUT_PATH/lib" --buildtype=release -Ddocs=false -Dtests=false --strip --cross-file="$ROOT_PATH/$SRC_PATH/cross.meson" "../$SRC_NAME"
|
|
601 | 593 | then
|
602 | 594 | cd_source
|
603 | 595 | autoreconf -fiv
|
604 |
| - ./configure --prefix="$ROOT_PATH/$OUT_PATH" CFLAGS="$CXC_OPTIM $CXC_CFLAGS" CXXFLAGS="$CXC_OPTIM $CXC_CFLAGS" CPPFLAGS="$CXC_CPPFLAGS" --host="$CXC_HOST" --enable-static --disable-shared --disable-docs --enable-libxml2 |
| 596 | + ./configure --prefix="$ROOT_PATH/$OUT_PATH" CFLAGS="$CXC_OPTIM $CXC_CFLAGS" CXXFLAGS="$CXC_OPTIM $CXC_CFLAGS" CPPFLAGS="$CXC_CPPFLAGS" --host="$CXC_HOST" "$CXC_BUILD" --enable-static --disable-shared --disable-docs --enable-libxml2 --disable-nls |
605 | 597 | [ $? -eq 0 ] || build_die "$THIS: configure stage failed -> $SRC_NAME"
|
606 | 598 | build_make $CXC_JOBS
|
607 | 599 | fi
|
|
668 | 660 | if [ "$BUILD" -ne 0 ]
|
669 | 661 | then
|
670 | 662 | cd_source "fftw-"
|
671 |
| - #./configure --prefix="$ROOT_PATH/$OUT_PATH" CFLAGS="$CXC_OPTIM $CXC_CFLAGS" CXXFLAGS="$CXC_OPTIM $CXC_CFLAGS" CPPFLAGS="$CXC_CPPFLAGS" --enable-static --disable-shared --disable-fortran --disable-doc |
672 | 663 | cmake -DCMAKE_INSTALL_PREFIX="$ROOT_PATH/$OUT_PATH" -DCMAKE_TOOLCHAIN_FILE="$ROOT_PATH/$SRC_PATH/cross.cmake" -DCMAKE_FIND_ROOT_PATH="$ROOT_PATH/$OUT_PATH" -DBUILD_SHARED_LIBS=0 -DBUILD_TESTS=0 -DDISABLE_FORTRAN=1 .
|
673 | 664 | [ $? -eq 0 ] || build_die "$THIS: configure stage failed -> $SRC_NAME"
|
674 | 665 | build_make $CXC_JOBS
|
|
0 commit comments