Browse Source

optipng: Update from 0.7.6 to 0.7.7

android-5
Fredrik Fornwall 7 years ago
parent
commit
aae1760521
  1. 6
      packages/optipng/build.sh
  2. 19
      packages/optipng/stat.patch

6
packages/optipng/build.sh

@ -1,9 +1,9 @@
TERMUX_PKG_HOMEPAGE=http://optipng.sourceforge.net/
TERMUX_PKG_DESCRIPTION="PNG optimizer that recompresses image files to a smaller size, without losing any information"
TERMUX_PKG_DEPENDS="libpng"
TERMUX_PKG_VERSION=0.7.6
TERMUX_PKG_VERSION=0.7.7
TERMUX_PKG_SHA256=4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-${TERMUX_PKG_VERSION}/optipng-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80
TERMUX_PKG_DEPENDS="libpng"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-system-zlib --with-system-libpng --mandir=$TERMUX_PREFIX/share/man"
TERMUX_PKG_BUILD_IN_SRC=yes

19
packages/optipng/stat.patch

@ -1,19 +0,0 @@
diff -u -r ../optipng-0.7.4/src/optipng/osys.c ./src/optipng/osys.c
--- ../optipng-0.7.4/src/optipng/osys.c 2012-08-25 02:12:00.000000000 +0200
+++ ./src/optipng/osys.c 2014-03-19 00:09:20.000000000 +0100
@@ -514,8 +514,15 @@
{
struct timespec times[2];
+#ifdef __ANDROID__
+ times[0].tv_sec = sbuf.st_atime;
+ times[0].tv_nsec = sbuf.st_atime_nsec;
+ times[1].tv_sec = sbuf.st_mtime;
+ times[1].tv_nsec = sbuf.st_mtime_nsec;
+#else
times[0] = sbuf.st_atim;
times[1] = sbuf.st_mtim;
+#endif
if (utimensat(AT_FDCWD, dest_path, times, 0) != 0)
return -1;
}
Loading…
Cancel
Save