Permalink
64 lines (49 sloc) 1.9 KB
# -*- 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
name gimp
version 2.8.18
license none
set branch [join [lrange [split ${version} .] 0 1] .]
categories graphics
maintainers devans
homepage http://www.gimp.org/
platforms darwin
supported_archs noarch
description GIMP - Batteries Included
long_description \
This is a META port for the GNU Image Manipulation Program, GIMP, \
which includes support for JP2000 and RAW formats, \
content-aware rescaling, Gutenprint and scanner frontends and, \
optionally, an animation tool, the GIMP Animation Package, \
and an image processing and scientific visualization tool, \
GREYCs Magic Image Converter.
depends_lib port:gimp-jp2 \
port:gimp-lqr-plugin \
port:gutenprint \
port:ufraw
platform macosx {
depends_lib-append path:${applications_dir}/GIMP.app/Contents/MacOS/GIMP:gimp-app
}
distfiles
use_bzip2 yes
use_configure no
build {}
destroot {
file mkdir ${destroot}${prefix}/share/doc
system "echo ${long_description} > ${destroot}${prefix}/share/doc/README.${name}.txt"
}
# gmic requires X11
variant gmic conflicts quartz description "Include GREYC's Magic Image Converter (G'MIC)." {
depends_lib-append port:gmic
}
variant animation description "Include the GIMP Animation Package (gimp-gap)." {
depends_lib-append path:lib/gimp/2.0/plug-ins/gap_plugins:gimp-gap-devel
}
variant quartz conflicts gmic {}
# xsane requires X11
if {![variant_isset quartz]} {
depends_lib-append port:xsane
}
livecheck.type regex
livecheck.url http://ftp.gtk.org/pub/gimp/v${branch}/
livecheck.regex "gimp-(${branch}(?:\\.\\d+)*)${extract.suffix}"