Skip to content

Commit 4e328e2

Browse files
authored
Make fontconfig cross aware
1 parent 598a8a2 commit 4e328e2

File tree

4 files changed

+9
-18
lines changed

4 files changed

+9
-18
lines changed

ffmpeg-cxc-mingw64

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
SCRIPT_VERSION="1.7.1"
3+
SCRIPT_VERSION="1.7.3"
44
THIS="ffmpeg-cxc-mingw64"
55

66
#build paths
@@ -462,15 +462,16 @@ fi
462462
#test and fix cross for cygwin build environment
463463
if [[ "$CXC_OS" == *cygwin* ]]
464464
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"
467465
if [[ "$PATH" == *x86_64*mingw*sys-root*mingw/bin* ]]
468466
then
469467
CXC_BUILD='--build=x86_64-pc-cygwin'
470468
else
471469
build_die "$THIS: mingw 'sys-root/bin' must be in PATH"
472470
fi
473471
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'
474475
fi
475476

476477
#display the detected system type and hints file in use
@@ -560,15 +561,6 @@ then
560561
if [ "$BUILD" -ne 0 ]
561562
then
562563
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
572564
mkdir "$SRC_NAME"_build
573565
cd "$SRC_NAME"_build
574566
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,7 +593,7 @@ then
601593
then
602594
cd_source
603595
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
605597
[ $? -eq 0 ] || build_die "$THIS: configure stage failed -> $SRC_NAME"
606598
build_make $CXC_JOBS
607599
fi
@@ -668,7 +660,6 @@ then
668660
if [ "$BUILD" -ne 0 ]
669661
then
670662
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
672663
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 .
673664
[ $? -eq 0 ] || build_die "$THIS: configure stage failed -> $SRC_NAME"
674665
build_make $CXC_JOBS

ffmpeg-native

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
SCRIPT_VERSION="1.7.2"
3+
SCRIPT_VERSION="1.7.3"
44
THIS="ffmpeg-native"
55

66
#build paths
@@ -564,7 +564,7 @@ then
564564
then
565565
cd_source
566566
autoreconf -fiv
567-
./configure --prefix="$ROOT_PATH/$OUT_PATH" CFLAGS="$NCC_OPTIM $NCC_CFLAGS" CXXFLAGS="$NCC_OPTIM $NCC_CFLAGS" CPPFLAGS="$NCC_CPPFLAGS" --enable-static --disable-shared --disable-docs --enable-libxml2
567+
./configure --prefix="$ROOT_PATH/$OUT_PATH" CFLAGS="$NCC_OPTIM $NCC_CFLAGS" CXXFLAGS="$NCC_OPTIM $NCC_CFLAGS" CPPFLAGS="$NCC_CPPFLAGS" --enable-static --disable-shared --disable-docs --enable-libxml2 --disable-nls
568568
[ $? -eq 0 ] || build_die "$THIS: configure stage failed -> $SRC_NAME"
569569
build_make $NCC_JOBS
570570
fi

get-repo-cur-rev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ do
4646
;;
4747
esac
4848

49-
done < <(find "$fpath" -mindepth 2 -maxdepth 2 -type d -name ".git" -o -name ".svn" -o -name ".hg")
49+
done < <(find "$fpath" -mindepth 2 -maxdepth 2 -type d -name ".git" -o -name ".svn" -o -name ".hg" | sort)

update-repo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ do
5656
;;
5757
esac
5858

59-
done < <(find "$fpath" -mindepth 2 -maxdepth 2 -type d -name ".git" -o -name ".svn" -o -name ".hg")
59+
done < <(find "$fpath" -mindepth 2 -maxdepth 2 -type d -name ".git" -o -name ".svn" -o -name ".hg" | sort)

0 commit comments

Comments
 (0)