Ticket #48784: Portfile

File Portfile, 1.7 KB (added by schmurtz_macport@…, 9 years ago)
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
5PortGroup                       github 1.0
6
7github.setup            MalcolmRobb dump1090 bff92c4ad772a0a8d433f788d39dae97e00e4dbe
8version                         20141031
9categories          science comms
10platforms           darwin
11license             BSD
12maintainers         m4x.org:db_macports openmaintainer
13
14description         Dump 1090 is a Mode S decoder specifically designed for RTLSDR devices
15long_description    Dump 1090 is a Mode S decoder specifically designed for RTLSDR devices. \
16                    Mode S messages are sent unencrypted over radio at 1090MHz, and provide \
17                    position/speed of planes.
18homepage            https://github.com/MalcolmRobb/dump1090
19
20checksums           rmd160  ee954c5fe570cae88e4b83371f7278e2e5d6b00f \
21                    sha256  92bdc136448da375aa0f986def75e5fe5f287f977ffb3593605fc6b7d4399691
22
23depends_build       port:pkgconfig
24depends_lib         port:rtl-sdr port:libusb
25
26use_configure       no
27
28build.args                      PREFIX=${prefix}
29
30destroot {
31    # install binaries (Makefile doesn't provide 'install')
32    xinstall -m 755 -W ${worksrcpath} dump1090 view1090 ${destroot}${prefix}/bin
33
34        # install files for the web interface
35    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/coolclock
36    xinstall -m 644 -W ${worksrcpath}/public_html gmap.html style.css ${destroot}${prefix}/share/${name}
37    xinstall -m 644 {*}[glob ${worksrcpath}/public_html/*.js] ${destroot}${prefix}/share/${name}
38    xinstall -m 644 {*}[glob ${worksrcpath}/public_html/coolclock/*.js] ${destroot}${prefix}/share/${name}/coolclock
39}