source: trunk/dports/devel/camlimages/Portfile

Last change on this file was 147230, checked in by cal@…, 20 months ago

ghostscript: 9.19, #49324

Update ghostscript to the latest release. Additionally,

  • declare the BSD license of the mappingresources incorporated into the package
  • change the homepage to ghostscript.com
  • update mappingresources to the latest version
  • use MacPorts' lcms2
  • remove use_parallel_build yes, which is the default
  • revbump all dependencies but gimp2-devel, gimp3-devel and goffice because the maintainer will take care of them (see #49324)

Closes #49324, #50475

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 147230 2016-03-31 19:52:33Z ryandesign@macports.org $
2
3PortSystem                      1.0
4
5name                            camlimages
6version                         4.0.1
7revision            12
8categories                      devel graphics
9license             {LGPL-2 Permissive}
10maintainers                     nomaintainer
11description                     Objective Caml interface to image manipulation functions.
12long_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.
16homepage                        http://gallium.inria.fr/camlimages/
17
18patchfiles                      patch-src-jpegread.c.diff patch-png.diff
19
20platforms                       darwin
21
22master_sites                    https://bitbucket.org/camlspotter/camlimages/get/
23
24distname            v${version}
25checksums                       rmd160 dd3a1aeb43bc7459781958a93db23ce32d0ca6e6 \
26                    sha256 b40237c1505487049799a7af296eb3996b3fa08eab94415546f46d61355747c4
27
28depends_build       port:ocaml-findlib port:omake
29depends_lib                     port:ocaml port:jpeg \
30                                port:tiff port:giflib \
31                                port:libpng port:ghostscript port:xpm
32
33worksrcdir      camlspotter-${name}-c803efa9d5d3
34
35use_configure   no
36if {${build_arch} eq "i386" || ${build_arch} eq "ppc"} {
37    configure.ld_archflags -m32
38} else {
39    configure.ld_archflags -m64
40}
41
42build.cmd       omake
43build.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
48destroot.args   ${build.args}
49pre-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
56variant 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}
Note: See TracBrowser for help on using the repository browser.