void-packages/srcpkgs/libopenmpt/template
a dinosaur 557aeb9d70 libopenmpt: update to 0.5.12.
Also require dependency devel packages in devel package to fix
pkg-config warning.
2021-10-12 15:43:16 -03:00

49 lines
1.6 KiB
Bash

# Template file for 'libopenmpt'
pkgname=libopenmpt
version=0.5.12
revision=1
wrksrc="libopenmpt-${version}+release.autotools"
build_style=gnu-configure
configure_args="$(vopt_with pulseaudio) $(vopt_with sdl2)
$(vopt_with portaudio) $(vopt_with portaudio portaudiocpp)"
hostmakedepends="pkg-config"
makedepends="zlib-devel libsndfile-devel
libflac-devel mpg123-devel libogg-devel libvorbis-devel
$(vopt_if pulseaudio pulseaudio-devel) $(vopt_if sdl2 SDL2-devel)
$(vopt_if portaudio portaudio-cpp-devel)"
short_desc="Cross-platform C & C++ library to decode tracked music files (modules)"
maintainer="a dinosaur <nick@a-dinosaur.com>"
license="BSD-3-Clause"
homepage="https://lib.openmpt.org/libopenmpt/"
changelog="https://lib.openmpt.org/doc/changelog.html"
distfiles="https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz"
checksum=892aea7a599b5d21842bebf463b5aafdad5711be7008dd84401920c6234820af
post_install() {
vlicense LICENSE
}
# Package build options
build_options="pulseaudio sdl2 portaudio"
build_options_default="pulseaudio sdl2 portaudio"
libopenmpt-devel_package() {
depends="${sourcepkg}-${version}_${revision} mpg123-devel libvorbis-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/share/doc/libopenmpt/examples
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
openmpt123_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc="Cross-platform command-line or terminal based module file player"
pkg_install() {
vmove usr/bin/openmpt123
vmove usr/share/man/man1/openmpt123.1
}
}