Browse Source

imlib2: Update from 1.5.1 to 1.6.0

emacs-27
Fredrik Fornwall 5 years ago
parent
commit
902361cdeb
  1. 5
      packages/imlib2/build.sh
  2. 12
      packages/imlib2/imlib2-1.5.1_src_modules_loaders_loader_zlib.c.patch
  3. 11
      packages/imlib2/src-bin-imlib2_view.c.patch
  4. 12
      packages/imlib2/src-modules-loaders-loader_zlib.c.patch

5
packages/imlib2/build.sh

@ -2,9 +2,8 @@ TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/enlightenment/
TERMUX_PKG_DESCRIPTION="Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support"
TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
TERMUX_PKG_VERSION=1.5.1
TERMUX_PKG_REVISION=10
TERMUX_PKG_VERSION=1.6.0
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/enlightenment/imlib2-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=b25df9347648cf3dfb784c099139ab24157b1dbd1baa9428f103b683b8a78c61
TERMUX_PKG_SHA256=672a8abed2f6531ff09b69449f58dfb723a0fd6560d6f94a71e7abdb77d6f987
TERMUX_PKG_DEPENDS="freetype, giflib, libandroid-shmem, libbz2, libid3tag, libjpeg-turbo, libpng, libtiff, libxext, zlib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="LIBS=-landroid-shmem"

12
packages/imlib2/imlib2-1.5.1_src_modules_loaders_loader_zlib.c.patch

@ -1,12 +0,0 @@
diff -uNr imlib2-1.5.1/src/modules/loaders/loader_zlib.c imlib2-1.5.1.mod/src/modules/loaders/loader_zlib.c
--- imlib2-1.5.1/src/modules/loaders/loader_zlib.c 2017-12-16 15:03:10.000000000 +0200
+++ imlib2-1.5.1.mod/src/modules/loaders/loader_zlib.c 2018-11-14 19:06:27.008030924 +0200
@@ -44,7 +44,7 @@
{
ImlibLoader *loader;
int src, dest, res;
- char *file, *p, *q, tmp[] = "/tmp/imlib2_loader_zlib-XXXXXX";
+ char *file, *p, *q, tmp[] = "@TERMUX_PREFIX@/tmp/imlib2_loader_zlib-XXXXXX";
char *real_ext;
struct stat st;

11
packages/imlib2/src-bin-imlib2_view.c.patch

@ -0,0 +1,11 @@
diff -u -r ../imlib2-1.6.0/src/bin/imlib2_view.c ./src/bin/imlib2_view.c
--- ../imlib2-1.6.0/src/bin/imlib2_view.c 2019-11-23 16:59:35.000000000 +0000
+++ ./src/bin/imlib2_view.c 2019-12-12 20:27:59.394947223 +0000
@@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
+#include <sys/select.h>
#include "Imlib2.h"

12
packages/imlib2/src-modules-loaders-loader_zlib.c.patch

@ -0,0 +1,12 @@
diff -u -r ../imlib2-1.6.0/src/modules/loaders/loader_zlib.c ./src/modules/loaders/loader_zlib.c
--- ../imlib2-1.6.0/src/modules/loaders/loader_zlib.c 2019-11-23 05:36:44.000000000 +0000
+++ ./src/modules/loaders/loader_zlib.c 2019-12-12 20:15:28.361709201 +0000
@@ -44,7 +44,7 @@
ImlibLoader *loader;
int src;
int dest, res;
- char *file, *p, *q, tmp[] = "/tmp/imlib2_loader_zlib-XXXXXX";
+ char *file, *p, *q, tmp[] = "@TERMUX_PREFIX@/tmp/imlib2_loader_zlib-XXXXXX";
char *real_ext;
/* make sure this file ends in ".gz" and that there's another ext
Loading…
Cancel
Save