Ticket #44543: Portfile

File Portfile, 2.8 KB (added by mdeters@…, 10 years ago)

updated Portfile for cvc4

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5
6name                cvc4
7version             1.4
8revision            2
9categories          math devel
10platforms           darwin
11maintainers         cs.nyu.edu:mdeters
12description         An automated theorem prover for SMT problems
13long_description    CVC4 is a tool for determining the satisfiability of a first order formula \
14                    modulo a first order theory (or a combination of such theories). It is the \
15                    fourth in the Cooperating Validity Checker family of tools (CVC, CVC Lite, \
16                    CVC3) but does not directly incorporate code from any previous version. \
17                    \
18                    CVC4 is intended to be an open and extensible SMT engine. It can be used \
19                    as a stand-alone tool or as a library. It has been designed to increase \
20                    the performance and reduce the memory overhead of its predecessors.
21license             BSD
22homepage            http://cvc4.cs.nyu.edu/
23master_sites        http://cvc4.cs.nyu.edu/builds/src/
24checksums           rmd160 726f673afe0417bccdde9a2f038da5f642958d15 \
25                    sha256 76fe4ff9eb9ad7d65589efb47d41aae95f3191bd0d0c3940698a7cb2df3f7024
26depends_lib         port:gmp
27depends_build       port:boost \
28                    port:doxygen \
29                    bin:curl:curl \
30                    bin:bash:bash \
31                    bin:awk:gawk
32conflicts           cvc4-devel
33configure.args      --enable-static --enable-shared --with-build=production \
34                    --bsd --with-gmp --with-compat \
35                    --disable-doxygen-pdf --enable-doxygen-dot \
36                    --with-antlr-dir="${worksrcpath}/antlr-3.4" \
37                    ANTLR="${worksrcpath}/antlr-3.4/bin/antlr3"
38# --enable-language-bindings=c,java
39# --with-portfolio
40test.run            yes
41
42variant debug description {Build a "debug" copy} {
43    configure.args-replace --with-build=production --with-build=debug
44}
45
46pre-configure {
47    system "MACHINE_TYPE=`${worksrcpath}/config/config.guess | cut -f1 -d-` ANTLR_CONFIGURE_ARGS=--disable-abiflags ${worksrcpath}/contrib/get-antlr-3.4"
48}
49
50post-build {
51    system "make -C \"${worksrcpath}\" doc"
52}
53
54destroot {
55    # strip binaries and libraries
56    system "make -C \"${worksrcpath}\" install-strip DESTDIR=\"${destroot}\""
57}
58
59post-destroot {
60    file mkdir "${destroot}${prefix}/share/doc/${name}/doxygen"
61    file copy "${worksrcpath}/doc/doxygen/html" \
62          "${destroot}${prefix}/share/doc/${name}/doxygen/html"
63    system "make -C \"${worksrcpath}\" install-examples DESTDIR=\"${destroot}\""
64}
65
66livecheck.type          regex
67livecheck.url           ${master_sites}
68livecheck.regex         cvc4-(\[0-9.\]+)\\.tar\\.gz