diff --git a/multimedia/graphics/imagemagick6/actions.py b/multimedia/graphics/imagemagick6/actions.py new file mode 100644 index 0000000000..2cb3d28e4f --- /dev/null +++ b/multimedia/graphics/imagemagick6/actions.py @@ -0,0 +1,71 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import get +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import perlmodules + +KeepSpecial=["libtool"] + +j = "--with-lqr \ + --with-wmf \ + --with-xml \ + --with-perl \ + --with-rsvg \ + --with-webp \ + --without-gvc \ + --prefix=/usr \ + --enable-hdri \ + --without-dps \ + --without-fpx \ + --with-modules \ + --with-openexr \ + --with-openjp2 \ + --without-djvu \ + --without-fftw \ + --enable-opencl \ + --without-gslib \ + --sysconfdir=/etc \ + --without-autotrace \ + PSDelegate=/usr/bin/gs \ + XPSDelegate=/usr/bin/gxps \ + PCLDelegate=/usr/bin/gpcl6 \ + --with-perl-options=INSTALLDIRS=vendor \ + --with-dejavu-font-dir=/usr/share/fonts/dejavu \ + --with-gs-font-dir=/usr/share/fonts/default/ghostscript \ + PKG_CONFIG='/usr/bin/env PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig pkg-config' \ + " + +def setup(): + pisitools.dosed("configure.ac", "AC_PATH_XTRA") + autotools.autoreconf("-fi") + + pisitools.dosed("configure", "DOCUMENTATION_RELATIVE_PATH=.*", "DOCUMENTATION_RELATIVE_PATH=%s/html" % get.srcNAME()) + autotools.configure(j) + + # fix unused direct dependency analysis + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s pkgconfigdir=/usr/lib/%s/pkgconfig" % (get.installDIR(), get.srcNAME())) + + pisitools.dodoc("LICENSE", "README*") + + pisitools.remove("/usr/lib/*.la") + + # to prevent conflict, remove binaries, we can get them from latest ImageMagick + pisitools.removeDir("/usr/bin") + # to prevent conflict, remove man files, we can get them from latest ImageMagick + pisitools.removeDir("/usr/share/man") + # to prevent conflict, remove conflicting perl files + perlmodules.removePacklist() + perlmodules.removePodfiles() + pisitools.removeDir("/usr/lib/perl5") diff --git a/multimedia/graphics/imagemagick6/files/perlmagick.rpath.patch b/multimedia/graphics/imagemagick6/files/perlmagick.rpath.patch new file mode 100644 index 0000000000..a5b1a82e23 --- /dev/null +++ b/multimedia/graphics/imagemagick6/files/perlmagick.rpath.patch @@ -0,0 +1,11 @@ +--- Makefile.in.orig 2013-02-21 03:26:56.785156600 -0500 ++++ Makefile.in 2013-02-21 03:39:03.102411457 -0500 +@@ -10469,6 +10469,8 @@ + + @WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@$(PERLMAKEFILE): perl-sources $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) $(PERLMAKEMAKER) + @WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ cd $(PERLMAGICK) && @PERL@ Makefile.PL $(PERL_MAKE_OPTIONS) ++@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ cd $(PERLMAGICK) && @SED@ -i 's|LD_RUN_PATH|DIE_LD_RUN_PATH_DIE|g' Makefile ++@WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ cd $(PERLMAGICK) && @SED@ -i 's|LD_RUN_PATH|DIE_LD_RUN_PATH_DIE|g' quantum/Makefile + + @WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@install-exec-perl: $(PERLMAKEFILE) + @WITH_PERL_DYNAMIC_TRUE@@WITH_PERL_TRUE@ ( cd $(PERLMAGICK) && $(MAKE) CC='@CC@' && \ diff --git a/multimedia/graphics/imagemagick6/pspec.xml b/multimedia/graphics/imagemagick6/pspec.xml new file mode 100644 index 0000000000..d5e33913ed --- /dev/null +++ b/multimedia/graphics/imagemagick6/pspec.xml @@ -0,0 +1,107 @@ + + + + + imagemagick6 + https://legacy.imagemagick.org/ + + Pisilinux Community + admins@pisilinux.org + + multimedia.graphics + as-is + app:gui + A collection of tools and libraries for many image file formats. + ImageMagick is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. You can use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. + + https://imagemagick.org/download/releases/ImageMagick-6.9.11-29.tar.xz + + + intltool + zstd-devel + tiff-devel + webp-devel + cairo-devel + fftw3-devel + lcms2-devel + libpng-devel + libwmf-devel + liblqr-devel + jasper-devel + libgxps-devel + librsvg-devel + openexr-devel + libXext-devel + fontconfig-devel + ghostscript-devel + libjpeg-turbo-devel + + + + + + + + imagemagick6 + + tiff + webp + fftw3 + lcms2 + liblqr + libpng + libwmf + libgxps + libXext + libgomp + freetype + fontconfig + ghostscript + openexr-libs + libjpeg-turbo + + + + /etc/ImageMagick-6/ + /usr/lib/libMagick* + /usr/share/ImageMagick-* + /usr/lib/ImageMagick-6* + /usr/share/doc/imagemagick6/LICENSE + /usr/share/doc/imagemagick6/README.txt + + + + + imagemagick6-docs + data:doc + HTML documentation for imagemagick6 + + /usr/share/doc/imagemagick6/html + + + + + imagemagick6-devel + Development files for imagemagick6 + + imagemagick6 + + + /usr/include + /usr/lib/imagemagick6/pkgconfig + + + + + + 2020-09-14 + 6.9.11.29 + ver6 rebuild. + fury + wascheme@tuta.io + + + \ No newline at end of file diff --git a/multimedia/graphics/imagemagick6/translations.xml b/multimedia/graphics/imagemagick6/translations.xml new file mode 100644 index 0000000000..e3589dae08 --- /dev/null +++ b/multimedia/graphics/imagemagick6/translations.xml @@ -0,0 +1,21 @@ + + + + imagemagick6 + Resimleri işlemek ve göstermek için bir X uygulaması + Narzędzie do wyświetlania, konwersji i manipulacji grafikami + + + + imagemagick6-docs + Imagemagick6 için API belgeleri + imagemagick6-docs, imagemagick6 için belgelendirme dosyalarını içerir. + + + + imagemagick6-devel + imagemagick6 için geliştirme dosyaları + imagemagick6-devel, imagemagick6 için geliştirme dosyalarını içerir. + Pliki nagłówkowe imagemagick6 + + \ No newline at end of file