source: trunk/dports/science/wview/Portfile @ 58230

Last change on this file since 58230 was 58230, checked in by ryandesign@…, 11 years ago

rewrite mysql5 dependency so mysql5-devel can satisfy it

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1# $Id: Portfile 58230 2009-09-24 16:45:22Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            wview
6
7version         4.0.1
8
9categories      science
10
11maintainers     mac.com:mbrooksclark
12
13homepage        http://wviewweather.com/
14
15description     Daemons that download and archive data from supported weather stations
16
17long_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
25platforms        darwin
26
27master_sites     sourceforge:wview
28
29depends_lib      port:gd2 port:radlib
30
31checksums        md5 1042769d7c94395bcc3732de7c1c8e87 \
32                 sha1 949c76e1a2179eedb7104a7b28a526d4e4ffe953 \
33                 rmd160 86e581f2d9779650d0189b0dbfb068b71b5affc8
34
35configure.args   --exec-prefix=${prefix}
36
37variant env      description { Install config files and templates (first time install) } {
38  destroot.target-append install-env
39}
40
41variant 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 path:bin/mysql_config5:mysql5
45}
46
47variant pgresql   description { Includes Postgresql database support } {
48  configure.args-append --enable-pgresql
49  depends_lib-append port:postgresql83
50}
51
52variant vpro      description { Support for Davis Vantage Pro WX Station } {
53  configure.args-append --enable-station-vp2
54}
55
56variant wxt510    description { Support for Vaisala WXT-510 WX Station } {
57  configure.args-append --enable-station-wxt510
58}
59
60variant ws2300    description { Support for the La Crosse WS-2300 series stations } {
61  configure.args-append --enable-station-ws2300
62}
63
64variant wmr918    description { Support for the for the Oregon Scientific WMR918/968 WX Station} {
65  configure.args-append --enable-station-wmr918
66}
67
68variant sim       description { Support for the Simulated WX Station } {
69  configure.args-append --enable-station-sim
70}
71
72variant http      description { Enable support for uploading data to Weather Underground } {
73  configure.args-append --enable-http
74  depends_lib-append port:curl
75}
76
77destroot.violate_mtree
78
79post-destroot {
80  xinstall -d -o root -g wheel -m 755 \
81    ${worksrcpath}/examples/MacOSX/wview ${destroot}/Library/StartupItems/wview
82
83  xinstall -o root -g wheel -m 755 ${worksrcpath}/examples/MacOSX/wview/wview \
84    ${destroot}/Library/StartupItems/wview/wview
85
86  xinstall -o root -g wheel -m 644 \
87    ${worksrcpath}/examples/MacOSX/wview/StartupParameters.plist \
88    ${destroot}/Library/StartupItems/wview/StartupParameters.plist
89
90
91  file mkdir ${destroot}${prefix}/share/doc/${name}
92
93  file copy ${worksrcpath}/wview-Quick-Start-MacOSX.html \
94    ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start-MacOSX.html
95
96  file copy ${worksrcpath}/wview-Quick-Start.html \
97    ${destroot}${prefix}/share/doc/${name}/wview-Quick-Start.html
98
99  file copy ${worksrcpath}/wview-User-Manual.html \
100    ${destroot}${prefix}/share/doc/${name}/wview-User-Manual.html
101
102  file copy ${worksrcpath}/COPYING \
103    ${destroot}${prefix}/share/doc/${name}/COPYING
104
105  file copy ${worksrcpath}/UPGRADE \
106    ${destroot}${prefix}/share/doc/${name}/UPGRADE
107
108
109}
110
111post-install {
112  ui_msg "\n#####################################"
113  ui_msg "Run\n"
114  ui_msg "\tsudo ${prefix}/bin/wviewconfig and\n"
115  ui_msg "\tsudo ${prefix}/bin/wviewhtmlconfig\n"
116  ui_msg "before launching wview\n"
117  ui_msg "\n#####################################"
118  ui_msg "html templates and config files are stored in ${prefix}/etc/wview/\n"
119  ui_msg "archive files are stored in ${prefix}/var/wview/\n"
120  ui_msg "\n#####################################"
121  ui_msg "Start the daemons with the command:\n"
122  ui_msg "\tsudo /sbin/SystemStarter start wview\n"
123  ui_msg "\n#####################################"
124}
Note: See TracBrowser for help on using the repository browser.