source: trunk/dports/devel/ocaml-magic/Portfile

Last change on this file was 137992, checked in by mww@…, 2 years ago

inc. revision to rebuild library dependents of ocaml (ocaml update to version 4.02.2)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 137992 2015-06-24 16:17:51Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                ocaml-magic
6version             0.7.3
7revision            4
8categories          devel ml sysutils
9license             LGPL-2.1
10maintainers         rastageeks.org:toots
11description         OCaml bindings for the libmagic file MIME detection library
12long_description    OCaml Magic is a binding to libmagic. It tries to \
13                    classify files using various tests (filesystem tests, \
14                    magic number tests, and language tests).
15homepage            http://savonet.sf.net/
16platforms           darwin
17master_sites        sourceforge
18
19checksums           md5  5b8a4d149fe8ce095ab8115f2e49beba \
20                    sha1  1722b189b2d530d313e990a21d94c39749edeb7e \
21                    rmd160  f4ab1763f84ecd95656a85d100fb9d63b53f5868
22
23depends_lib         port:ocaml \
24                    port:ocaml-findlib \
25                    port:file
26
27build.args          INCDIRS=${prefix}/include  LIBDIRS=${prefix}/lib
28
29pre-destroot {
30  set ocamlfind_destdir "${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]"
31  file mkdir $ocamlfind_destdir
32  reinplace "s#\$(OCAMLFIND_INSTFLAGS)# -ldconf ignore -destdir '$ocamlfind_destdir'#g" \
33    ${worksrcpath}/OCamlMakefile
34}
Note: See TracBrowser for help on using the repository browser.