From 47b2355ab74981b7625e6c1519e068c90dbc58f5 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 26 Dec 2021 17:37:45 +0900 Subject: [PATCH] new package: libvigra --- packages/libvigra/build.sh | 13 +++++++++++++ packages/libvigra/src-impex-hdf5impex.cxx.patch | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 packages/libvigra/build.sh create mode 100644 packages/libvigra/src-impex-hdf5impex.cxx.patch diff --git a/packages/libvigra/build.sh b/packages/libvigra/build.sh new file mode 100644 index 000000000..a7533fa30 --- /dev/null +++ b/packages/libvigra/build.sh @@ -0,0 +1,13 @@ +TERMUX_PKG_HOMEPAGE=https://ukoethe.github.io/vigra/ +TERMUX_PKG_DESCRIPTION="Computer vision library" +TERMUX_PKG_LICENSE="MIT" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=1.11.1 +TERMUX_PKG_SRCURL=https://github.com/ukoethe/vigra/releases/download/Version-${TERMUX_PKG_VERSION//./-}/vigra-${TERMUX_PKG_VERSION}-src.tar.gz +TERMUX_PKG_SHA256=a5564e1083f6af6a885431c1ee718bad77d11f117198b277557f8558fa461aaf +TERMUX_PKG_DEPENDS="libc++, libhdf5, libjpeg-turbo, libpng, libtiff, zlib" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +-DRUN_RESULT=0 +-DRUN_RESULT__TRYRUN_OUTPUT=201103 +" +TERMUX_PKG_RM_AFTER_INSTALL="doc" diff --git a/packages/libvigra/src-impex-hdf5impex.cxx.patch b/packages/libvigra/src-impex-hdf5impex.cxx.patch new file mode 100644 index 000000000..2e1058e0d --- /dev/null +++ b/packages/libvigra/src-impex-hdf5impex.cxx.patch @@ -0,0 +1,11 @@ +--- a/src/impex/hdf5impex.cxx ++++ b/src/impex/hdf5impex.cxx +@@ -35,6 +35,8 @@ + + #ifdef HasHDF5 + ++#define H5_USE_110_API 1 ++ + #include "vigra/hdf5impex.hxx" + #include "vigra/multi_array.hxx" + #include