1 | # $Id: Portfile 147230 2016-03-31 19:52:33Z cal@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name camlimages |
---|
6 | version 4.0.1 |
---|
7 | revision 12 |
---|
8 | categories devel graphics |
---|
9 | license {LGPL-2 Permissive} |
---|
10 | maintainers nomaintainer |
---|
11 | description Objective Caml interface to image manipulation functions. |
---|
12 | long_description Camlimages provides basic functions for image processing \ |
---|
13 | and loading/saving various image file formats, an \ |
---|
14 | interface to display images, and a Freetype interface \ |
---|
15 | to render TrueType fonts. |
---|
16 | homepage http://gallium.inria.fr/camlimages/ |
---|
17 | |
---|
18 | patchfiles patch-src-jpegread.c.diff patch-png.diff |
---|
19 | |
---|
20 | platforms darwin |
---|
21 | |
---|
22 | master_sites https://bitbucket.org/camlspotter/camlimages/get/ |
---|
23 | |
---|
24 | distname v${version} |
---|
25 | checksums rmd160 dd3a1aeb43bc7459781958a93db23ce32d0ca6e6 \ |
---|
26 | sha256 b40237c1505487049799a7af296eb3996b3fa08eab94415546f46d61355747c4 |
---|
27 | |
---|
28 | depends_build port:ocaml-findlib port:omake |
---|
29 | depends_lib port:ocaml port:jpeg \ |
---|
30 | port:tiff port:giflib \ |
---|
31 | port:libpng port:ghostscript port:xpm |
---|
32 | |
---|
33 | worksrcdir camlspotter-${name}-c803efa9d5d3 |
---|
34 | |
---|
35 | use_configure no |
---|
36 | if {${build_arch} eq "i386" || ${build_arch} eq "ppc"} { |
---|
37 | configure.ld_archflags -m32 |
---|
38 | } else { |
---|
39 | configure.ld_archflags -m64 |
---|
40 | } |
---|
41 | |
---|
42 | build.cmd omake |
---|
43 | build.args --verbose INCLUDES="${prefix}/include" \ |
---|
44 | LDFLAGS='${configure.ldflags} ${configure.ld_archflags}' \ |
---|
45 | CFLAGS='${configure.cflags} ${configure.cc_archflags}' \ |
---|
46 | CC=${configure.cc} CXX=${configure.cxx} \ |
---|
47 | SUPPORT_LABLGTK2=false |
---|
48 | destroot.args ${build.args} |
---|
49 | pre-destroot { |
---|
50 | set ocaml_destdir "${destroot}[exec ocamlfind printconf destdir]" |
---|
51 | xinstall -d ${ocaml_destdir} |
---|
52 | destroot.env OCAMLFIND_DESTDIR="${ocaml_destdir}" \ |
---|
53 | OCAMLFIND_LDCONF=ignore |
---|
54 | } |
---|
55 | |
---|
56 | variant lablgtk2 { |
---|
57 | build.args-delete SUPPORT_LABLGTK2=false |
---|
58 | destroot.args-delete SUPPORT_LABLGTK2=false |
---|
59 | build.args-append SUPPORT_LABLGTK2=true |
---|
60 | destroot.args-append SUPPORT_LABLGTK2=true |
---|
61 | depends_lib-append port:lablgtk2 |
---|
62 | } |
---|