1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name wview |
---|
6 | |
---|
7 | version 3.7.3 |
---|
8 | |
---|
9 | categories science |
---|
10 | |
---|
11 | maintainers mac.com:mbrooksclark |
---|
12 | |
---|
13 | homepage http://wviewweather.com/ |
---|
14 | |
---|
15 | description Daemons that download and archive data from supported weather stations |
---|
16 | |
---|
17 | long_description \ |
---|
18 | wview is a unix application for weather stations. It archives weather \ |
---|
19 | data from the station. Generates full html web sites with graphics. \ |
---|
20 | ftp/ssh export capability. MySQL/PostgreSQL archiving. International. \ |
---|
21 | Weather alarms. Data feed. RSS feed. Stations currently supported include: \ |
---|
22 | Davis Vantage Pro/Pro2, Vaisala WXT-510, La Crosse WS-2300, and a \ |
---|
23 | weather station simulator. |
---|
24 | |
---|
25 | platforms darwin |
---|
26 | |
---|
27 | master_sites sourceforge:wview |
---|
28 | |
---|
29 | depends_lib port:gd2 port:radlib |
---|
30 | |
---|
31 | checksums md5 d534d8fd77df3b3dceaed53591e415cf \ |
---|
32 | sha1 90f94b86447e78e152108b153b5f66c8c88a8aed \ |
---|
33 | rmd160 483edc0f089ddf28a3d86cd8806231f1ccbcf3f2 |
---|
34 | |
---|
35 | configure.args --exec-prefix=${prefix} |
---|
36 | |
---|
37 | variant env description { Install config files and templates (first time install) } { |
---|
38 | destroot.target-append install-env |
---|
39 | } |
---|
40 | |
---|
41 | variant mysql5 description { Includes mySQL5 database support } { |
---|
42 | configure.args-append --enable-mysql |
---|
43 | configure.ldflags-append -L${prefix}/lib/mysql5/mysql |
---|
44 | depends_lib-append port:mysql5 |
---|
45 | } |
---|
46 | |
---|
47 | variant pgresql description { Includes Postgresql database support } { |
---|
48 | configure.args-append --enable-pgresql |
---|
49 | depends_lib-append port:postgresql83 |
---|
50 | } |
---|
51 | |
---|
52 | variant vpro description { Support for Davis Vantage Pro WX Station } { |
---|
53 | configure.args-append --enable-station-vp2 |
---|
54 | } |
---|
55 | |
---|
56 | variant wxt510 description { Support for Vaisala WXT-510 WX Station } { |
---|
57 | configure.args-append --enable-station-wxt510 |
---|
58 | } |
---|
59 | |
---|
60 | variant ws2300 description { Support for the La Crosse WS-2300 series stations } { |
---|
61 | configure.args-append --enable-station-ws2300 |
---|
62 | } |
---|
63 | |
---|
64 | variant sim description { Support for the Simulated WX Station } { |
---|
65 | configure.args-append --enable-station-sim |
---|
66 | } |
---|
67 | |
---|
68 | variant http description { Enable support for uploading data to Weather Underground } { |
---|
69 | configure.args-append --enable-http |
---|
70 | depends_lib-append port:curl |
---|
71 | } |
---|
72 | |
---|
73 | destroot.violate_mtree |
---|
74 | |
---|
75 | post-destroot { |
---|
76 | xinstall -d -o root -g wheel -m 755 \ |
---|
77 | ${worksrcpath}/examples/MacOSX/wview /Library/StartupItems/wview |
---|
78 | |
---|
79 | xinstall -o root -g wheel -m 755 ${worksrcpath}/examples/MacOSX/wview/wview \ |
---|
80 | /Library/StartupItems/wview/wview |
---|
81 | |
---|
82 | xinstall -o root -g wheel -m 644 \ |
---|
83 | ${worksrcpath}/examples/MacOSX/wview/StartupParameters.plist \ |
---|
84 | /Library/StartupItems/wview/StartupParameters.plist |
---|
85 | |
---|
86 | |
---|
87 | file mkdir ${destroot}${prefix}/share/doc/${name} |
---|
88 | |
---|
89 | file copy ${worksrcpath}/wview-Quick-Start-MacOSX.html \ |
---|
90 | ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start-MacOSX.html |
---|
91 | |
---|
92 | file copy ${worksrcpath}/wview-Quick-Start.html \ |
---|
93 | ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start.html |
---|
94 | |
---|
95 | file copy ${worksrcpath}/wview-User-Manual.html \ |
---|
96 | ${destroot}${prefix}/share/doc/${name}/wview-User-Manual.html |
---|
97 | |
---|
98 | file copy ${worksrcpath}/COPYING \ |
---|
99 | ${destroot}${prefix}/share/doc/${name}/COPYING |
---|
100 | |
---|
101 | file copy ${worksrcpath}/UPGRADE \ |
---|
102 | ${destroot}${prefix}/share/doc/${name}/UPGRADE |
---|
103 | |
---|
104 | |
---|
105 | } |
---|
106 | |
---|
107 | post-install { |
---|
108 | ui_msg "\n#####################################" |
---|
109 | ui_msg "Run\n" |
---|
110 | ui_msg "\tsudo ${prefix}/bin/wviewconfig and\n" |
---|
111 | ui_msg "\tsudo ${prefix}/bin/wviewhtmlconfig\n" |
---|
112 | ui_msg "before launching wview\n" |
---|
113 | ui_msg "\n#####################################" |
---|
114 | ui_msg "html templates and config files are stored in ${prefix}/etc/wview/\n" |
---|
115 | ui_msg "archive files are stored in ${prefix}/var/wview/\n" |
---|
116 | ui_msg "\n#####################################" |
---|
117 | ui_msg "Start the daemons with the command:\n" |
---|
118 | ui_msg "\tsudo /sbin/SystemStarter start wview\n" |
---|
119 | ui_msg "\n#####################################" |
---|
120 | } |
---|