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

github.setup            schismtracker schismtracker 20241021
revision                1
categories              audio
maintainers             nomaintainer
description             Oldschool sample-based music composition tool
long_description        Schism Tracker is a free and open-source reimplementation \
                        of Impulse Tracker, a program used to create high-quality music \
                        without the requirements of specialized, expensive equipment.
license                 GPL-2
homepage                https://schismtracker.org
checksums               rmd160  d572573b77bc30f9a8c0a166cb9895ce362ad8ee \
                        sha256  9615aeb37a29867306b92008c4579be185871ac0156009ce64be406b777b8f5d \
                        size    1081219
github.tarball_from     archive

installs_libs           no

use_autoreconf          yes

depends_build-append    path:bin/pkg-config:pkgconfig

depends_lib-append      port:desktop-file-utils \
                        port:flac \
                        port:libsdl2 \
                        port:libutf8proc

configure.args-append   --enable-extra-opt=no \
                        --enable-jack-linking=no \
                        --with-flac=yes \
                        --with-jack=no

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
}
