Ticket #19358: Portfile

File Portfile, 1.9 KB (added by max@…, 15 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                Vidalia
6version             0.1.12
7categories          security net
8maintainers         inmachina.com:max openmaintainer
9description         Vidalia is a controller GUI for the Tor software
10long_description    Vidalia is a cross-platform controller GUI for the Tor software, \
11                                        built using the Qt framework. Vidalia runs on most platforms \
12                                        supported by Qt 4.2 or later, including Windows, Mac OS X, and \
13                                        Linux or other Unix variants using the X11 window system.       
14
15platforms           darwin
16
17homepage            https://www.torproject.org/vidalia
18master_sites        ${homepage}/dist/
19distname            vidalia-${version}
20
21checksums           md5     5820043228e7303fa4bee714bd839804 \
22                    sha1    c2ac49d051e67db9f4b15ecbdd8c02fb5a4c20be \
23                                        rmd160  b9e45af1d648db10c52eda95c606ede2f90bd99b
24
25depends_build-append bin:cmake:cmake
26depends_lib-append  port:tor port:qt4-mac
27
28set qmake_path      ${prefix}/bin/qmake
29build.target
30
31configure.args  \
32        -DCMAKE_C_COMPILER=${configure.cc} \
33                -DCMAKE_LIBRARY_PATH:PATH=${prefix}/lib \
34        -DCMAKE_INCLUDE_PATH:PATH=${prefix}/include \
35        -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
36        -DQT_LIBRARY_DIR=${frameworks_dir} \
37        -DQT_QMAKE_EXECUTABLE=${qmake_path}-mac
38
39configure.env   \
40        LDFLAGS="-L${prefix}/lib" \
41        CPPFLAGS="-I${prefix}/include"
42
43configure   {
44        system "cd ${worksrcpath} && ${configure.env} cmake ${configure.args} ."
45}
46
47destroot {
48        file mkdir ${destroot}${applications_dir}
49        file rename ${worksrcpath}/src/vidalia/Vidalia.app ${destroot}${applications_dir}
50}
51
52variant x11 description {build with qt4-x11} {
53        depends_lib-delete port:qt4-mac
54        configure.args-delete -DQT_QMAKE_EXECUTABLE=${qmake_path}-mac
55       
56        depends_lib-append port:qt4-x11
57        configure.args-append -DQT_QMAKE_EXECUTABLE=${qmake_path}-x11
58}
59
60livecheck.url ${master_sites}
61livecheck.regex <a href=\"vidalia-(.*)${extract.suffix}\"