| 1 | NAME = imagemagick |
|---|
| 2 | VERSION = 6.7.3 |
|---|
| 3 | GARSUBREV = 10 |
|---|
| 4 | CATEGORIES = lib |
|---|
| 5 | GARTYPE = v2 |
|---|
| 6 | |
|---|
| 7 | DESCRIPTION = A comprehensive package supporting automated and interative manipulation of images |
|---|
| 8 | define BLURB |
|---|
| 9 | ImageMagick is a robust collection of tools and libraries offered under a |
|---|
| 10 | usage license to read, write, and manipulate an image in many image formats |
|---|
| 11 | (over 89 major formats) including popular formats like TIFF, JPEG, PNG, PDF, |
|---|
| 12 | PhotoCD, and GIF. |
|---|
| 13 | endef |
|---|
| 14 | |
|---|
| 15 | MASTER_SITES = ftp://ftp.imagemagick.org/pub/ImageMagick/ |
|---|
| 16 | DISTNAME = ImageMagick-$(VERSION)-$(GARSUBREV) |
|---|
| 17 | DISTFILES = $(DISTNAME).tar.xz |
|---|
| 18 | |
|---|
| 19 | PATCHFILES += 0001-Do-not-strip-norunpath.patch |
|---|
| 20 | |
|---|
| 21 | PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386 |
|---|
| 22 | |
|---|
| 23 | # Compilation breaks with internal error on SOS12 and SOS12U1 |
|---|
| 24 | GARCOMPILER = SOS12U2 |
|---|
| 25 | |
|---|
| 26 | VENDOR_URL = http://www.imagemagick.org |
|---|
| 27 | |
|---|
| 28 | LICENSE = LICENSE |
|---|
| 29 | |
|---|
| 30 | BUILD_DEP_PKGS += CSWdjvulibredevel |
|---|
| 31 | BUILD_DEP_PKGS += CSWgraphvizdevel |
|---|
| 32 | BUILD_DEP_PKGS += CSWilmbasedevel |
|---|
| 33 | BUILD_DEP_PKGS += CSWliblcms-dev |
|---|
| 34 | BUILD_DEP_PKGS += CSWlibcairo-dev |
|---|
| 35 | BUILD_DEP_PKGS += CSWliblqrdevel |
|---|
| 36 | BUILD_DEP_PKGS += CSWlibwmf-dev |
|---|
| 37 | BUILD_DEP_PKGS += CSWliblzma-dev |
|---|
| 38 | BUILD_DEP_PKGS += CSWopenexrdevel |
|---|
| 39 | BUILD_DEP_PKGS += CSWlibwebp-dev |
|---|
| 40 | BUILD_DEP_PKGS += CSWlibfpx-dev |
|---|
| 41 | |
|---|
| 42 | PACKAGES += CSWlibmagick++5 |
|---|
| 43 | PKGFILES_CSWlibmagick++5 += $(call pkgfiles_lib,libMagick++.so.5) |
|---|
| 44 | SPKG_DESC_CSWlibmagick++5 += Library from ImageMagick, libMagick++.so.5 |
|---|
| 45 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWlibltdl7 |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWlibjpeg7 |
|---|
| 47 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWliblcms2-2 |
|---|
| 48 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWliblqr1-0 |
|---|
| 49 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWlibintl8 |
|---|
| 50 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWlibtiff3 |
|---|
| 51 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWlibmagickcore5 |
|---|
| 52 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWlibz1 |
|---|
| 53 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWftype2 |
|---|
| 54 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWlibbz2-1-0 |
|---|
| 55 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWlibmagickwand5 |
|---|
| 56 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWfconfig |
|---|
| 57 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWlibglib2-0-0 |
|---|
| 58 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWlibfftw3-3 |
|---|
| 59 | RUNTIME_DEP_PKGS_CSWlibmagick++5 += CSWliblzma5 |
|---|
| 60 | |
|---|
| 61 | PACKAGES += CSWlibmagickcore5 |
|---|
| 62 | PKGFILES_CSWlibmagickcore5 += $(call pkgfiles_lib,libMagickCore.so.5) |
|---|
| 63 | SPKG_DESC_CSWlibmagickcore5 += Library from ImageMagick, libMagickCore.so.5 |
|---|
| 64 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWlibltdl7 |
|---|
| 65 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWlibjpeg7 |
|---|
| 66 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWliblcms2-2 |
|---|
| 67 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWliblqr1-0 |
|---|
| 68 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWlibintl8 |
|---|
| 69 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWlibtiff3 |
|---|
| 70 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWlibz1 |
|---|
| 71 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWftype2 |
|---|
| 72 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWlibbz2-1-0 |
|---|
| 73 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWfconfig |
|---|
| 74 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWlibglib2-0-0 |
|---|
| 75 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWlibfftw3-3 |
|---|
| 76 | RUNTIME_DEP_PKGS_CSWlibmagickcore5 += CSWliblzma5 |
|---|
| 77 | |
|---|
| 78 | # Gnuplot is detected by the magic cookie #!/usr/local/bin/gnuplot |
|---|
| 79 | # XXX: Is this correct? |
|---|
| 80 | # CHECKPKG_OVERRIDES_CSWlibmagickcore5 += file-with-bad-content|/usr/local|root/opt/csw/lib/libMagickCore.so.5.0.0 |
|---|
| 81 | |
|---|
| 82 | PACKAGES += CSWlibmagickwand5 |
|---|
| 83 | PKGFILES_CSWlibmagickwand5 += $(call pkgfiles_lib,libMagickWand.so.5) |
|---|
| 84 | SPKG_DESC_CSWlibmagickwand5 += Library from ImageMagick, libMagickWand.so.5 |
|---|
| 85 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWlibltdl7 |
|---|
| 86 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWlibjpeg7 |
|---|
| 87 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWliblcms2-2 |
|---|
| 88 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWliblqr1-0 |
|---|
| 89 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWlibintl8 |
|---|
| 90 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWlibtiff3 |
|---|
| 91 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWlibmagickcore5 |
|---|
| 92 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWlibz1 |
|---|
| 93 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWftype2 |
|---|
| 94 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWlibbz2-1-0 |
|---|
| 95 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWfconfig |
|---|
| 96 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWlibglib2-0-0 |
|---|
| 97 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWlibfftw3-3 |
|---|
| 98 | RUNTIME_DEP_PKGS_CSWlibmagickwand5 += CSWliblzma5 |
|---|
| 99 | |
|---|
| 100 | PACKAGES += CSWimagemagick-dev |
|---|
| 101 | SPKG_DESC_CSWimagemagick-dev = Development files for ImageMagick libraries |
|---|
| 102 | # In man3 there is just the manpage for the Perl module |
|---|
| 103 | PKGFILES_DEVEL_MAN3_MANPAGE = |
|---|
| 104 | PKGFILES_CSWimagemagick-dev += $(PKGFILES_DEVEL) |
|---|
| 105 | PKGFILES_CSWimagemagick-dev += $(docdir)/.* |
|---|
| 106 | RUNTIME_DEP_PKGS_CSWimagemagick-dev += CSWlibmagick++5 |
|---|
| 107 | RUNTIME_DEP_PKGS_CSWimagemagick-dev += CSWlibmagickcore5 |
|---|
| 108 | RUNTIME_DEP_PKGS_CSWimagemagick-dev += CSWlibmagickwand5 |
|---|
| 109 | RUNTIME_DEP_PKGS_CSWimagemagick-dev += CSWperl |
|---|
| 110 | # This is all in /opt/csw/share/doc |
|---|
| 111 | CHECKPKG_OVERRIDES_CSWimagemagick-dev += file-with-bad-content |
|---|
| 112 | |
|---|
| 113 | PACKAGES += CSWimagemagick |
|---|
| 114 | SPKG_DESC_CSWimagemagick = A comprehensive package supporting automated and interative manipulation of images |
|---|
| 115 | # PKGFILES is catchall |
|---|
| 116 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibmagickcore5 |
|---|
| 117 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibmagickwand5 |
|---|
| 118 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWliblcms2-2 |
|---|
| 119 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibbz2-1-0 |
|---|
| 120 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWilmbase |
|---|
| 121 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibpng12-0 |
|---|
| 122 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibgdk-pixbuf2-0-0 |
|---|
| 123 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibgthread2-0-0 |
|---|
| 124 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibgmodule2-0-0 |
|---|
| 125 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibgobject2-0-0 |
|---|
| 126 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibgio2-0-0 |
|---|
| 127 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibglib2-0-0 |
|---|
| 128 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibltdl7 |
|---|
| 129 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibjpeg7 |
|---|
| 130 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibfpx1 |
|---|
| 131 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWjasper |
|---|
| 132 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibintl8 |
|---|
| 133 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibtiff3 |
|---|
| 134 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibxml2-2 |
|---|
| 135 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWfconfig |
|---|
| 136 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWjbigkit |
|---|
| 137 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWliblqr1-0 |
|---|
| 138 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibcdt5 |
|---|
| 139 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibz1 |
|---|
| 140 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWftype2 |
|---|
| 141 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibrsvg2-2 |
|---|
| 142 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWopenexrrt |
|---|
| 143 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWdjvulibrert |
|---|
| 144 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibgraph5 |
|---|
| 145 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWpango |
|---|
| 146 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibcairo2 |
|---|
| 147 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibgvc6 |
|---|
| 148 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibfftw3-3 |
|---|
| 149 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibwmf0-2-7 |
|---|
| 150 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibwmflite0-2-7 |
|---|
| 151 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWliblzma5 |
|---|
| 152 | RUNTIME_DEP_PKGS_CSWimagemagick += CSWlibwebp0 |
|---|
| 153 | |
|---|
| 154 | PACKAGES += CSWpm-image-magick |
|---|
| 155 | SPKG_DESC_CSWpm-image-magick = Image::Magick: Perl binding for Imagemagick |
|---|
| 156 | PKGFILES_CSWpm-image-magick += $(libdir)/perl/.* |
|---|
| 157 | PKGFILES_CSWpm-image-magick += $(mandir)/.*\.3perl |
|---|
| 158 | |
|---|
| 159 | RUNTIME_DEP_PKGS_CSWpm-image-magick += CSWperl |
|---|
| 160 | RUNTIME_DEP_PKGS_CSWpm-image-magick += CSWlibmagickcore5 |
|---|
| 161 | |
|---|
| 162 | REINPLACE_USRLOCAL += config/mime.xml |
|---|
| 163 | |
|---|
| 164 | REINPLACEMENTS += gnuplot |
|---|
| 165 | REINPLACE_MATCH_gnuplot = /usr/local/bin/gnuplot |
|---|
| 166 | REINPLACE_WITH_gnuplot = $(bindir)/gnuplot |
|---|
| 167 | REINPLACE_FILES_gnuplot += magick/magic.c |
|---|
| 168 | |
|---|
| 169 | # This is part of ImageMagick and should be automatically adjusted during configure time |
|---|
| 170 | REINPLACEMENTS += display |
|---|
| 171 | REINPLACE_MATCH_display = /usr/local/bin/display |
|---|
| 172 | REINPLACE_WITH_display = $(bindir)/display |
|---|
| 173 | REINPLACE_FILES_display += magick/delegate.c |
|---|
| 174 | |
|---|
| 175 | REINPLACEMENTS += nostdcpplib |
|---|
| 176 | REINPLACE_MATCH_nostdcpplib = -lstdc\+\+ |
|---|
| 177 | REINPLACE_WITH_nostdcpplib = |
|---|
| 178 | REINPLACE_FILES_nostdcpplib = Makefile.in |
|---|
| 179 | |
|---|
| 180 | EXTRA_LINKER_FLAGS = -norunpath |
|---|
| 181 | |
|---|
| 182 | # This is for libdps, skipping this line makes the following tests fail: |
|---|
| 183 | # FAIL: tests/validate-formats-on-disk.sh |
|---|
| 184 | # FAIL: Magick++/tests/coderInfo.sh |
|---|
| 185 | EXTRA_LIB = /usr/openwin/lib |
|---|
| 186 | |
|---|
| 187 | # We especially don't want ISALIST for the above /usr/openwin/lib |
|---|
| 188 | # This should be reworked after a general rework of ISALIST in GAR |
|---|
| 189 | RUNPATH_ISALIST = $(libpath_install) |
|---|
| 190 | |
|---|
| 191 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 192 | CONFIGURE_ARGS += --enable-shared --disable-static |
|---|
| 193 | CONFIGURE_ARGS += --enable-hdri |
|---|
| 194 | CONFIGURE_ARGS += --with-dps=yes |
|---|
| 195 | |
|---|
| 196 | # Ghostscript lib is linked to Sun X11 |
|---|
| 197 | # CONFIGURE_ARGS += --with-gslib=no |
|---|
| 198 | |
|---|
| 199 | CONFIGURE_ARGS += --with-modules=yes |
|---|
| 200 | CONFIGURE_ARGS += --disable-silent-rules |
|---|
| 201 | |
|---|
| 202 | # Until librsvg,graphviz and perl is 64bit |
|---|
| 203 | CONFIGURE_ARGS-32 += --with-perl=$(bindir)/perl |
|---|
| 204 | CONFIGURE_ARGS-64 += --without-gvc |
|---|
| 205 | CONFIGURE_ARGS-64 += --without-perl |
|---|
| 206 | CONFIGURE_ARGS += $(CONFIGURE_ARGS-$(MEMORYMODEL)) |
|---|
| 207 | |
|---|
| 208 | # One test is failing: |
|---|
| 209 | # FAIL: Magick++/tests/attributes.sh |
|---|
| 210 | # This has been reported upstream at |
|---|
| 211 | # http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=18889 |
|---|
| 212 | SKIPTEST ?= 1 |
|---|
| 213 | |
|---|
| 214 | BUILD64 = 1 |
|---|
| 215 | ISAEXEC = 1 |
|---|
| 216 | |
|---|
| 217 | # Only remove libtool files from the public lib directory, keep the private ones for libtool dlopn |
|---|
| 218 | MERGE_EXCLUDE_LIBTOOL ?= $(libdir)/lib.*\.la |
|---|
| 219 | |
|---|
| 220 | EXTRA_MERGE_EXCLUDE_FILES += .*/perllocal.pod |
|---|
| 221 | EXTRA_MERGE_EXCLUDE_FILES += .*/\.packlist |
|---|
| 222 | |
|---|
| 223 | EXTRA_PAX_ARGS += -s ',$(bindir)/compare,$(bindir)/compare-imagemagick,' |
|---|
| 224 | EXTRA_PAX_ARGS += -s ',$(mandir)/man1/compare\.1,$(mandir)/man1/compare-imagemagick.1,' |
|---|
| 225 | |
|---|
| 226 | include gar/category.mk |
|---|
| 227 | |
|---|
| 228 | SPKG_REVSTAMP := $(SPKG_REVSTAMP)_rev=$(GARSUBREV) |
|---|