New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New package: dosbox-staging-0.77.0 #31258
Conversation
2ca25fb
to
d645be4
Compare
Build fails with musl because the wrong strerror_r() variant is used. Upstream bug report: dosbox-staging/dosbox-staging#1047 |
d645be4
to
8c729ee
Compare
I highly recommend it across the board. Floats are already 32-bits - which gives you 2^16 times finer resolution to quantify an amplitude level versus CD-quality 16-bit sound. Even 24-bit audio is considered sufficient for professional-grade studio work. Leaving this as a double means samples are a whopping 64-bit; which is.. vastly overkill. The other benefit of 32-bit floats (versus full-doubles) is that SIMD'able operations can pack twice the data into a single operation, which can make difference on CPU limited hardware like the Pi 2 and 3. I made these two points in another thread and FluidSynth's author was also in agreement - but can't remember where now. |
8cd2da5
to
e1ad7c8
Compare
srcpkgs/dosbox-staging/template
Outdated
revision=1 | ||
build_style=meson | ||
hostmakedepends="pkg-config ccache" | ||
makedepends="alsa-lib-devel libpng-devel SDL2-devel SDL2_net-devel opusfile-devel fluidsynth-devel libmt32emu-devel libatomic-devel" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create a new line at ~80 columns.
Is libatomic
always necessary or only for XBPS_TARGET_NO_ATOMIC8
archs (like armv6l)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done and check for XBPS_TARGET_NO_ATOMIC8
added.
srcpkgs/dosbox-staging/template
Outdated
version=0.77.0 | ||
revision=1 | ||
build_style=meson | ||
hostmakedepends="pkg-config ccache" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ccache
is always available in the chroot, don't install manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
srcpkgs/libmt32emu/template
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything after then
should be a new line, and so should fi
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
srcpkgs/libmt32emu/template
Outdated
|
||
libmt32emu-devel_package() { | ||
short_desc+=" - development files" | ||
depends="${sourcepkg}>=${version}_${revision} $(vopt_if libsoxr libsoxr-devel) $(vopt_if libsamplerate libsamplerate-devel)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
depends="${sourcepkg}>=${version}_${revision} $(vopt_if libsoxr libsoxr-devel) $(vopt_if libsamplerate libsamplerate-devel)" | |
depends="${sourcepkg}>=${version}_${revision} ${makedepends}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
e1ad7c8
to
776851f
Compare
I think the files under |
776851f
to
282be11
Compare
282be11
to
ea3b820
Compare
Re-ordered commits for logical order (first dependency, then dosbox). |
This is a draft based on a current git snapshot, because DOSBox Staging 0.77.0 has not been released yet.
@kcgen wrote (joshuakraemer@2d0e6a7#commitcomment-51084600):
Thank you for your comments. I have added libmt32emu as a separate package, and successfully tested MT-32 emulation.
Void's build options for meson packages are specified in https://github.com/void-linux/void-packages/blob/master/common/build-style/meson.sh (using -O2 from the CFLAGS environment variable). The enable-floats option could probably be added to Void's FluidSynth package (https://github.com/void-linux/void-packages/blob/master/srcpkgs/fluidsynth/template), but I do not know if it would be a suitable default outside of DosBox.