/
Portfile
61 lines (47 loc) · 1.86 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*- 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.10.6
license none
set branch [join [lrange [split ${version} .] 0 1] .]
categories graphics
maintainers {devans @dbevans}
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-lqr-plugin \
port:gutenprint
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}"