GraphicsMagick:moved into main repo for pisi 2.0
This commit is contained in:
@@ -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 autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import perlmodules
|
||||
from pisi.actionsapi import get
|
||||
|
||||
# .la files needed to load modules
|
||||
KeepSpecial = ["libtool"]
|
||||
|
||||
def setup():
|
||||
# ghostscript is better than dps
|
||||
# unstable fpx support disabled
|
||||
# trio is for old systems not providing vsnprintf
|
||||
autotools.configure("--enable-openmp \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--with-threads \
|
||||
--with-modules \
|
||||
--with-magick-plus-plus \
|
||||
--with-perl \
|
||||
--with-bzlib \
|
||||
--without-dps \
|
||||
--without-fpx \
|
||||
--with-gslib \
|
||||
--with-jbig \
|
||||
--with-jpeg \
|
||||
--with-jp2 \
|
||||
--with-lcms \
|
||||
--with-png \
|
||||
--with-tiff \
|
||||
--without-trio \
|
||||
--with-ttf \
|
||||
--with-wmf \
|
||||
--with-fontpath=/usr/share/fonts \
|
||||
--with-gs-font-dir=/usr/share/fonts/default/ghostscript \
|
||||
--with-xml \
|
||||
--with-zlib \
|
||||
--with-x \
|
||||
--with-quantum-depth=16")
|
||||
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
autotools.make("perl-build")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
autotools.rawInstall("DESTDIR=%s -C PerlMagick" % get.installDIR())
|
||||
for d in ("demo/", "Changelog", "README.txt"):
|
||||
pisitools.insinto("/usr/share/doc/PerlMagick", "PerlMagick/%s" % d)
|
||||
|
||||
pisitools.remove("/usr/lib/*.la")
|
||||
perlmodules.removePacklist()
|
||||
perlmodules.removePodfiles()
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -up GraphicsMagick-1.3.14/PerlMagick/Makefile.PL.in.perl_linkage GraphicsMagick-1.3.14/PerlMagick/Makefile.PL.in
|
||||
--- GraphicsMagick-1.3.14/PerlMagick/Makefile.PL.in.perl_linkage 2012-02-25 14:43:38.000000000 -0600
|
||||
+++ GraphicsMagick-1.3.14/PerlMagick/Makefile.PL.in 2012-02-26 07:35:38.542731280 -0600
|
||||
@@ -78,7 +78,7 @@ WriteMakefile
|
||||
'INSTALLBIN' => $magick_BIN_DIR,
|
||||
|
||||
# Library specification
|
||||
- 'LIBS' => ["-L$magick_LIB_DIR -lGraphicsMagick $magick_LDFLAGS $magick_DEP_LIBS"],
|
||||
+ 'LIBS' => ["-L$magick_LIB_DIR -L../magick/.libs -lGraphicsMagick $magick_LDFLAGS $magick_DEP_LIBS"],
|
||||
|
||||
# Perl binary name (if a Perl binary is built)
|
||||
'MAP_TARGET' => 'PerlMagick',
|
||||
@@ -0,0 +1,43 @@
|
||||
diff -up GraphicsMagick-1.3.16/Magick++/bin/GraphicsMagick++-config.in.multilib GraphicsMagick-1.3.16/Magick++/bin/GraphicsMagick++-config.in
|
||||
--- GraphicsMagick-1.3.16/Magick++/bin/GraphicsMagick++-config.in.multilib 2011-11-12 14:39:22.000000000 -0600
|
||||
+++ GraphicsMagick-1.3.16/Magick++/bin/GraphicsMagick++-config.in 2012-06-24 11:25:12.603862643 -0500
|
||||
@@ -33,13 +33,13 @@ while test $# -gt 0; do
|
||||
echo '@MAGICK_API_CPPFLAGS@'
|
||||
;;
|
||||
--cxxflags)
|
||||
- echo '@CXXFLAGS@'
|
||||
+ echo ''
|
||||
;;
|
||||
--ldflags)
|
||||
- echo '@MAGICK_API_LDFLAGS@'
|
||||
+ echo ''
|
||||
;;
|
||||
--libs)
|
||||
- echo '-lGraphicsMagick++ @MAGICK_API_LIBS@'
|
||||
+ echo '-lGraphicsMagick++'
|
||||
;;
|
||||
*)
|
||||
echo "${usage}" 1>&2
|
||||
diff -up GraphicsMagick-1.3.16/magick/GraphicsMagick-config.in.multilib GraphicsMagick-1.3.16/magick/GraphicsMagick-config.in
|
||||
--- GraphicsMagick-1.3.16/magick/GraphicsMagick-config.in.multilib 2011-11-12 14:39:26.000000000 -0600
|
||||
+++ GraphicsMagick-1.3.16/magick/GraphicsMagick-config.in 2012-06-24 11:14:55.947571850 -0500
|
||||
@@ -30,16 +30,16 @@ while test $# -gt 0; do
|
||||
echo @PACKAGE_VERSION@
|
||||
;;
|
||||
--cflags)
|
||||
- echo '@CFLAGS@'
|
||||
+ echo ''
|
||||
;;
|
||||
--cppflags)
|
||||
echo '@MAGICK_API_CPPFLAGS@'
|
||||
;;
|
||||
--ldflags)
|
||||
- echo '@MAGICK_API_LDFLAGS@'
|
||||
+ echo ''
|
||||
;;
|
||||
--libs)
|
||||
- echo '@MAGICK_API_LIBS@'
|
||||
+ echo '-lGraphicsMagick'
|
||||
;;
|
||||
*)
|
||||
echo "${usage}" 1>&2
|
||||
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>GraphicsMagick</Name>
|
||||
<Homepage>http://www.graphicsmagick.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>MIT</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>GraphicsMagick Image Processing System</Summary>
|
||||
<Description>GraphicsMagick is a comprehensive image processing package which is initially based on ImageMagick 5.5.2, but which has undergone significant re-work by the GraphicsMagick Group to significantly improve the quality and performance of the software.</Description>
|
||||
<Archive sha1sum="73042eee48e17d074f68f6f70fc81b221481255a" type="tarxz">mirrors://sourceforge/graphicsmagick/GraphicsMagick-1.3.20.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>tiff-devel</Dependency>
|
||||
<Dependency>webp-devel</Dependency>
|
||||
<Dependency>lcms2-devel</Dependency>
|
||||
<Dependency>libSM-devel</Dependency>
|
||||
<Dependency>libwmf-devel</Dependency>
|
||||
<Dependency>libICE-devel</Dependency>
|
||||
<Dependency>jasper-devel</Dependency>
|
||||
<Dependency>jbigkit-devel</Dependency>
|
||||
<Dependency>libXext-devel</Dependency>
|
||||
<Dependency>libjpeg-turbo-devel</Dependency>
|
||||
<Dependency>ghostscript-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">GraphicsMagick-1.3.14-perl_linkage.patch</Patch>
|
||||
<Patch level="1">GraphicsMagick-1.3.16-multilib.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>GraphicsMagick</Name>
|
||||
<IsA>app:console</IsA>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>tiff</Dependency>
|
||||
<Dependency>webp</Dependency>
|
||||
<Dependency>lcms2</Dependency>
|
||||
<Dependency>libwmf</Dependency>
|
||||
<Dependency>jasper</Dependency>
|
||||
<Dependency>libXext</Dependency>
|
||||
<Dependency>jbigkit</Dependency>
|
||||
<Dependency>libgomp</Dependency>
|
||||
<Dependency>ghostscript</Dependency>
|
||||
<Dependency>libjpeg-turbo</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="executable">/usr/bin/gm</Path>
|
||||
<Path fileType="library">/usr/lib/GraphicsMagick-*</Path>
|
||||
<Path fileType="library">/usr/lib/lib*</Path>
|
||||
<Path fileType="data">/usr/share/GraphicsMagick-*</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>GraphicsMagick-devel</Name>
|
||||
<Summary>Development files for GraphicsMagick</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">GraphicsMagick</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/*-config</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="doc">/usr/share/doc/GraphicsMagick/www</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/*-config.*</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>PerlMagick</Name>
|
||||
<Summary>GraphicsMagick perl bindings</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">GraphicsMagick</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/perl5</Path>
|
||||
<Path fileType="doc">/usr/share/doc/PerlMagick</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="7">
|
||||
<Date>2014-09-13</Date>
|
||||
<Version>1.3.20</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2014-06-19</Date>
|
||||
<Version>1.3.19</Version>
|
||||
<Comment>Rebuild for gcc</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-04-23</Date>
|
||||
<Version>1.3.19</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Varol Maksutoğlu</Name>
|
||||
<Email>waroi@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-02-07</Date>
|
||||
<Version>1.3.19</Version>
|
||||
<Comment>Rebuild Unused</Comment>
|
||||
<Name>Varol Maksutoğlu</Name>
|
||||
<Email>waroi@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-01-04</Date>
|
||||
<Version>1.3.19</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-07-29</Date>
|
||||
<Version>1.3.17</Version>
|
||||
<Comment>Dep fixed</Comment>
|
||||
<Name>Fatih Turgel</Name>
|
||||
<Email>hitaf@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-11-22</Date>
|
||||
<Version>1.3.17</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>GraphicsMagick</Name>
|
||||
<Summary xml:lang="tr">GraphicsMagick Resim İşleme Sistemi</Summary>
|
||||
<Description xml:lang="tr">GraphicsMagick, başlangıçta ImageMagick 5.5.2 sürümünü temel almış kapsamlı bir resim işleme paketidir. Yazılımın kalitesini ve performansını önemli derecede artırmak için bu pakette büyük bir değişiklik yapılmıştır.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user