# $Id$ PortSystem 1.0 name gnokii version 0.6.31 categories comms platforms darwin maintainers mpal1+bugzilla@ieee.org description Tools to manipulate Nokia and other mobile phones. long_description gnokii provides tools and a user space driver for use \ with mobile phones under Linux, various unices and \ Win32. With gnokii you can do such things as make data \ calls, update your address book, change calendar \ entires, send and receive SMS messages and load ring \ tones depending on the phone you have. homepage http://www.gnokii.org/ use_bzip2 yes master_sites http://gnokii.org/download/gnokii/ \ http://gnokii.org/download/gnokii/0.6.x/ \ ftp://ftp.gnokii.org/pub/gnokii/ \ ftp://ftp.gnokii.org/pub/gnokii/0.6.x/ \ http://ftp.slackware.pl/pub/gnokii/gnokii/ \ http://ftp.slackware.pl/pub/gnokii/gnokii/0.6.x/ checksums rmd160 a828dab090c8f6decd28ca2f7c9923df0df28c32 \ sha1 b053ed2327997b5730bddc4b63d77388f9fff08c depends_build port:intltool depends_lib port:gtk2 port:libical port:libusb-compat port:iso-codes port:readline post-patch { reinplace "s|/etc/gnokiirc|${prefix}/etc/gnokiirc|" ${worksrcpath}/common/cfgreader.c reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/Docs/sample/gnokiirc } configure.ldflags-append -lintl -lglib-2.0 configure.args --enable-security \ --disable-smsd \ --with-libiconv-prefix=${prefix} \ --with-readline=${prefix} \ --disable-bluetooth post-activate { if {![file exists ${prefix}/etc/gnokiirc]} { copy ${prefix}/share/doc/gnokii/sample/gnokiirc ${prefix}/etc/gnokiirc } } variant no_x11 { depends_lib-delete port:gtk2 configure.args-append --without-x } # bluetooth does not work anymore on recent versions of Mac OS X, see #34162 variant bluetooth description {Enable support for bluetooth (broken on Mac OS X >=10.7)} { configure.args-replace --disable-bluetooth --enable-bluetooth platform macosx { configure.ldflags-append -framework IOBluetooth } } platform macosx { configure.ldflags-append -framework CoreFoundation }