# -*- 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
# Keep relevant lines in sync between ming and php-ming.
categories-append multimedia graphics
maintainers ryandesign openmaintainer
php.branches 5.3 5.4 5.5 5.6
homepage http://www.libming.org/
master_sites sourceforge:project/ming/Releases
worksrcdir ${worksrcdir}/php_ext
extract.post_args-append ${worksrcdir}
description a PHP interface for generating Flash SWF files with Ming
long_description ${description}
checksums rmd160 cd28c115a1eb37442f1b9c507ce3fad7837a6d54 \
sha256 82da089bdfc3a7fcb732dc11c11a35003ee270d5102d4043d61ea69834239aeb
if {${name} ne ${subport}} {
depends_lib-append port:ming
# config.m4 is missing from the 0.4.4 and 0.4.5 distfiles; see:
# https://github.com/libming/libming/issues/8
copy ${filespath}/config.m4 ${worksrcpath}
patchfiles-append patch-config.m4.diff
configure.args-append --with-ming=${prefix}
livecheck.regex /ming-(\[0-9.\]+)${extract.suffix}