Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
>
ImageMagick
> _service:tar_git:ImageMagick.yaml
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:ImageMagick.yaml of Package ImageMagick
Name: ImageMagick ### DO NOT FORGET TO BUMP mfr_revision below !!! ### Also, the builds script needs this to not be a macro Version: 7.1.1.28 Release: 1.1 Summary: Viewer and Converter for Images Group: Applications/Multimedia License: ImageMagick URL: https://imagemagick.org/ Sources: # "https://imagemagick.org/download/ImageMagick-%{mfr_version}-%{mfr_revision}.tar.xz" - "%{name}-%{version}.tar.xz" Description: | ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. ImageMagick can resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. %if "%{?vendor}" == "chum" Title: ImageMagick PackagedBy: nephros Type: console-application Categories: - Graphics - Utility - Library PackageIcon: https://github.com/nephros/harbour-imagemagick/raw/master/files/icon-imagemagick_sfos_256.png Custom: Repo: https://github.com/ImageMagick/ImageMagick PackagingRepo: https://github.com/sailfishos-chum/ImageMagick Links: Homepage: https://imagemagick.org/ Help: https://imagemagick.org/script/command-line-tools.php %endif Macros: #- 'debug_build;0' - 'mfr_revision;28' - 'maj;7' - 'mfr_version;%{maj}.1.1' - 'quantum_depth;16' - 'clibver;10' - 'libspec;-%{maj}_Q%{quantum_depth}HDRI' - 'source_version;%{mfr_version}-%{mfr_revision}' # # Hack: spectacle deletes macros, this works arount this: # libzstd is only in 4.4: - | this_is_a_hack; see_yaml_for_details %if 0%{?sailfishos_version} >= 40400 BuildRequires: pkgconfig(libzstd) %endif %ifarch %{arm} %{arm64} aarch64 %ifarch %{arm64} aarch64 #%%define tune_arch armv8-a # ^^^ not a valid option %define tune_arch cortex-a75.cortex-a55 # ^^^ big.LITTLE arch. Chosen after the Snapdragon690/Kryo560 from Xperia 10III. # Actually should be "cortex-a77.cortex-a55" but GCC 8.3 does not have this. %else #%%define tune_arch armv7-a # ^^^ not a valid option #%%define tune_arch generic-armv7-a # ^^^ a valid option %define tune_arch cortex-a72.cortex-a53 # ^^^ big.LITTLE arch. Chosen after the Snapdragon650 which was in the XperiaX %endif %else %ifarch %{ix86} # J Tablet -> Intel Atom Z3735F -> silvermont %define tune_arch silvermont %else %define tune_arch no %endif %endif #Requires: # - libfoo PkgBR: - autoconf - automake - gcc - curl - bzip2-devel - harfbuzz-devel - libjpeg-turbo-devel - librsvg-devel - libtool-ltdl-devel - libwebp-devel - perl-devel PkgConfigBR: - libcurl - liblzma - libpng - libtiff-4 - libxml-2.0 # libzstd # only in 4.4 - fontconfig - freetype2 - minizip - pango - ddjvuapi ConfigOptions: - CFLAGS="$RPM_OPT_FLAGS -fPIC -pie" - CXXFLAGS="$RPM_OPT_FLAGS -fPIC -pie" # don't tune for the build host, use a specific arch - --with-gcc-arch=%{tune_arch} # --quiet - --enable-silent-rules - --enable-shared - --disable-docs - --disable-deprecated - --without-frozenpaths - --without-magick-plus-plus # gives linking errors... - --with-modules - --with-perl - --with-perl-options="PREFIX=%{_prefix}" # --with-gvc # graphviz - --with-djvu - --with-rsvg - --without-dps - --without-fftw - --without-flif - --without-fpx - --without-heic - --without-jbig - --without-lcms - --without-lqr - --without-openexr - --without-openjp2 # --without-pango - --without-raw - --without-x - --with-zstd Check: true Builder: none SetupOptions: '-q -n %{name}-%{version}/upstream' Files: - '%license LICENSE' - '%dir %{_sysconfdir}/ImageMagick-%{maj}' - '%config %{_sysconfdir}/ImageMagick-%{maj}/colors.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/delegates.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/log.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/mime.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/policy.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/quantization-table.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/thresholds.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/type-apple.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/type-dejavu.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/type-ghostscript.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/type-urw-base35.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/type-windows.xml' - '%config %{_sysconfdir}/ImageMagick-%{maj}/type.xml' - '%{_datadir}/ImageMagick-%{maj}/francais.xml' - '%{_datadir}/ImageMagick-%{maj}/english.xml' - '%{_datadir}/ImageMagick-%{maj}/locale.xml' - '%{_bindir}/[^MW]*' - '%{_libdir}/libMagickCore*.so.%{clibver}*' - '%{_libdir}/libMagickWand*.so.%{clibver}*' - '%{_libdir}/ImageMagick*/config*' - '%{_libdir}/ImageMagick*/modules*' SubPackages: - Name: devel Summary: Development files for %{name} Group: Development/Libraries Files: - '%{_libdir}/libMagickCore*.so' - '%{_libdir}/libMagickWand*.so' # don't remove these! - '%{_libdir}/libMagickCore*.la' - '%{_libdir}/libMagickWand*.la' - '%dir %{_includedir}/ImageMagick*' - '%{_includedir}/ImageMagick*/MagickCore' - '%{_includedir}/ImageMagick*/MagickWand' - '%{_bindir}/MagickCore-config' - '%{_bindir}/MagickWand-config' - '%{_libdir}/pkgconfig/MagickCore*.pc' - '%{_libdir}/pkgconfig/ImageMagick*.pc' - '%{_libdir}/pkgconfig/MagickWand*.pc' - Name: PerlMagick AsWholeName: true Summary: Perl module of %{name} Group: Development/Libraries Files: - '%{_libdir}/perl5/perllocal.pod' - '%{_libdir}/perl5/Image/Magick.pm' - '%{_libdir}/perl5/Image/Magick/Q16HDRI.pm' - '%{_libdir}/perl5/auto/Image/Magick/.packlist' - '%{_libdir}/perl5/auto/Image/Magick/Magick.bs' - '%{_libdir}/perl5/auto/Image/Magick/Magick.so' - '%{_libdir}/perl5/auto/Image/Magick/Q16HDRI/Q16HDRI.bs' - '%{_libdir}/perl5/auto/Image/Magick/Q16HDRI/Q16HDRI.so' - '%{_libdir}/perl5/auto/Image/Magick/Q16HDRI/autosplit.ix' - '%{_libdir}/perl5/auto/Image/Magick/autosplit.ix'