-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2d5e39
commit 8c729ee
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libmt32emu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Template file for 'libmt32emu' | ||
pkgname=libmt32emu | ||
version=2.5.0 | ||
revision=1 | ||
wrksrc=munt-libmt32emu_2_5_0 | ||
build_wrksrc=mt32emu | ||
build_style=cmake | ||
configure_args="-DCMAKE_BUILD_TYPE:STRING=Release" | ||
makedepends="$(vopt_if libsoxr libsoxr-devel) $(vopt_if libsamplerate libsamplerate-devel)" | ||
short_desc="Library to emulate Roland MT-32, CM-32L and LAPC-I synthesizer modules" | ||
maintainer="Joshua Krämer <joshua@kraemer.link>" | ||
license="LGPL-2.1-or-later" | ||
homepage="http://munt.sourceforge.net" | ||
distfiles="https://github.com/munt/munt/archive/libmt32emu_2_5_0.tar.gz" | ||
checksum=eb43864c002acedc42b304e1500f682c871ef8dabd8b5cbe492ec314a226f231 | ||
|
||
build_options="libsoxr libsamplerate" | ||
desc_option_libsoxr="Use libsoxr for sample rate conversion" | ||
desc_option_libsamplerate="Use libsamplerate for sample rate conversion" | ||
build_options_default="libsoxr" | ||
vopt_conflict libsoxr libsamplerate | ||
if [ "$build_option_libsoxr" -o "$build_option_libsamplerate" ]; then configure_args+=" -Dlibmt32emu_WITH_INTERNAL_RESAMPLER=off"; fi | ||
|
||
libmt32emu-devel_package() { | ||
short_desc+=" - development files" | ||
depends="${sourcepkg}>=${version}_${revision} $(vopt_if libsoxr libsoxr-devel) $(vopt_if libsamplerate libsamplerate-devel)" | ||
pkg_install() { | ||
vmove usr/include | ||
vmove "usr/lib/*.so" | ||
vmove usr/lib/pkgconfig | ||
} | ||
} |