ımagemagick:legacy

This commit is contained in:
blue-devil
2020-09-16 02:17:56 +02:00
parent 2e1ec8b246
commit 3a09d10ef7
4 changed files with 210 additions and 0 deletions
@@ -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")
@@ -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@' && \
+107
View File
@@ -0,0 +1,107 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>imagemagick6</Name>
<Homepage>https://legacy.imagemagick.org/</Homepage>
<Packager>
<Name>Pisilinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<PartOf>multimedia.graphics</PartOf>
<License>as-is</License>
<IsA>app:gui</IsA>
<Summary>A collection of tools and libraries for many image file formats.</Summary>
<Description>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.</Description>
<Archive sha1sum="623ca64d1681fdafc238da0ca7b10a6afa4cac39" type="tarxz">
https://imagemagick.org/download/releases/ImageMagick-6.9.11-29.tar.xz
</Archive>
<BuildDependencies>
<Dependency>intltool</Dependency>
<Dependency>zstd-devel</Dependency>
<Dependency>tiff-devel</Dependency>
<Dependency>webp-devel</Dependency>
<Dependency>cairo-devel</Dependency>
<Dependency>fftw3-devel</Dependency>
<Dependency>lcms2-devel</Dependency>
<Dependency>libpng-devel</Dependency>
<Dependency>libwmf-devel</Dependency>
<Dependency>liblqr-devel</Dependency>
<Dependency>jasper-devel</Dependency>
<Dependency>libgxps-devel</Dependency>
<Dependency>librsvg-devel</Dependency>
<Dependency>openexr-devel</Dependency>
<Dependency>libXext-devel</Dependency>
<Dependency>fontconfig-devel</Dependency>
<Dependency>ghostscript-devel</Dependency>
<Dependency>libjpeg-turbo-devel</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level="0">perlmagick.rpath.patch</Patch> -->
</Patches>
</Source>
<Package>
<Name>imagemagick6</Name>
<RuntimeDependencies>
<Dependency>tiff</Dependency>
<Dependency>webp</Dependency>
<Dependency>fftw3</Dependency>
<Dependency>lcms2</Dependency>
<Dependency>liblqr</Dependency>
<Dependency>libpng</Dependency>
<Dependency>libwmf</Dependency>
<Dependency>libgxps</Dependency>
<Dependency>libXext</Dependency>
<Dependency>libgomp</Dependency>
<Dependency>freetype</Dependency>
<Dependency>fontconfig</Dependency>
<Dependency>ghostscript</Dependency>
<Dependency>openexr-libs</Dependency>
<Dependency>libjpeg-turbo</Dependency>
</RuntimeDependencies>
<Files>
<!-- This is just a legacy version of ImageMagick
We only need libraries
<Path fileType="executable">/usr/bin</Path>
-->
<Path fileType="config">/etc/ImageMagick-6/</Path>
<Path fileType="library">/usr/lib/libMagick*</Path>
<Path fileType="data">/usr/share/ImageMagick-*</Path>
<Path fileType="library">/usr/lib/ImageMagick-6*</Path>
<Path fileType="doc">/usr/share/doc/imagemagick6/LICENSE</Path>
<Path fileType="doc">/usr/share/doc/imagemagick6/README.txt</Path>
</Files>
</Package>
<Package>
<Name>imagemagick6-docs</Name>
<IsA>data:doc</IsA>
<Summary>HTML documentation for imagemagick6</Summary>
<Files>
<Path fileType="doc">/usr/share/doc/imagemagick6/html</Path>
</Files>
</Package>
<Package>
<Name>imagemagick6-devel</Name>
<Summary>Development files for imagemagick6</Summary>
<RuntimeDependencies>
<Dependency release="current">imagemagick6</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/imagemagick6/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-09-14</Date>
<Version>6.9.11.29</Version>
<Comment>ver6 rebuild.</Comment>
<Name>fury</Name>
<Email>wascheme@tuta.io</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,21 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>imagemagick6</Name>
<Summary xml:lang="tr">Resimleri işlemek ve göstermek için bir X uygulaması</Summary>
<Summary xml:lang="pl">Narzędzie do wyświetlania, konwersji i manipulacji grafikami</Summary>
</Source>
<Package>
<Name>imagemagick6-docs</Name>
<Summary xml:lang="tr">Imagemagick6 için API belgeleri</Summary>
<Description xml:lang="tr">imagemagick6-docs, imagemagick6 için belgelendirme dosyalarını içerir.</Description>
</Package>
<Package>
<Name>imagemagick6-devel</Name>
<Summary xml:lang="tr">imagemagick6 için geliştirme dosyaları</Summary>
<Description xml:lang="tr">imagemagick6-devel, imagemagick6 için geliştirme dosyalarını içerir.</Description>
<Summary xml:lang="pl">Pliki nagłówkowe imagemagick6</Summary>
</Package>
</PISI>