From 47a7a6cb0321a00a41ad02a7d6a5d74cb371766a Mon Sep 17 00:00:00 2001 From: Marc Seitz <4049052+mfts@users.noreply.github.com> Date: Sun, 5 Mar 2023 06:57:39 -0700 Subject: [PATCH] +leptonica (#449) * add leptonica * update openjpeg dep --- projects/leptonica.org/package.yml | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 projects/leptonica.org/package.yml diff --git a/projects/leptonica.org/package.yml b/projects/leptonica.org/package.yml new file mode 100644 index 00000000..5de7ae45 --- /dev/null +++ b/projects/leptonica.org/package.yml @@ -0,0 +1,46 @@ +distributable: + url: https://github.com/DanBloomberg/leptonica/releases/download/{{version}}/leptonica-{{version}}.tar.gz + strip-components: 1 + +versions: + github: DanBloomberg/leptonica/tags + +dependencies: + giflib.sourceforge.io: 5 + libjpeg-turbo.org: 2 + libpng.org: 1 + simplesystems.org/libtiff: 4 + openjpeg.org: '*' + google.com/webp: '*' + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + freedesktop.org/pkg-config: '*' + script: | + ./configure $ARGS + make --jobs {{ hw.concurrency }} + make install + env: + ARGS: + - --prefix="{{prefix}}" + +provides: + - bin/convertfilestopdf + - bin/convertfilestops + - bin/convertformat + - bin/convertsegfilestopdf + - bin/convertsegfilestops + - bin/converttopdf + - bin/converttops + - bin/fileinfo + - bin/imagetops + - bin/xtractprotos + +test: + dependencies: + gnu.org/wget: '*' + script: | + wget https://people.math.sc.edu/Burkardt/data/tif/at3_1m4_01.tif + fileinfo at3_1m4_01.tif