source: trunk/dports/net/gpsd/Portfile

Last change on this file was 141871, checked in by mojca@…, 2 years ago

gpsd: revbump after changes in qt4-mac (the port seems to opportunistically link against Qt4)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
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: Portfile 141871 2015-10-30 12:57:05Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6if {[variant_isset qt]} {
7    PortGroup           qt4 1.0
8}
9
10name                    gpsd
11version                 3.14
12revision                4
13license                 BSD
14categories              net
15maintainers             ryandesign openmaintainer
16platforms               darwin
17
18description             GPS service daemon
19
20long_description        GPSD is a service daemon that handles GPSes and other navigation-related sensors \
21                        reporting over USB, serial, TCP/IP, or UDP connections and presents reports in \
22                        a well-documented JSON application.
23
24homepage                http://www.catb.org/${name}/
25master_sites            savannah
26
27checksums               rmd160  fe0059e2b3d64af5857f9c150ef2fdd6bc6e115f \
28                        sha256  504fc812f3c1525a1a48e04bf4d77f9a8066c201448d98089df89d58ef53a8cb
29
30depends_lib-append      port:ncurses port:python27
31depends_build-append    port:scons
32
33patchfiles              patch-SConstruct.diff \
34                        patch-driver_rtcm2.c.diff \
35                        patch-libgps.pc.in.diff \
36                        patch-libgpsd.pc.in.diff \
37                        leopard-IPV6_TCLASS.patch
38
39use_configure           no
40
41variant universal {}
42
43set cxx_stdlibflags {}
44if {[string match *clang* ${configure.cxx}]} {
45    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
46}
47
48build.cmd               ${prefix}/bin/scons
49build.target
50build.args              prefix=${prefix} libQgpsmm=no usb=no strip=no
51build.env-append        CC="${configure.cc} [get_canonical_archflags cc]" \
52                        CFLAGS="${configure.cflags}" \
53                        CXX="${configure.cxx} [get_canonical_archflags cxx] ${cxx_stdlibflags}" \
54                        CXXFLAGS="${configure.cxxflags}" \
55                        LDFLAGS="${configure.ldflags}" \
56                        PYTHON=${prefix}/bin/python2.7
57
58destroot.args           {*}${build.args}
59destroot.env-append     {*}${destroot.destdir} {*}${build.env}
60
61post-destroot {
62    xinstall -m 644 -W ${worksrcpath} libgps.dylib libgpsd.dylib ${destroot}${prefix}/lib
63}
64
65variant qt description {Build Qt bindings} {
66    build.args-delete       libQgpsmm=no
67    destroot.args-delete    libQgpsmm=no
68}
69
70variant libusb \
71description {Include support for better USB device discovery} {
72    depends_build-append port:pkgconfig
73    depends_lib-append   port:libusb
74    build.args-delete    usb=no
75    destroot.args-delete usb=no
76}
77
78variant dbus description {Include support for DBUS} {
79    depends_lib-append      port:dbus-glib
80    build.args-append       dbus=yes dbus_export=yes
81    destroot.args-append    dbus=yes dbus_export=yes
82}
83
84livecheck.type          regex
85livecheck.url           http://download.savannah.gnu.org/releases-noredirect/gpsd
86livecheck.regex         "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.