From 27eb8178d711f7b4f3bb3c9f1ee8ec39157f11ba Mon Sep 17 00:00:00 2001 From: aydemir Date: Fri, 28 Aug 2015 15:48:47 +0300 Subject: [PATCH] imagemagic add repo --- multimedia/graphics/imagemagick/actions.py | 60 ++++++++++ .../imagemagick/files/perlmagick.rpath.patch | 11 ++ multimedia/graphics/imagemagick/pspec.xml | 104 ++++++++++++++++++ .../graphics/imagemagick/translations.xml | 19 ++++ 4 files changed, 194 insertions(+) create mode 100644 multimedia/graphics/imagemagick/actions.py create mode 100644 multimedia/graphics/imagemagick/files/perlmagick.rpath.patch create mode 100644 multimedia/graphics/imagemagick/pspec.xml create mode 100644 multimedia/graphics/imagemagick/translations.xml diff --git a/multimedia/graphics/imagemagick/actions.py b/multimedia/graphics/imagemagick/actions.py new file mode 100644 index 0000000000..098b0eef8a --- /dev/null +++ b/multimedia/graphics/imagemagick/actions.py @@ -0,0 +1,60 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import perlmodules +from pisi.actionsapi import shelltools +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +KeepSpecial=["libtool"] + +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("--with-gs-font-dir=/usr/share/fonts/default/ghostscript \ + --docdir=/usr/share/doc/imagemagick \ + --enable-hdri \ + --enable-shared \ + --disable-static \ + --with-modules \ + --with-perl \ + --with-perl-options='INSTALLDIRS=vendor' \ + --with-x \ + --with-threads \ + --with-magick_plus_plus \ + --with-gslib \ + --with-wmf \ + --with-lcms2 \ + --with-rsvg \ + --with-xml \ + --with-djvu \ + --with-bzlib \ + --with-zlib \ + --with-fpx \ + --with-tiff \ + --with-jp2 \ + --with-jpeg \ + --without-jbig \ + --without-fpx \ + --without-dps") + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS.txt", "ChangeLog", "LICENSE", "NEWS.txt") + + pisitools.remove("/usr/lib/*.la") + + perlmodules.removePacklist() + perlmodules.removePodfiles() \ No newline at end of file diff --git a/multimedia/graphics/imagemagick/files/perlmagick.rpath.patch b/multimedia/graphics/imagemagick/files/perlmagick.rpath.patch new file mode 100644 index 0000000000..a5b1a82e23 --- /dev/null +++ b/multimedia/graphics/imagemagick/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/imagemagick/pspec.xml b/multimedia/graphics/imagemagick/pspec.xml new file mode 100644 index 0000000000..db739cf4cb --- /dev/null +++ b/multimedia/graphics/imagemagick/pspec.xml @@ -0,0 +1,104 @@ + + + + + imagemagick + http://www.imagemagick.org/ + + PisiLinux Community + admins@pisilinux.org + + 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. + ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.9.2-0.tar.xz + + ghostscript-devel + fontconfig-devel + librsvg-devel + openexr-devel + libXext-devel + libwmf-devel + liblqr-devel + jasper-devel + cairo-devel + fftw3-devel + lcms2-devel + tiff-devel + webp-devel + libjpeg-turbo-devel + libpng-devel + + + perlmagick.rpath.patch + + + + + imagemagick + + perl + tiff + webp + zlib + bzip2 + fftw3 + lcms2 + libX11 + libgcc + liblqr + libpng + libwmf + libXext + libgomp + freetype + fontconfig + ghostscript + libtool-ltdl + openexr-libs + libjpeg-turbo + + + /usr/bin + /etc/ImageMagick-6/ + /usr/lib + /usr/share/ImageMagick-* + /usr/share/man + /usr/share/doc + + + + + imagemagick-docs + HTML documentation for imagemagick + + /usr/share/doc/imagemagick/html + + + + + imagemagick-devel + Development files for imagemagick + + imagemagick + + + /usr/include + /usr/lib/pkgconfig + /usr/share/man/man3 + /usr/share/man/man1/*-config* + /usr/bin/*-config + + + + + + 2014-09-14 + 6.9.2.0 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + \ No newline at end of file diff --git a/multimedia/graphics/imagemagick/translations.xml b/multimedia/graphics/imagemagick/translations.xml new file mode 100644 index 0000000000..85e3441754 --- /dev/null +++ b/multimedia/graphics/imagemagick/translations.xml @@ -0,0 +1,19 @@ + + + + imagemagick + Resimleri işlemek ve göstermek için bir X uygulaması + Narzędzie do wyświetlania, konwersji i manipulacji grafikami + + + + imagemagick-docs + Imagemagick için API belgeleri + + + + imagemagick-devel + imagemagick için geliştirme dosyaları + Pliki nagłówkowe imagemagick + + \ No newline at end of file