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

ruby.branches       3.3 3.2 3.1
ruby.setup          rubysdl 2.2.0 gem {} rubygems
categories-append   devel
license             LGPL
maintainers         nomaintainer
description         Extension library to use SDL 1.x (Simple DirectMedia Layer)
long_description    {*}${description}
homepage            https://www.kmc.gr.jp/~ohai/rubysdl.en.html
checksums           rmd160  4ab5e28b5827e38738119a8b7401c513d758a216 \
                    sha256  c9892ee5aada1aea8747d107e7acd9a779ec77ee5c9c7c5f824c0aa6f40be295 \
                    size    259584

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:libsdl \
                    port:libsdl_image \
                    port:libsdl_mixer \
                    port:libsdl_ttf
    depends_run-append \
                    port:rb${ruby.suffix}-ffi
}
