@@ -220,6 +220,7 @@ mkdir -p "$PACKAGES"
220
220
mkdir -p " $WORKSPACE "
221
221
222
222
export PATH=" ${WORKSPACE} /bin:$PATH "
223
+ export PKG_CONFIG_PATH=" /usr/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig"
223
224
224
225
if ! command_exists " make" ; then
225
226
echo " make not installed." ;
@@ -338,7 +339,7 @@ if build "libvpx"; then
338
339
sed " s/-Wl,--no-undefined -Wl,-soname/-Wl,-undefined,error -Wl,-install_name/g" build/make/Makefile.patched > build/make/Makefile
339
340
fi
340
341
341
- execute ./configure --prefix=" ${WORKSPACE} " --disable-unit-tests --disable-shared
342
+ execute ./configure --prefix=" ${WORKSPACE} " --disable-unit-tests --disable-shared --as=yasm
342
343
execute make -j $MJOBS
343
344
execute make install
344
345
@@ -367,7 +368,7 @@ CONFIGURE_OPTIONS+=("--enable-libxvid")
367
368
368
369
if build " vid_stab" ; then
369
370
download " https://github.com/georgmartius/vid.stab/archive/v1.1.0.tar.gz" " vid.stab-1.1.0.tar.gz"
370
- execute cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX:PATH =" ${WORKSPACE} " -DUSE_OMP=OFF -DENABLE_SHARED:bool =off .
371
+ execute cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DUSE_OMP=OFF -DENABLE_SHARED=off .
371
372
execute make
372
373
execute make install
373
374
@@ -380,7 +381,7 @@ if build "av1"; then
380
381
download " https://aomedia.googlesource.com/aom/+archive/430d58446e1f71ec2283af0d6c1879bc7a3553dd.tar.gz" " av1.tar.gz" " av1"
381
382
make_dir " $PACKAGES " /aom_build
382
383
cd " $PACKAGES " /aom_build || exit
383
- execute cmake -DENABLE_TESTS=0 -DCMAKE_INSTALL_PREFIX:PATH =" ${WORKSPACE} " " $PACKAGES " /av1
384
+ execute cmake -DENABLE_TESTS=0 -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DCMAKE_INSTALL_LIBDIR=lib " $PACKAGES " /av1
384
385
execute make -j $MJOBS
385
386
execute make install
386
387
@@ -474,7 +475,7 @@ if build "srt"; then
474
475
export OPENSSL_ROOT_DIR=" ${WORKSPACE} "
475
476
export OPENSSL_LIB_DIR=" ${WORKSPACE} " /lib
476
477
export OPENSSL_INCLUDE_DIR=" ${WORKSPACE} " /include/
477
- execute cmake . -DCMAKE_INSTALL_PREFIX:PATH =" ${WORKSPACE} " -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF -DUSE_STATIC_LIBSTDCXX=ON
478
+ execute cmake . -DCMAKE_INSTALL_PREFIX=" ${WORKSPACE} " -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF -DUSE_STATIC_LIBSTDCXX=ON
478
479
execute make install
479
480
480
481
if [ -n " $LDEXEFLAGS " ]; then
@@ -512,7 +513,11 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
512
513
513
514
# Vaapi doesn't work well with static links ffmpeg.
514
515
if [ -z " $LDEXEFLAGS " ]; then
516
+ # If the libva development SDK is installed, enable vaapi.
515
517
if library_exists " libva" ; then
518
+ if build " vaapi" ; then
519
+ build_done " vaapi"
520
+ fi
516
521
CONFIGURE_OPTIONS+=(" --enable-vaapi" )
517
522
fi
518
523
fi
0 commit comments