# $Id: Portfile,v 1.1 2005/08/14 10:32:27 olegb Exp $
PortSystem 1.0
name			gnokii
version			0.6.8
categories		comms
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/

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/

checksums		md5 fd1cc8e95e112d7414a8420518b881d6

depends_lib		lib:gtk.1:gtk1 \
			path:${prefix}/share/libtool/ltmain.sh:libtool

configure.args		--disable-shared --disable-nls -enable-security

variant no_x11 {
  depends_lib-delete	lib:gtk.1:gtk1
  configure.args-append	--without-x 
}

# the ltmain.sh supplied with gnokii and OSX 10.4 both have problems
variant darwin { 
  post-extract {
    file copy		-force ${prefix}/share/libtool/ltmain.sh ${worksrcpath}/config
  }
}
