diff --git a/srcpkgs/rtmidi/patches/fix-cross.patch b/srcpkgs/rtmidi/patches/fix-cross.patch new file mode 100644 index 0000000000..0c7acdda8a --- /dev/null +++ b/srcpkgs/rtmidi/patches/fix-cross.patch @@ -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 +- `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 ++# `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]) diff --git a/srcpkgs/rtmidi/template b/srcpkgs/rtmidi/template index 544d0c3795..c1b5781fe1 100644 --- a/srcpkgs/rtmidi/template +++ b/srcpkgs/rtmidi/template @@ -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