# $Id: Portfile 92853 2012-05-09 05:27:23Z jmr@macports.org $

PortSystem		1.0
name			gtk-extra
version			0.99.17
categories		x11 devel
platforms		darwin
maintainers		rogers.com:matthew.c
description		Extra GTK+1 Widgets

long_description	GtkExtra is a useful set of widgets for creating \
			GUIs for the Xwindows system using GTK+. You can \
			use it complementary to GTK+ and it is written in \
			C. It is also Free Software and released under the \
			LGPL license.
			
homepage		http://gtkextra.sourceforge.net
master_sites		${homepage}/src/
distname		gtk+extra-${version}

depends_build		port:automake
depends_lib		lib:libgtk.1:gtk1

checksums		gtk+extra-0.99.17.tar.gz md5 390e622c12a5c7f7845ee144ae13ab93

post-patch {
	# Copy new versions of config.guess and config.sub for host detection
	eval copy -force [glob ${prefix}/share/automake-*/config.{guess,sub}] \
	    {${worksrcpath}}

	# Create an empty malloc.h file to provide missing header
	# This header would define stuff that's in stdlib.h
	touch ${worksrcpath}/malloc.h
}
