description Pong game with 2 balls, 2 and 4 player support
long_description ${description}
homepage http://twopong.sourceforge.net/
master_sites sourceforge:project/twopong/2Pong/2Pong-${version}
distname 2pong-src-${version}
checksums rmd160 43e0cde2485a3b89a4009db80118dda4a14aa82c \
sha256 4075bf686126f785e10f3ff9dcaa7febc05291ad6ddf7a84bf2dd2890382a87b
depends_lib port:libsdl \
copy ${filespath}/${name}.in ${workpath}/${name}
patchfiles patch-Makefile.diff \
reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${name}
build.dir ${worksrcpath}/src
build.args CC="${configure.cc} [get_canonical_archflags]" \
CPPFLAGS="${configure.cppflags}" \
CXX="${configure.cxx} [get_canonical_archflags]" \
LINK="${configure.cxx} [get_canonical_archflags]"
xinstall ${workpath}/${name} ${destroot}${prefix}/bin
xinstall -d ${destroot}${prefix}/share/${name}/src ${destroot}${prefix}/libexec/${name}
xinstall ${worksrcpath}/2pong ${destroot}${prefix}/libexec/${name}/${name}
copy ${worksrcpath}/conf.xml ${destroot}${prefix}/share/${name}
copy ${worksrcpath}/src/data ${destroot}${prefix}/share/${name}/src
livecheck.regex /2pong-src-(\[0-9a-z.\]+)${extract.suffix}