@@ -636,9 +636,7 @@ parts:
636
636
craftctl default
637
637
sed -i 's|^Icon=.*|Icon=/usr/share/icons/hicolor/256x256/apps/gimp.png|' desktop/gimp.desktop.in.in
638
638
override-build : |
639
- # rm -f $CRAFT_PART_INSTALL/usr/share/pkgconfig/iso-codes.pc
640
639
craftctl default
641
- # sed -i -E "s|^(.*python3?=).*|\1/snap/$CRAFT_PROJECT_NAME/current/usr/bin/python|" $CRAFT_PART_INSTALL/usr/lib/gimp/2.99/interpreters/pygimp.interp || true
642
640
sed -i -E 's|^# \(mypaint-brush-path .*$|(mypaint-brush-path "/usr/share/mypaint-data/1.0/brushes:~/.mypaint/brushes")|' $CRAFT_PART_INSTALL/etc/gimp/2.99/gimprc
643
641
build-packages :
644
642
- automake
@@ -694,9 +692,94 @@ parts:
694
692
- luajit
695
693
- poppler-data
696
694
697
- cleanup :
695
+ gmic :
698
696
after : [gimp]
699
697
plugin : nil
698
+ override-pull : |
699
+ VERSION=v.3.3.3
700
+ git clone -b "$VERSION" https://github.com/GreycLab/gmic.git
701
+ git clone -b "$VERSION" https://github.com/GreycLab/CImg.git
702
+ git clone -b "$VERSION" https://github.com/c-koi/gmic-qt.git
703
+
704
+ # Force this extra online fetch to happen during the pull phase.
705
+ # This build takes a long time on Launchpad, and if we wait until
706
+ # the build phase, by the time we get there the proxy token has
707
+ # expired - so force it to happen here.
708
+ wget -qO gmic-qt/gmic_stdlib_community.h "https://gmic.eu/gmic_stdlib_community$(echo "${VERSION}" | tr -d "v.").h"
709
+ build-environment :
710
+ - LD_LIBRARY_PATH : $CRAFT_STAGE/usr/lib:$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
711
+ - PATH : /snap/bin:$PATH
712
+ - PKG_CONFIG_PATH : $CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig:${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
713
+ - QT_SELECT : qt6
714
+ - to armhf :
715
+ - CFLAGS : -Ofast -g -pipe -mfpu=neon
716
+ - CXXFLAGS : -Ofast -g -pipe -mfpu=neon
717
+ - LDFLAGS : -mfpu=neon
718
+ - else :
719
+ - CFLAGS : -Ofast -g -pipe -flto
720
+ - CXXFLAGS : -Ofast -g -pipe -flto
721
+ - LDFLAGS : -flto
722
+ build-packages :
723
+ - curl
724
+ - g++
725
+ - gcc
726
+ - libcurl4-openssl-dev
727
+ - libffi7
728
+ - libfftw3-dev
729
+ - libgraphicsmagick++1-dev
730
+ - libgraphicsmagick1-dev
731
+ - libjpeg-dev
732
+ - libopencv-core-dev
733
+ - libopencv-highgui-dev
734
+ - libopencv-videoio-dev
735
+ - libopenexr-dev
736
+ - libpng-dev
737
+ - libtiff5-dev
738
+ - libxkbfile-dev
739
+ - libxres-dev
740
+ - make
741
+ - pkg-config
742
+ - qmake6-bin
743
+ - qt6-base-dev
744
+ - qt6-l10n-tools
745
+ - qt6-tools-dev
746
+ - qt6-wayland-dev
747
+ - qtchooser
748
+ - wget
749
+ - zlib1g-dev
750
+ override-build : |
751
+ qtchooser -install qt6 $(which qmake6) || true
752
+ make -C gmic/src CImg.h gmic_stdlib_community.h
753
+ cd gmic-qt
754
+ qmake HOST=gimp3
755
+ make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
756
+ make DESTDIR=$SNAPCRAFT_PART_INSTALL install
757
+ stage-packages :
758
+ - libcurl4
759
+ - libdouble-conversion3
760
+ - libfftw3-3
761
+ - libffi7
762
+ - libgraphicsmagick-q16-3
763
+ - libgraphicsmagick++-q16-12
764
+ - libjpeg-turbo8
765
+ - libopencv-core4.5d
766
+ - libopencv-highgui4.5d
767
+ - libopencv-videoio4.5d
768
+ - libopenexr25
769
+ - libpng16-16
770
+ - libqt6core6
771
+ - libqt6gui6
772
+ - libqt6network6
773
+ - libqt6widgets6
774
+ - libtiff5
775
+ - libxkbfile1
776
+ - libxres1
777
+ - qt6-wayland
778
+ - zlib1g
779
+
780
+ cleanup :
781
+ after : [gimp, gmic]
782
+ plugin : nil
700
783
build-snaps :
701
784
- core22
702
785
- gnome-42-2204
0 commit comments