x265: fix cross arm*

This commit is contained in:
Jürgen Buchmüller 2018-01-16 09:51:14 +01:00
parent 5510a252f9
commit c46b26fbfa
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@ if [ -n "$CROSS_BUILD" ]; then
configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=${CROSS_BUILD%-musl}"
fi
pre_configure() {
if [ -n "$CROSS_BUILD" ]; then
sed -i CMakeLists.txt -e "s; -mcpu=native;;"
fi
}
x265-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"