Ticket #10958: Portfile

File Portfile, 1.6 KB (added by jcbuffington@…, 18 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name                    findlib
6version                 1.1.2pl1
7categories              devel
8description             OCaml package management
9platforms               darwin
10maintainers             web@jon.buffington.name
11homepage                http://www.ocaml-programming.de/programming/findlib.html
12master_sites    http://www.ocaml-programming.de/packages/
13checksums               md5 df4c9176e9d5b8a6d37668d108fae923
14depends_lib             port:ocaml
15
16long_description \
17                        The "findlib" library provides a scheme to manage reusable software \
18                        components (packages), and includes tools that support this scheme. \
19                        Packages are collections of OCaml modules for which metainformation \
20                        can be stored. The packages are kept in the filesystem hierarchy, \
21                        but with strict directory structure. The library contains functions \
22                        to look the directory up that stores a package, to query \
23                        metainformation about a package, and to retrieve dependency \
24                        information about multiple packages. There is also a tool that \
25                        allows the user to enter queries on the command-line. In order to \
26                        simplify compilation and linkage, there are new frontends of the \
27                        various OCaml compilers that can directly deal with packages.
28
29# turn-off default "--prefix" argument
30configure.pre_args
31
32# configure building of scripts by using final destination
33configure.args  -bindir ${prefix}/bin \
34                                        -mandir ${prefix}/share/man \
35                                        -sitelib ${prefix}/lib/ocaml/site-lib \
36                                        -config ${prefix}/etc/ocaml/findlib.conf
37
38# build both bytecode and native versions
39build.target    all opt
40
41# change install locations to destroot'ed values for install
42pre-destroot {
43        reinplace "s:${prefix}:${destroot}${prefix}:g" \
44                                        ${worksrcpath}/Makefile.config
45}