# -*- 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
github.setup Pingus pingus ad462706e5fc2cd5bf1cf99b2d90f88fe9e6de6e
description A free Lemmings(tm) clone using SDL2.
long_description ${description} It is a puzzle game where the player has to guide a group of penguins to safety.
system -W ${worksrcpath} "git submodule update --init"
compiler.cxx_standard 2014
configure.ldflags-append \
-framework CoreFoundation
configure.args -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Pingus.app/Contents/MacOS"
# boost no longer has the signals library
patchfiles-append patch-pingus-no-boost-signals.diff
platform darwin powerpc {
patchfiles-append patch-cmakelists-gnu14.diff
xinstall -d ${destroot}${applications_dir}/Pingus.app/Contents/Resources \
${destroot}${applications_dir}/Pingus.app/MacOS
file copy ${worksrcpath}/data/images/icons/pingus-icon.icns ${destroot}${applications_dir}/Pingus.app/Contents/Resources/pingus.icns
file copy ${worksrcpath}/Info.plist "${destroot}${applications_dir}/Pingus.app/Contents/Info.plist"
file copy ${destroot}${applications_dir}/Pingus.app/Contents/MacOS/bin/pingus ${destroot}${applications_dir}/Pingus.app/Contents/MacOS/pingus
reinplace "s|\"$@\"||g" ${destroot}${applications_dir}/Pingus.app/Contents/MacOS/pingus