# -*- 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 legacysupport 1.1 # for strndup legacysupport.newest_darwin_requires_legacy 10 name imlib2 version 1.12.2 revision 2 checksums rmd160 8e96b26e0432140979810c049c37dac1f0524821 \ sha256 cc49931a20560968a8648c9ca079085976085ea96d59a01b1e17cb55af0ffe42 \ size 831812 categories graphics devel license Permissive maintainers nomaintainer description Image loading and rendering library long_description Imlib2 is a general image loading and rendering \ library designed to make the task of loading \ images and obtaining X-Windows drawables a simple \ task as well as a quick one. It also aims to \ provide simple manipulation routines that might be \ desired for common operations. homepage https://docs.enlightenment.org/api/imlib2/html/ master_sites sourceforge:project/enlightenment/imlib2-src/${version}/ use_xz yes depends_build port:pkgconfig depends_lib port:bzip2 \ port:freetype \ port:giflib \ port:libheif \ port:libid3tag \ path:include/turbojpeg.h:libjpeg-turbo \ port:libjxl \ port:libpng \ port:libspectre \ port:tiff \ port:webp \ port:xorg-libsm \ port:xorg-libX11 \ port:xorg-libXext \ port:xz \ port:zlib post-patch { reinplace "s|-Wl,-z,nodelete||" ${worksrcpath}/src/modules/loaders/Makefile.in } configure.args --disable-amd64 # New-enough librsvg is not available on 10.6 and earlier (requires Rust) if {${os.platform} eq "darwin" && ${os.major} < 11} { configure.args-append \ --without-svg } else { depends_lib-append path:lib/pkgconfig/librsvg-2.0.pc:librsvg } post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \ TODO ${destroot}${docdir} } variant doc { depends_lib-append \ path:bin/doxygen:doxygen configure.args-append \ --enable-doc-build post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir}/html xinstall -m 644 {*}[glob -directory ${worksrcpath}/doc/html *.{html,gif}] \ ${destroot}${docdir}/html } } default_variants +doc platform darwin 8 { patchfiles-append patch-imlib2-off_t.diff configure.args-append --disable-mmx } livecheck.distname ${name}