x265: don't manually set CMAKE_SYSTEM_PROCESSOR

This commit is contained in:
maxice8 2018-10-03 03:26:34 -03:00 committed by Enno Boland
parent 94937649d2
commit 403f1223e0

View file

@ -2,7 +2,7 @@
pkgname=x265 pkgname=x265
version=2.8 version=2.8
revision=2 revision=2
build_wrksrc="source" build_wrksrc=source
wrksrc="x265_${version}" wrksrc="x265_${version}"
build_style=cmake build_style=cmake
configure_args="-DENABLE_PIC=1" configure_args="-DENABLE_PIC=1"
@ -14,10 +14,6 @@ homepage="http://x265.org/"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz" distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=6e59f9afc0c2b87a46f98e33b5159d56ffb3558a49d8e3d79cb7fdc6b7aaa863 checksum=6e59f9afc0c2b87a46f98e33b5159d56ffb3558a49d8e3d79cb7fdc6b7aaa863
case "$XBPS_TARGET_MACHINE" in
mips*) configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=mips32r2" ;;
esac
pre_configure() { pre_configure() {
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
sed -i CMakeLists.txt -e "s; -mcpu=native;;" sed -i CMakeLists.txt -e "s; -mcpu=native;;"