# $Id: Portfile,v 1.2 2004/08/18 04:02:11 jkh Exp $

PortSystem 1.0

name		2Pong
version		0.6
categories	games
platforms	darwin
maintainers	mww@opendarwin.org
description	Pong game with 2 balls, 2 and 4 player support
long_description	${description}

homepage	http://twopong.sourceforge.net/
master_sites	sourceforge:twopong
checksums	md5 55d54deb30f079d4b2684b7f7c8ab57f
use_bzip2	yes

depends_lib	bin:sdl-config:libsdl \
		lib:libSDL_image:libsdl_image \
		lib:libSDL_mixer:libsdl_mixer

use_configure	no

build.args	CFLAGS="-I${prefix}/include -I${prefix}/include/SDL"

destroot.destdir	PRE=${destroot}${prefix}

post-destroot	{
	xinstall -d -m 755 ${destroot}/Applications/DarwinPorts/2Pong.app/Contents/MacOS
	system "ln -s ${prefix}/bin/2Pong ${destroot}/Applications/DarwinPorts/2Pong.app/Contents/MacOS/2Pong"
}
