Files
2026-04-01 17:04:41 -05:00

47 lines
1.8 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 php 1.1
name php-FreeImage
version 0.1
revision 1
license PHP-2.02
categories-append devel
maintainers {ryandesign @ryandesign} {mathiesen.info:macintosh @BjarneDMat} openmaintainer
php.branches 5.3 5.4 5.5 5.6
php.pecl yes
php.pecl.prerelease yes
description Provides a wrapper to the FreeImage library.
long_description This extension is a wrapper for the FreeImage library \
that allows PHP to support popular graphics image \
formats like GIF, PNG, BMP, JPEG, TIFF, PSD, XPM and \
others as needed by today's multimedia applications.
checksums md5 91d3776de0beba4cdd7a76952f9b3265 \
sha1 a81bddb31962f4054cddf1fc4b35d9c2ae7476d7 \
rmd160 7a19f53176fc303c7ef04f06671b9eeeadbcec5a
if {${name} ne ${subport}} {
depends_lib-append port:freeimage
post-extract {
# DOS to UNIX line endings so we can patch.
reinplace "s|\r||g" ${worksrcpath}/freeimage.c
}
patchfiles patch-freeimage.c.diff
configure.args-append --with-freeimage=${prefix}
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir} ${destroot}${prefix}/share/examples
xinstall -m 644 -W ${worksrcpath} CREDITS README ${destroot}${docdir}
copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${subport}
}
}