You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
94 lines
3.1 KiB
Tcl
94 lines
3.1 KiB
Tcl
# -*- 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.6
|
|
revision 1
|
|
checksums rmd160 509ba91d64f4d72c1356032193818cafba4281ec \
|
|
sha256 250f9752f69dc522e529a81aaa9395705f7fc312ff2453e5de59ac2ba1f2858f \
|
|
size 844488
|
|
|
|
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 path:bin/pkg-config: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
|
|
}
|
|
}
|
|
|
|
# https://trac.macports.org/ticket/69159
|
|
# not enforced by default on macOS <10.7 until Doxygen is fixed
|
|
if {${os.platform} eq "darwin" && ${os.major} >= 11} {
|
|
default_variants +doc
|
|
}
|
|
|
|
livecheck.distname ${name}
|