# -*- 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

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0
PortGroup           legacysupport 1.1

# https://trac.macports.org/ticket/69638
legacysupport.newest_darwin_requires_legacy 16
legacysupport.use_mp_libcxx yes

github.setup        libSDL2pp libSDL2pp 0.18.1
revision            1
categories          devel multimedia
license             BSD
maintainers         nomaintainer
description         C++ bindings/wrapper for SDL2
long_description    This library provides C++11 bindings/wrapper \
                    for SDL2 and satellite libraries.
homepage            https://sdl2pp.amdmi3.ru
checksums           rmd160  54e6d893cd92357580295051123cc87687ce461a \
                    sha256  063390d440835f611cef48c1a2a2593765192f388429c6d0b6e1ada2a582633f \
                    size    300596
github.tarball_from archive

depends_lib-append  port:libsdl2 \
                    port:libsdl2_image \
                    port:libsdl2_mixer \
                    port:libsdl2_ttf

compiler.cxx_standard   2017

configure.pre_args-replace \
                    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
                    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

configure.args-append \
                    -DSDL2PP_WITH_IMAGE=ON \
                    -DSDL2PP_WITH_TTF=ON \
                    -DSDL2PP_WITH_MIXER=ON \
                    -DSDL2PP_WITH_EXAMPLES=OFF \
                    -DSDL2PP_WITH_TESTS=ON \
                    -DSDL2PP_ENABLE_LIVE_TESTS=OFF \
                    -DSDL2PP_STATIC=OFF

test.run            yes
