# $Id: Portfile 49016 2009-04-02 00:05:46Z ryandesign@macports.org $

PortSystem 1.0

name			BwanaDik
version			3.2.1
categories		aqua net
platforms		darwin
maintainers		nomaintainer
homepage		http://www.jschilling.net/sw_bwanadik.php
description		IP address (WAN and LAN) reporter.

long_description	${description}

master_sites		http://homepage.mac.com/johnnycat/sfw/

checksums           md5     61fb0fed49445bd43080980fb40a1c31 \
                    sha1    69dc47732f6e69bbea8bc5ef19862265e832e724 \
                    rmd160  1a8d5575bf6b85aa75038ef16fdb7ad5c464d497

dist_subdir		${name}/${version}
distname		${name}Source
use_zip			yes

use_configure		no

build.type		pbx
build.target            -project BwanaDik.xcodeproj -target BwanaDik

set appdir	build
platform darwin 8 {
	if {$xcodeversion == "2.1"} {
		set appdir	build/Release
	}
}

destroot {		set appPath ${destroot}${applications_dir}
			file mkdir ${appPath}
			file copy "${worksrcpath}/${appdir}/Release/${name}.app" ${appPath}
			}

default_variants +universal
variant universal {}
pre-fetch {
	if {![variant_isset universal]} {
		return -code error "${name} is only available in a universal version"
	}
}
