diff --git a/srcpkgs/zimg/patches/fix-cross-build.patch b/srcpkgs/zimg/patches/fix-cross-build.patch new file mode 100644 index 00000000000..59a28a2ae70 --- /dev/null +++ b/srcpkgs/zimg/patches/fix-cross-build.patch @@ -0,0 +1,33 @@ +--- configure.ac.orig 2016-05-23 13:02:19.860132419 +0200 ++++ configure.ac 2016-05-23 13:02:31.867133038 +0200 +@@ -9,11 +9,9 @@ + + LT_INIT([win32-dll]) + ++AC_CANONICAL_SYSTEM + AC_PROG_CXX + +-AC_CANONICAL_HOST +- +- + AC_ARG_ENABLE([testapp], AS_HELP_STRING([--enable-testapp], [Compile the test application. (default=no)])) + AC_ARG_ENABLE([example], AS_HELP_STRING([--enable-example], [Compile example programs. (default=no)])) + AC_ARG_ENABLE([unit-test], AS_HELP_STRING([--enable-unit-test], [Compile unit tests. May result in slower code. (default=no)])) +@@ -26,7 +24,7 @@ + AS_IF([test "x$enable_unit_test" = "xyes"], + [ + CFLAGS="$CFLAGS -fno-fast-math -ffp-contract=off" CXXFLAGS="$CXXFLAGS -fno-fast-math -ffp-contract=off" +- AS_CASE([$host_cpu], ++ AS_CASE([$target_cpu], + [i?86], [CFLAGS="$CFLAGS -mfpmath=sse -msse2" CXXFLAGS="$CXXFLAGS -mfpmath=sse -msse2"], + [x86_64], [], + [AC_MSG_WARN([Could not determine how to enable IEEE-754 compliance on host. Tests may fail.])]) +@@ -44,7 +42,7 @@ + + X86="no" + +-AS_CASE([$host_cpu], ++AS_CASE([$target_cpu], + [i?86], [BITS="32" X86="yes"], + [x86_64], [BITS="64" X86="yes"]) + diff --git a/srcpkgs/zimg/template b/srcpkgs/zimg/template index 3177b7e37bf..c466940768f 100644 --- a/srcpkgs/zimg/template +++ b/srcpkgs/zimg/template @@ -1,6 +1,9 @@ # Template file for 'zimg' pkgname=zimg -version=2.0.4 +# 2.1 needs a patch to cross compile. +# Please remove on update +# https://github.com/sekrit-twc/zimg/issues/47 +version=2.1 revision=1 wrksrc=zimg-release-${version} build_style=gnu-configure @@ -10,7 +13,7 @@ maintainer="lemmi " license="WTFPL" homepage="https://github.com/sekrit-twc/zimg" distfiles="https://github.com/sekrit-twc/zimg/archive/release-${version}.tar.gz" -checksum=e3b1f5b9f8ce750f96b9bc9801ff5d6aa931d35300d67711826e397df43c5245 +checksum=09093bbb4d73865362e1e346762a6efdc9acc3d2cab6a2ebf5f00ba5d90b17c3 pre_configure() { ./autogen.sh