# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description Tilt the floor to roll a ball through an obstacle course.
Tilt the floor to roll a ball through an obstacle \
course before time runs out. Neverball is part puzzle \
game, part action game, and entirely a test of skill.
homepage https://neverball.org/
checksums rmd160 3489fcec1efe38c0faac62fe08573117a0f63c9f \
sha256 73fe63cca4f96e2d355480d03bc0b2904e83a0abdf65fe8c52db5cc3cca88fa0
depends_lib port:libsdl2 \
patchfiles patch-Makefile.diff
reinplace "s|@CPPFLAGS@|${configure.cppflags}|g" ${worksrcpath}/Makefile
build.args CC="${configure.cc} [get_canonical_archflags]" \
DATADIR=${prefix}/share/games/${name}
xinstall -d -m 755 ${destroot}${prefix}/share/games
file copy ${worksrcpath}/data ${destroot}${prefix}/share/games/${name}
fs-traverse item ${destroot}${prefix}/share/games/${name} {
if {[file isfile ${item}]} {
switch [file extension ${item}] {
file attributes ${item} -permissions 0644
xinstall -s -m 755 -W ${worksrcpath} neverball neverputt ${destroot}${prefix}/bin