wildmidi: update to 0.4.4
This commit is contained in:
parent
3a92443342
commit
ca27118219
3 changed files with 17 additions and 21 deletions
|
@ -1,17 +0,0 @@
|
|||
--- src/wildmidi.c 2018-11-24 09:55:50.000000000 +0100
|
||||
+++ src/wildmidi.c 2020-01-23 17:07:12.497649804 +0100
|
||||
@@ -1978,12 +1978,8 @@
|
||||
if (!real_file) real_file = argv[optind];
|
||||
else real_file++;
|
||||
|
||||
- strncpy(midi_file, real_file, strlen(real_file));
|
||||
- midi_file[strlen(real_file)-4] = '.';
|
||||
- midi_file[strlen(real_file)-3] = 'm';
|
||||
- midi_file[strlen(real_file)-2] = 'i';
|
||||
- midi_file[strlen(real_file)-1] = 'd';
|
||||
-
|
||||
+ snprintf(midi_file, sizeof(midi_file), "%.*s.mid",
|
||||
+ (int)(strlen(real_file) - 4), real_file);
|
||||
printf("\rWriting %s: %u bytes.\r\n", midi_file, getmidisize);
|
||||
write_midi_output(getmidibuffer,getmidisize);
|
||||
free(getmidibuffer);
|
13
srcpkgs/wildmidi/patches/save_midi.patch
Normal file
13
srcpkgs/wildmidi/patches/save_midi.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git src/wildmidi.c src/wildmidi.c
|
||||
index a9ae0f1..fd9c5e7 100644
|
||||
--- src/wildmidi.c
|
||||
+++ src/wildmidi.c
|
||||
@@ -1997,7 +1997,7 @@ int main(int argc, char **argv) {
|
||||
WildMidi_ClearError();
|
||||
} else {
|
||||
char *real_file = FIND_LAST_DIRSEP(argv[optind-1]);
|
||||
- if (!real_file) real_file = argv[optind];
|
||||
+ if (!real_file) real_file = argv[optind-1];
|
||||
else real_file++;
|
||||
mk_midifile_name(real_file);
|
||||
printf("\rWriting %s: %u bytes.\r\n", midi_file, getmidisize);
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'wildmidi'
|
||||
pkgname=wildmidi
|
||||
version=0.4.3
|
||||
revision=6
|
||||
version=0.4.4
|
||||
revision=1
|
||||
wrksrc="${pkgname}-${pkgname}-${version}"
|
||||
build_style=cmake
|
||||
configure_args="-DWANT_ALSA=1 -DWANT_OSS=1 -DWANT_OPENAL=1"
|
||||
|
@ -11,9 +11,9 @@ depends="libwildmidi"
|
|||
short_desc="Simple software midi player and core softsynth library"
|
||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||
license="GPL-3.0-or-later, LGPL-3.0-only"
|
||||
homepage="http://www.mindwerks.net/projects/wildmidi"
|
||||
homepage="https://www.mindwerks.net/projects/wildmidi"
|
||||
distfiles="https://github.com/Mindwerks/${pkgname}/archive/${pkgname}-${version}.tar.gz"
|
||||
checksum=498e5a96455bb4b91b37188ad6dcb070824e92c44f5ed452b90adbaec8eef3c5
|
||||
checksum=6f267c8d331e9859906837e2c197093fddec31829d2ebf7b958cf6b7ae935430
|
||||
|
||||
post_install() {
|
||||
vsconf ${FILESDIR}/wildmidi.cfg
|
||||
|
|
Loading…
Reference in a new issue