1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name Vidalia |
---|
6 | version 0.1.12 |
---|
7 | categories security net |
---|
8 | maintainers inmachina.com:max openmaintainer |
---|
9 | description Vidalia is a controller GUI for the Tor software |
---|
10 | long_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 | |
---|
15 | platforms darwin |
---|
16 | |
---|
17 | homepage https://www.torproject.org/vidalia |
---|
18 | master_sites ${homepage}/dist/ |
---|
19 | distname vidalia-${version} |
---|
20 | |
---|
21 | checksums md5 5820043228e7303fa4bee714bd839804 \ |
---|
22 | sha1 c2ac49d051e67db9f4b15ecbdd8c02fb5a4c20be \ |
---|
23 | rmd160 b9e45af1d648db10c52eda95c606ede2f90bd99b |
---|
24 | |
---|
25 | depends_build-append bin:cmake:cmake |
---|
26 | depends_lib-append port:tor port:qt4-mac |
---|
27 | |
---|
28 | set qmake_path ${prefix}/bin/qmake |
---|
29 | build.target |
---|
30 | |
---|
31 | configure.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 | |
---|
39 | configure.env \ |
---|
40 | LDFLAGS="-L${prefix}/lib" \ |
---|
41 | CPPFLAGS="-I${prefix}/include" |
---|
42 | |
---|
43 | configure { |
---|
44 | system "cd ${worksrcpath} && ${configure.env} cmake ${configure.args} ." |
---|
45 | } |
---|
46 | |
---|
47 | destroot { |
---|
48 | file mkdir ${destroot}${applications_dir} |
---|
49 | file rename ${worksrcpath}/src/vidalia/Vidalia.app ${destroot}${applications_dir} |
---|
50 | } |
---|
51 | |
---|
52 | variant 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 | |
---|
60 | livecheck.url ${master_sites} |
---|
61 | livecheck.regex <a href=\"vidalia-(.*)${extract.suffix}\" |
---|