# $Id: Portfile,v 1.1 2006/01/09 08:54:30 mww Exp $

PortSystem 1.0

name			xteddy
version			2.0.2
categories		x11
platforms		darwin
maintainers		darwinports@opendarwin.org
description		A cuddlesome teddy for the X desktop
long_description	This is _the_ toy for the X desktop, a must for all plush \
				lovers: a very, very cuddlesome teddy.

homepage		http://www.itn.liu.se/~stegu/xteddy/
master_sites	http://www.itn.liu.se/~stegu/xteddy/ freebsd
checksums		md5 c197253b5116db5dc4e32b58dd36160e
patchfiles		patch-xtoys

depends_lib		lib:libX11:XFree86 port:imlib port:zlib

post-patch {
	reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/xtoys
}

configure.args	--mandir=${prefix}/share/man
configure.env	CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib

platform darwin 8 {
	configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0
}

