zimg: update to 2.1.

This commit is contained in:
lemmi 2016-05-07 06:18:25 +02:00
parent 58d6428e63
commit 6652d61cfd
2 changed files with 38 additions and 2 deletions

View File

@ -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"])

View File

@ -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 <lemmi@nerd2nerd.org>"
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