Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0

name 2Pong
version 0.6
categories games
platforms darwin
maintainers nomaintainer@macports.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/MacPorts/2Pong.app/Contents/MacOS
system "ln -s ${prefix}/bin/2Pong ${destroot}/Applications/MacPorts/2Pong.app/Contents/MacOS/2Pong"
}