Portfile

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

PortSystem 1.0

name lmarbles
version 1.0.7
categories games
platforms darwin
maintainers nomaintainer@macports.org
description Atomix clone with slight change in concept.
long_description LMarbles is an Atomix clone with a slight change in \
concept. Instead of assembling molecules you create \
figures out of marbles. Nevertheless, the basic game \
play is the same: If a marble starts to move it will \
not stop until it hits a wall or another marble. To \
make it more interesting there are obstacles like \
one-way streets, crumbling walls and portals. \
As Marbles is meant as a puzzle game you play against \
a move limit and not a time limit. This way you have \
as much time as you need to think.

homepage http://lgames.sourceforge.net/index.php?project=LMarbles
master_sites sourceforge:lgames
checksums md5 b29156bc5021877d080e5e268012f4ec

depends_lib lib:libsdl:libsdl \
lib:libsdl_mixer:libsdl_mixer

configure.env CFLAGS=-I${prefix}/include \
LDFLAGS=-L${prefix}/lib
configure.args --enable-ascii \
--with-profile-path=${prefix}/var/lib/games/ \
--disable-sdltest

variant darwin {
pre-destroot {
xinstall -d -m 755 ${destroot}/Applications/MacPorts/LMarbles.app/Contents/MacOS
system "ln -s ${prefix}/bin/lmarbles \
${destroot}/Applications/MacPorts/LMarbles.app/Contents/MacOS/LMarbles"
}
}