Bug 254107 - mail/p5-FuzzyOcr-devel install our own gifinter
Summary: mail/p5-FuzzyOcr-devel install our own gifinter
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2021-03-07 18:29 UTC by Mikhail Teterin
Modified: 2021-03-07 18:29 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (ismail.yenigul)

Add gifinter-shim (2.72 KB, patch)
2021-03-07 18:29 UTC, Mikhail Teterin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Teterin freebsd_committer 2021-03-07 18:29:45 UTC
Created attachment 223067 [details]
Add gifinter-shim

The top problem using the tool is that the gifinter executable is no longer installed by graphics/giflib. The recommended workaround -- to declare:

`focr_bin_gifinter ..../convert -interlace`

does not work. When `sa-learn` is invoked, for example, it complaints "Cannot find executable for gifinter".

This patch installs a shim making things work again -- with either ImageMagick's or GraphicsMagick.

I have the following reservations about it:

1. The script is installed into $PREFIX/bin instead of some location private to the port.
2. Perhaps, the script should be provided by giflib instead...
3. The *proper* way to fix this problem is to make the code respect the focr_bin_gifinter-setting...