PKGNAME=supertux
PKGSEC=games
PKGDEP="sdl2 sdl2-image physfs openal-soft glew glm \
        libvorbis curl freetype libogg libpng"
BUILDDEP="boost mesa optipng fmt rapidjson"
PKGDES="Classic 2D jump'n run sidescroller game in a style similar to the original SuperMario games"

ABTYPE=cmake

CMAKE_AFTER=(
    '-DENABLE_DISCORD=ON'
    '-DCMAKE_INSTALL_PREFIX=/usr'
    '-DINSTALL_SUBDIR_BIN=bin'
    '-DBUILD_EXAMPLES=OFF'
    '-DBUILD_TESTING=OFF'
    '-DENABLE_OPENGL=ON'
    '-DSUPERTUX_LTO=ON'
)

NOLTO__LOONGSON3=1
