# $Id: Portfile,v 1.2 2006/06/11 17:28:34 markd Exp $

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

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

configure.env		TCLROOT=${prefix} \
			CFLAGS=-I${workpath}/tcl8.4.12-privateheaders-full/generic \
			LDFLAGS="-L${prefix}/lib -ltcl -L/usr/X11R6/lib -lX11"

build {}

platform darwin 7 {
	global tclconfig

	set tclconfig /System/Library/Frameworks/Tcl.framework
}
