source: trunk/dports/devel/camlimages/Portfile @ 136285

Last change on this file since 136285 was 136285, checked in by ionic@…, 4 years ago

misc: revbump ports dependent upon ghostscript (excluding runtime-only dependents.)

Affected ports:

  • camlimages
  • srecord
  • gramps
  • goffice
  • ImageMagick
  • asymptote
  • gimp2-devel
  • gimp2
  • gimp3-devel
  • gl2ps
  • gle-graphics
  • sam2p
  • claws-mail
  • pyxplot
  • epstool
  • ghostscript-fonts-hiragino
  • libspectre
  • scribus
  • impressive
  • gmt4
  • gmt5
  • gri
  • magicspp
  • groff
  • littleutils
  • dvipng
  • lilypond-devel
  • lilypond
  • xmlstarlet
  • xcircuit-devel
  • xcircuit
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 136285 2015-05-14 03:21:00Z ionic@macports.org $
2
3PortSystem                      1.0
4
5name                            camlimages
6version                         4.0.1
7revision            11
8categories                      devel graphics
9license             {LGPL-2 Permissive}
10maintainers                     loria.fr:reilles
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.