void-packages/srcpkgs/wildmidi/template

61 lines
1.7 KiB
Bash

# Template file for 'wildmidi'
pkgname=wildmidi
version=0.4.6
revision=1
build_style=cmake
configure_args="$(vopt_bool alsa WANT_ALSA) $(vopt_bool oss WANT_OSS)
$(vopt_bool sndio WANT_SNDIO) $(vopt_bool openal WANT_OPENAL)"
hostmakedepends="pkg-config"
makedepends="$(vopt_if alsa alsa-lib-devel) $(vopt_if sndio sndio-devel)
$(vopt_if openal libopenal-devel)"
depends="libwildmidi"
short_desc="Simple software midi player and core softsynth library"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-3.0-or-later, LGPL-3.0-only"
homepage="https://github.com/Mindwerks/wildmidi"
distfiles="https://github.com/Mindwerks/wildmidi/archive/wildmidi-${version}.tar.gz"
checksum=051b8c51699af594ddd3e4e3b06bad3564e9499c3c6b9e6f880cb2f92bcfa9c8
build_options="alsa oss sndio openal"
build_options_default="alsa sndio openal"
desc_option_oss="Enable support for Open Sound System (OSS) output"
desc_option_openal="Enable support for OpenAL output"
post_install() {
vsconf ${FILESDIR}/wildmidi.cfg
}
libwildmidi_package() {
depends="freepats"
short_desc+=" - library"
conf_files="/etc/wildmidi/wildmidi.cfg"
pkg_install() {
vmove "usr/lib/*.so.*"
vinstall ${FILESDIR}/wildmidi.cfg 644 etc/wildmidi
}
}
libwildmidi-devel_package() {
depends="libwildmidi>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove usr/share/man/man3
}
}
WildMidi_package() {
build_style=meta
short_desc+=" - dummy transitional package"
depends="wildmidi"
}
WildMidi-devel_package() {
build_style=meta
short_desc+=" - dummy transitional package"
depends="libwildmidi-devel"
}