# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           gobject_introspection 1.0
PortGroup           meson 1.0

github.setup        libvips libvips 8.14.5 v
revision            0
name                vips
distname            vips-${version}
description         VIPS is an image processing library.
long_description    VIPS is an image processing library. It is good for \
                    large images and for colour.
maintainers         {gmail.com:jcupitt @jcupitt} openmaintainer
categories          graphics
platforms           darwin
license             LGPL-2.1+
homepage            https://libvips.github.io/libvips/
github.tarball_from releases

use_xz              yes

checksums           rmd160  37c9630a6e7ee9a8c01564be1beb4530a69809cf \
                    sha256  90374e9f6fbd5657b5faf306cacda20658d6144d385316b59b865bc1a487b68d \
                    size    18652928

# minor tweak to allow build with older compilers
# StandaloneFuzzTargetMain.c:31: error: 'for' loop initial declaration used outside C99 mode
patchfiles-append   patch-vips-fuzz-forloop.diff

depends_build       path:bin/doxygen:doxygen \
                    port:gtk-doc \
                    port:pkgconfig

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/pango.pc:pango \
                    port:cfitsio \
                    port:expat \
                    port:fftw-3 \
                    port:hdf5 \
                    port:ImageMagick \
                    path:include/turbojpeg.h:libjpeg-turbo \
                    port:lcms2 \
                    port:libexif \
                    port:libgsf \
                    port:libpng \
                    path:lib/pkgconfig/librsvg-2.0.pc:librsvg \
                    port:libtool \
                    port:matio \
                    port:nifticlib \
                    port:openexr \
                    port:openslide \
                    port:orc \
                    path:lib/pkgconfig/poppler.pc:poppler \
                    port:tiff \
                    port:webp \
                    port:zlib

configure.post_args-append \
                   -Dintrospection=true
