# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $

PortSystem 1.0

name			iwidgets
version			4.0.1
revision		1
categories		x11 tk
maintainers		markd
description		\[incr Widgets\] A.K.A. \"iwidgets\".  Widget collection for incrTcl/incrTk
long_description	${description}
homepage		http://incrtcl.sourceforge.net/iwidgets/
platforms		darwin
master_sites		sourceforge:incrtcl
distname                ${name}${version}
checksums		${name}${version}.tar.gz md5 0e9c140e81ea6015b56130127c7deb03
depends_build           port:tk port:itcl
build.args		CPPFLAGS=-I${prefix}/include
worksrcdir              ${name}${version}
patchfiles		patch-configure \
			patch-Makefile.in

configure.env		TCLROOT=${prefix}
configure.ldflags-append "-ltcl -L/usr/X11R6/lib -lX11"

configure.args		--with-tcl=${prefix}/lib \
			--with-tk=${prefix}/lib \
			--with-itcl=${prefix}/lib/itcl3.3 \
			--with-itk=${prefix}/lib/itk3.3

build {}
