/
Portfile
98 lines (80 loc) · 3.61 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
name GraphicsMagick
version 1.3.32
revision 0
checksums rmd160 1d2db9804e2fc31223219abd9653896be641b0af \
sha256 b842a5a0d6c84fd6c5f161b5cd8e02bbd210b0c0b6728dd762b7c53062ba94e1 \
size 5535224
set branch [join [lrange [split ${version} .] 0 1] .]
categories graphics
platforms darwin
maintainers {ryandesign @ryandesign} openmaintainer
license MIT
description image processing tools collection
long_description GraphicsMagick is the swiss army knife of image \
processing. It provides a robust collection of tools and \
libraries which support reading, writing, and manipulating an \
image in over 88 major formats including important formats \
like DPX, GIF, JPEG, JPEG-2000, PNG, PDF, SVG, and TIFF.
homepage http://www.graphicsmagick.org/
master_sites sourceforge:project/graphicsmagick/graphicsmagick/${version} \
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/${branch}/
depends_lib port:libxml2 \
port:bzip2 \
port:xz \
port:zlib \
port:libpng \
port:tiff \
port:freetype \
port:libiconv \
port:libtool \
port:lcms2 \
port:jasper \
port:jpeg \
port:webp
use_xz yes
# llvm-gcc-4.2 gives "Undefined symbols for architecture x86_64: ___builtin_object_size"
compiler.blacklist *llvm-gcc-4.2
configure.args --with-jbig=no \
--with-jpeg=yes \
--with-wmf=no \
--with-dps=no \
--with-gslib=no \
--with-lcms2=yes \
--with-x=no \
--with-perl=no \
--with-trio=no \
--with-jp2=yes \
--with-fpx=no \
--with-png=yes \
--with-tiff=yes \
--with-bzlib=yes \
--with-lzma=yes \
--with-zlib=yes \
--with-xml=yes \
--with-ttf=yes \
--with-webp=yes \
--without-umem \
--enable-shared=yes
use_parallel_build yes
post-configure {
reinplace -E {s|-arch [a-z0-9_]+||g} \
${worksrcpath}/magick/GraphicsMagick-config \
${worksrcpath}/Magick++/bin/GraphicsMagick++-config
}
test.run yes
test.target check
variant q8 conflicts q16 q32 description {Use 8 bits per pixel quantum} {
configure.args-append --with-quantum-depth=8
}
variant q16 conflicts q8 q32 description {Use 16 bits per pixel quantum} {
configure.args-append --with-quantum-depth=16
}
variant q32 conflicts q8 q16 description {Use 32 bits per pixel quantum} {
configure.args-append --with-quantum-depth=32
}
if {![variant_isset q16] && ![variant_isset q32]} {
default_variants +q8
}
livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}