SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "rtmidi"

# SliTaz package receipt.

PACKAGE="rtmidi"
VERSION="6.0.0"
CATEGORY="multimedia"
SHORT_DESC="C++ library for realtime MIDI input/ouput"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/thestk/rtmidi/"
WGET_URL="https://github.com/thestk/rtmidi/archive/refs/tags/$VERSION.tar.gz"

DEPENDS="gcc83-lib-base alsa-lib"
BUILD_DEPENDS="gcc83 alsa-lib-dev automake"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    [ -x ./autogen.sh ] && ./autogen.sh
    ./configure    --prefix=/usr        \
            --with-alsa        \
            CC=gcc-83        \
            CXX=g++-83        \
            $CONFIGURE_ARGS
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/librtmidi.so* $fs/usr/lib/
}
6017 packages and 861739 files in cooking database (Sun Sep 21 00:48:01 2025)