Fix build in i686 architecture
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
# Generated by mksrcinfo v8
|
# Generated by mksrcinfo v8
|
||||||
# Thu Nov 9 17:58:29 UTC 2017
|
# Thu Nov 9 17:59:50 UTC 2017
|
||||||
pkgbase = ffmpeg-full
|
pkgbase = ffmpeg-full
|
||||||
pkgdesc = Record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac)
|
pkgdesc = Record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac)
|
||||||
pkgver = 3.4
|
pkgver = 3.4
|
||||||
pkgrel = 3
|
pkgrel = 4
|
||||||
url = http://www.ffmpeg.org/
|
url = http://www.ffmpeg.org/
|
||||||
arch = i686
|
arch = i686
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
pkgname=ffmpeg-full
|
pkgname=ffmpeg-full
|
||||||
_srcname=ffmpeg
|
_srcname=ffmpeg
|
||||||
pkgver=3.4
|
pkgver=3.4
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc='Record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac)'
|
pkgdesc='Record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac)'
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url='http://www.ffmpeg.org/'
|
url='http://www.ffmpeg.org/'
|
||||||
@@ -65,7 +65,7 @@ build() {
|
|||||||
local _cudasdk='--enable-cuda-sdk'
|
local _cudasdk='--enable-cuda-sdk'
|
||||||
local _cuvid='--enable-cuvid'
|
local _cuvid='--enable-cuvid'
|
||||||
local _libnpp='--enable-libnpp'
|
local _libnpp='--enable-libnpp'
|
||||||
local _cflags='--extra-cflags=-I/opt/cuda/include'
|
local _cflags='-I/opt/cuda/include'
|
||||||
|
|
||||||
# '-L/usr/lib/nvidia' (for cuda_sdk) needs to be enabled only on
|
# '-L/usr/lib/nvidia' (for cuda_sdk) needs to be enabled only on
|
||||||
# systems with nvidia-340xx-utils or nvidia-304xx-utils
|
# systems with nvidia-340xx-utils or nvidia-304xx-utils
|
||||||
@@ -74,7 +74,8 @@ build() {
|
|||||||
then
|
then
|
||||||
local _nvidia_340xx_ldflags='-L/usr/lib/nvidia'
|
local _nvidia_340xx_ldflags='-L/usr/lib/nvidia'
|
||||||
fi
|
fi
|
||||||
local _ldflags="--extra-ldflags=-L/opt/cuda/lib64 ${_nvidia_340xx_ldflags}"
|
|
||||||
|
local _ldflags="-L/opt/cuda/lib64 ${_nvidia_340xx_ldflags}"
|
||||||
local _ldflags="${_ldflags} -Wl,-rpath -Wl,/opt/intel/mediasdk/lib64:/opt/intel/mediasdk/plugins"
|
local _ldflags="${_ldflags} -Wl,-rpath -Wl,/opt/intel/mediasdk/lib64:/opt/intel/mediasdk/plugins"
|
||||||
|
|
||||||
# strictly specifying nvcc path is needed if package is installing
|
# strictly specifying nvcc path is needed if package is installing
|
||||||
@@ -86,8 +87,8 @@ build() {
|
|||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix='/usr' \
|
--prefix='/usr' \
|
||||||
$_cflags \
|
--extra-cflags="${_cflags}" \
|
||||||
"$_ldflags" \
|
--extra-ldflags="${_ldflags}" \
|
||||||
\
|
\
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--enable-gpl \
|
--enable-gpl \
|
||||||
|
|||||||
Reference in New Issue
Block a user