Ticket #48785: Portfile.2

File Portfile.2, 2.3 KB (added by kencu (Ken), 7 years ago)

Portfile - version 1.1.3 with some additions and changes to consider

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
3PortSystem          1.0
4PortGroup           github 1.0
5
6github.setup        EliasOenal multimon-ng c8a6ef40034a8e132347b1fe91cf83ff1bb6d634
7version             1.1.3
8
9# the following should work -- but doesn't
10# github.setup        EliasOenal multimon-ng 1.1.3 v
11
12categories          science comms
13platforms           darwin
14license             GPL-2
15maintainers         m4x.org:db_macports openmaintainer
16
17checksums           rmd160  6745267d6b5276afc0d8497cd228379f3a540cc7 \
18                    sha256  d76bbc49c278d2b57419e0e7ec08a50a671434d4a1b5c8946cfb3e4f5e64c51f
19
20description         multimon-ng decodes radio digital transmission signals
21long_description    multimon-ng is a fork of multimon, decoding radio digital transmission signals. \
22                    It decodes the following digital transmission modes: \
23                    POCSAG512 POCSAG1200 POCSAG2400 EAS UFSK1200 CLIPFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 \
24                    HAPN4800 FSK9600 DTMF ZVEI1 ZVEI2 ZVEI3 DZVEI PZVEI EEA EIA CCIR MORSE_CW
25
26
27
28## this port can build with cmake, or with qt4 or qt5 if desired, but many dependencies
29
30# I couldn't get multimon-ng to open up qt windows,
31# but it did with X11, when run like this:
32# multimon-ng /opt/local/etc/multimon-ng/example/x10rf.wav
33# multimon-ng /opt/local/etc/multimon-ng/example/ufsk1200.raw
34
35
36#### X11 version #######
37# not certain these are all the dependencies for the X11 version yet
38
39PortGroup           cmake 1.0
40depends_lib-append  port:xorg-libsm \
41                    port:xorg-libice \
42                    port:xorg-libX11
43
44
45###### QT version ########
46
47# if {${os.platform} eq "darwin" && ${os.major} < 11} {
48#   default_variants-append +qt4
49# }
50#
51# variant qt4 description "Enable qt4 instead of qt5" {}
52#
53# if {[variant_isset qt4]} {
54#   PortGroup             qmake 1.0
55# } else {
56#   PortGroup             qmake5 1.0
57# }
58#
59# configure.args-append  multimon-ng.pro
60
61
62# are these needed for anything? They were commented out in the portfile
63#depends_lib         port:rtl-sdr port:libusb
64
65
66#  add some examples and documentation
67post-destroot {
68    xinstall -d ${destroot}${prefix}/etc/${name}
69    file copy ${worksrcpath}/example ${destroot}${prefix}/etc/${name}/
70
71}