@@ -10,8 +10,8 @@ PortGroup perl5 1.0
1010name gimp3-devel
1111set my_name gimp3
1212conflicts gimp2 gimp2-devel
13- version 2.99.rc1
14- revision 1
13+ version 3.0.4
14+ revision 0
1515license GPL-3+
1616categories graphics
1717maintainers {devans @dbevans} {mascguy @mascguy}
@@ -26,23 +26,22 @@ long_description The GNU Image Manipulation Program (GIMP) is a powerful \
2626 git master.
2727homepage https://gimp.org/
2828
29- # TODO: Once 3.0 officially released, eliminate these versions hacks
30- set branch 3.0
31- # set branch [join [lrange [split ${version} .] 0 1] .]
29+ set branch [join [lrange [split ${version} .] 0 1] .]
3230master_sites gimp:gimp/v${branch} /
3331dist_subdir ${my_name}
34- distname gimp-3.0.0-RC1
32+ distname gimp-${version}
3533use_xz yes
3634
37- checksums rmd160 18f197f32e38304dba69b2d5af62534174892852 \
38- sha256 b3d0b264c5e38e789faaf3417003397f3240014c59c7f417f9ca3bd39c5ffb66 \
39- size 28863948
35+ checksums rmd160 7df3757374e899505d9fe5c8c2763aea8dcdc313 \
36+ sha256 8caa2ec275bf09326575654ac276afc083f8491e7cca45d19cf29e696aecab25 \
37+ size 27060240
4038
4139# Disable unexpected download of subprojects
4240meson.wrap_mode nodownload
4341
42+ set py_ver 3.13
43+
4444depends_build-append \
45- port:appstream-glib \
4645 port:gettext \
4746 port:gtk-doc \
4847 port:perl${perl5.major} \
@@ -51,6 +50,7 @@ depends_build-append \
5150
5251depends_lib-append \
5352 port:aalib \
53+ port:appstream-glib \
5454 port:atk \
5555 path:lib/pkgconfig/babl-0.1.pc:babl \
5656 port:bzip2 \
@@ -67,7 +67,9 @@ depends_lib-append \
6767 port:glib-networking \
6868 path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
6969 path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
70+ path:lib/pkgconfig/harfbuzz.pc:harfbuzz \
7071 port:iso-codes \
72+ port:json-glib \
7173 port:lcms2 \
7274 port:libheif \
7375 path:include/turbojpeg.h:libjpeg-turbo \
@@ -82,10 +84,14 @@ depends_lib-append \
8284 port:mypaint-brushes1 \
8385 port:openexr \
8486 port:openjpeg \
87+ path:lib/pkgconfig/pango.pc:pango \
8588 path:lib/pkgconfig/poppler.pc:poppler \
89+ port:shared-mime-info \
8690 port:tiff \
8791 port:webp \
8892 port:xdg-utils \
93+ port:xpm \
94+ port:xz \
8995 port:zlib
9096
9197depends_run-append \
@@ -103,12 +109,14 @@ patchfiles-append patch-etc-gimprc.in.diff
103109patchfiles-append patch-quartz-32bit.diff
104110patchfiles-append MYPAINT_BRUSHES_DIR.patch
105111
106- if {${os.platform} eq " darwin" && ${os.major} < 11} {
107- # avoid Cursor type conflict between X11 and Quickdraw
108- # error: typedef redefinition with different types ('struct Cursor' vs 'XID' (aka 'unsigned long'))
109- # not an issue on 10.7 and later
110- patchfiles-append \
112+ platform darwin {
113+ if {${os.major} < 11} {
114+ # avoid Cursor type conflict between X11 and Quickdraw
115+ # error: typedef redefinition with different types ('struct Cursor' vs 'XID' (aka 'unsigned long'))
116+ # not an issue on 10.7 and later
117+ patchfiles-append \
111118 patch-x11-widgets-fix.diff
119+ }
112120}
113121
114122post-patch {
@@ -140,18 +148,25 @@ if {[vercmp $xcodeversion 4.3] < 0 && [string match "*macports*" ${configure.com
140148
141149configure.args-append \
142150 -Dalsa=disabled \
143- -Denable-console-bin=true \
144151 -Dbug-report-url=https://guide.macports.org/#project.tickets \
152+ -Denable-console-bin=true \
145153 -Dgi-docgen=disabled \
146- -Dg-ir-doc=false \
147154 -Dgudev=disabled \
155+ -Dheif=enabled \
156+ -Djpeg2000=enabled \
157+ -Djpeg-xl=enabled \
158+ -Dheif=enabled \
148159 -Dilbm=disabled \
149160 -Djavascript=disabled \
150161 -Dlibbacktrace=false \
151162 -Dlibunwind=false \
152163 -Dlua=false \
164+ -Dmng=enabled \
165+ -Dopenexr=enabled \
153166 -Dopenmp=disabled \
154- -Dwebkit-unmaintained=false
167+ -Dvala=disabled \
168+ -Dwebkit-unmaintained=false \
169+ -Dwebp=enabled
155170
156171# keep empty GIMP font directory
157172# silences warning message on startup:
@@ -160,8 +175,6 @@ configure.args-append \
160175destroot.keepdirs-append \
161176 ${destroot}${prefix} /share/gimp/3.0/fonts
162177
163- # requires python >= 3.6.0
164-
165178proc py_setup {py_ver} {
166179 global env prefix frameworks_dir
167180 set py_ver_nodot [string map {. {}} ${py_ver} ]
@@ -187,28 +200,7 @@ proc py_setup {py_ver} {
187200 port:py${py_ver_nodot} -gobject3
188201}
189202
190- variant python39 description {Build with python plugin support using python 3.9} {
191- py_setup 3.9
192- }
193-
194- variant python310 description {Build with python plugin support using python 3.10} {
195- py_setup 3.10
196- }
197-
198- variant python311 description {Build with python plugin support using python 3.11} {
199- py_setup 3.11
200- }
201-
202- variant python312 description {Build with python plugin support using python 3.12} {
203- py_setup 3.12
204- }
205-
206- if {![variant_isset python39] && \
207- ![variant_isset python310] && \
208- ![variant_isset python311] && \
209- ![variant_isset python312]} {
210- default_variants-append +python312
211- }
203+ py_setup ${py_ver}
212204
213205# meson.build uses the GTK+ 3 backend to determine whether to enable X11.
214206variant x11 conflicts quartz {
@@ -218,8 +210,7 @@ variant x11 conflicts quartz {
218210 port:xorg-libXcursor \
219211 port:xorg-libXmu \
220212 port:xorg-libXext \
221- port:xorg-libXfixes \
222- port:xpm
213+ port:xorg-libXfixes
223214}
224215
225216variant quartz conflicts x11 {
@@ -238,4 +229,6 @@ post-activate {
238229 system " ${prefix} /bin/update-desktop-database ${prefix} /share/applications"
239230}
240231
241- livecheck.type none
232+ livecheck.type regex
233+ livecheck.url https://download.gimp.org/mirror/pub/gimp/v${branch} /
234+ livecheck.regex " gimp-(${branch} (?:\\ .\\ d+)*)${extract.suffix} "
0 commit comments