118.11. giflib-6.1.3
Libraries for reading and writing GIFs as well as programs for converting and working with GIF files
6.1.3-1 · MIT · 0.1 SBU · 397.4 KiB, 17 files · 41_system, 685 of 1047 · ports/core/image-libs/giflib
Homepage: https://giflib.sourceforge.net/
giflib reads and writes GIF images. libgif is linked by libwebp’s gif2webp, libjxl, imagemagick, leptonica, gdal, krita and others, and the package also installs five small utilities: gifbuild, giffix, giftext, giftool and gifclrmp.
Depends on: nothing a recipe names.
Required by (14): fontforge, gdal, gthumb, imagemagick, kodi, krita, leptonica, libjxl, libwebp, openimageio, openjdk, scummvm, swayimg, vice.
Sources: giflib-6.1.3.tar.gz (459.5 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install giflib'
build.sh:
make shared-lib static-lib
make PREFIX=/usr DESTDIR=$PKG install-bin install-include install-lib install-man
Programs: gifbuild, gifclrmp, giffix, giftext, giftool.
Libraries: libgif.a, libgif.so.
Directories: /usr/share/licenses/giflib.
giflib has no configure script; the recipe names make targets instead of running make and make install. Upstream’s all target, and with it install, also runs make -C doc, which builds the HTML documentation and the manual pages with xmlto. build.sh builds shared-lib and static-lib, and the install targets it names build only the utilities on top (install-bin depends on them); install-man copies the pages for those five and giflib(7), which the release already carries in doc/. Nothing is built from the XML sources, so xmlto is not a dependency.
The utilities are linked against libgif.a, upstream’s choice, which is why the static library is built, and install-lib installs it beside the shared one.