Ticket #2350: Portfile

File Portfile, 1.6 KB (added by reilles@…, 20 years ago)

a proposition for variants

Line 
1# $Id: Portfile,v 1.1 2004/10/21 10:24:43 pguyot Exp $
2
3PortSystem          1.0
4name                camlimages
5version             2.2
6categories          devel graphics
7maintainers         anil@recoil.org
8description         Objective Caml interface to image manipulation functions.
9long_description    Camlimages provides basic functions for image processing \
10                    and loading/saving various image file formats, an \
11                    interface to display images, and a Freetype interface \
12                    to render Truetype fonts.
13homepage            http://pauillac.inria.fr/camlimages/
14configure.env       LDFLAGS="-L${prefix}/lib" CFLAGS="-I${prefix}/include" \
15                    DPORT_CAMLDIR="${prefix}/lib/ocaml"
16patchfiles          patch-configure.diff
17platforms           darwin
18master_sites        ftp://ftp.inria.fr/INRIA/caml-light/bazar-ocaml/
19extract.suffix      .tgz
20build.target        all opt
21checksums           md5 d933eb58c7983f70b1a000fa01893aa4
22depends_lib         bin:camlp4:ocaml lib:libjpeg.62:jpeg \
23                    lib:libtiff.3:tiff lib:libgif:libungif \
24                    lib:libpng:libpng bin:gs:ghostscript
25
26variant lablgtk {
27        configure.args-append --with-lablgtk="${prefix}/lib/ocaml/lablgtk"
28        depends_lib bin:lablgtk:lablgtk
29}
30
31variant lablgl {
32        configure.args-append --with-lablgl="${prefix}/lib/ocaml/lablgl"
33        depends_lib bin:lablglut:lablgl
34}
35
36variant lablgtk2 {
37        configure.args-append --with-lablgtk2="${prefix}/lib/ocaml/lablgtk2"
38        depends_lib bin:lablgtk2:lablgtk2 bin:gdk-pixbuf-config:gdk-pixbuf
39}