source: trunk/dports/comms/gnokii/Portfile

Last change on this file was 142631, checked in by devans@…, 23 months ago

gnokii: reconfigure using upstream autogen.sh for intltool 0.51 compatibility, update dependencies, obfuscate maintainer email, add license, +bluetooth support only available on OS X 10.6 and earlier, increment revision to ensure building with latest libical (#34162, #42640, maintainer timeout).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 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 142631 2015-11-17 22:31:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gnokii
7version             0.6.31
8revision            1
9license             GPL-2+
10categories          comms
11platforms           darwin
12maintainers         ieee.org:mpal1+bugzilla
13description         Tools to manipulate Nokia and other mobile phones.
14long_description    gnokii provides tools and a user space driver for use \
15                    with mobile phones under Linux, various unices and \
16                    Win32. With gnokii you can do such things as make data \
17                    calls, update your address book, change calendar \
18                    entires, send and receive SMS messages and load ring \
19                    tones depending on the phone you have.
20
21homepage            http://www.gnokii.org/
22
23use_bzip2           yes
24master_sites        http://gnokii.org/download/gnokii/ \
25                    http://gnokii.org/download/gnokii/0.6.x/ \
26                    ftp://ftp.gnokii.org/pub/gnokii/ \
27                    ftp://ftp.gnokii.org/pub/gnokii/0.6.x/ \
28                    http://ftp.slackware.pl/pub/gnokii/gnokii/ \
29                    http://ftp.slackware.pl/pub/gnokii/gnokii/0.6.x/
30
31checksums           rmd160  a828dab090c8f6decd28ca2f7c9923df0df28c32 \
32                    sha256  8f5a083b05c1a66a3402ca5cd80084e14c2c0632c991bb53b03c78e9adb02501
33
34depends_build       port:intltool \
35                    port:pkgconfig \
36                    port:autoconf \
37                    port:automake \
38                    port:libtool
39
40depends_lib         port:gettext \
41                    port:iso-codes \
42                    port:libical \
43                    port:libusb-compat \
44                    port:readline
45
46# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
47
48post-patch {
49    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
50    reinplace "s|/etc/gnokiirc|${prefix}/etc/gnokiirc|" ${worksrcpath}/common/cfgreader.c
51    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/Docs/sample/gnokiirc
52}
53
54configure.cmd       ./autogen.sh
55
56configure.ldflags-append \
57                    -lintl -lglib-2.0
58
59configure.args      --enable-security \
60                    --disable-smsd \
61                    --with-libiconv-prefix=${prefix} \
62                    --with-readline=${prefix} \
63                    --disable-bluetooth \
64                    --without-x
65
66post-activate {
67    if {![file exists ${prefix}/etc/gnokiirc]} {
68        copy ${prefix}/share/doc/gnokii/sample/gnokiirc ${prefix}/etc/gnokiirc
69    }
70}
71
72
73platform macosx {
74    configure.ldflags-append -framework CoreFoundation
75   
76    # bluetooth does not work anymore on Mac OS X version 10.7+, see #34162, #42640
77
78    if {${os.major} < 11} {
79        variant bluetooth description {Enable support for bluetooth (broken on Mac OS X >=10.7)} {
80            configure.args-replace --disable-bluetooth --enable-bluetooth
81            configure.ldflags-append -framework IOBluetooth
82        }
83    }
84}
85
86variant x11 {
87    depends_lib-append      port:gtk2
88    configure.args-delete   --without-x
89}
90
91default_variants    +x11
Note: See TracBrowser for help on using the repository browser.