rtmidi: fix cross

This commit is contained in:
Michael Gehring 2017-10-11 07:51:15 +00:00 committed by Michael Aldridge
parent 19ed8e7497
commit f66a78ef33
2 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,21 @@
--- configure.ac.orig 2017-10-11 07:45:18.000000000 +0000
+++ configure.ac 2017-10-11 07:49:25.955714462 +0000
@@ -30,12 +30,12 @@
# Check version number coherency between RtMidi.h and configure.ac
AC_MSG_CHECKING([that version numbers are coherent])
-AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([#include <string.h>
- `grep "define RTMIDI_VERSION" $srcdir/RtMidi.h`],
- [return strcmp(RTMIDI_VERSION, PACKAGE_VERSION);])],
- [AC_MSG_RESULT([yes])],
- [AC_MSG_FAILURE([testing RTMIDI_VERSION==PACKAGE_VERSION failed, check that RtMidi.h defines RTMIDI_VERSION as "$PACKAGE_VERSION" or that the first line of configure.ac has been updated.])])
+# AC_RUN_IFELSE(
+# [AC_LANG_PROGRAM([#include <string.h>
+# `grep "define RTMIDI_VERSION" $srcdir/RtMidi.h`],
+# [return strcmp(RTMIDI_VERSION, PACKAGE_VERSION);])],
+# [AC_MSG_RESULT([yes])],
+# [AC_MSG_FAILURE([testing RTMIDI_VERSION==PACKAGE_VERSION failed, check that RtMidi.h defines RTMIDI_VERSION as "$PACKAGE_VERSION" or that the first line of configure.ac has been updated.])])
# Enable some nice automake features if they are available
m4_ifdef([AM_MAINTAINER_MODE], [AM_MAINTAINER_MODE])

View file

@ -13,8 +13,6 @@ homepage="http://www.music.mcgill.ca/~gary/rtmidi/"
distfiles="https://github.com/thestk/rtmidi/archive/v${version}.tar.gz"
checksum=55cd0fba60321aadcd847481d207bf2b70e783b5bfa1a01037bf916554a7d5c4
nocross="https://build.voidlinux.eu/builders/armv7l-musl_builder/builds/4371/steps/shell_3/logs/stdio"
pre_configure() {
sed -i 's/\($cppflag\)/\1 $CFLAGS/' configure.ac
autoreconf -fi