diff options
author | ultima <ultima@FreeBSD.org> | 2017-08-04 02:36:51 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2018-02-04 05:17:59 +0800 |
commit | 977495c8dca2d3ec9db9f7884de9988da3da79a4 (patch) | |
tree | 724543e750b92ad2bf89f850026f9d9ff093581f /audio | |
parent | 48b6b1519ab8f7e309ad85e84f9c8482a9c0447c (diff) | |
download | freebsd-ports-gnome-977495c8dca2d3ec9db9f7884de9988da3da79a4.tar.gz freebsd-ports-gnome-977495c8dca2d3ec9db9f7884de9988da3da79a4.tar.zst freebsd-ports-gnome-977495c8dca2d3ec9db9f7884de9988da3da79a4.zip |
This change will fix BROKEN status on several latest
FreeBSD branches that will be upcoming releases.
PR: 220843
Submitted by: SimaMoto,RyōTa <liangtai.s16@gmail.com> (maintainer)
Reviewed by: matthew (mentor)
Approved by: matthew (mentor)
MFH: 2017Q3
Differential Revision: https://reviews.freebsd.org/D11829
Diffstat (limited to 'audio')
-rw-r--r-- | audio/wildmidi/Makefile | 5 | ||||
-rw-r--r-- | audio/wildmidi/files/extra-patch-src_wm__tty.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/audio/wildmidi/Makefile b/audio/wildmidi/Makefile index dafe4768b856..49a6a47e2f84 100644 --- a/audio/wildmidi/Makefile +++ b/audio/wildmidi/Makefile @@ -53,6 +53,11 @@ LIB_DEPENDS+= libasound.so:audio/alsa-lib . endif .endif +# base: r318780, r319651, r319653 +.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1200031 || (${OSVERSION} >= 1100514 && ${OSVERSION} < 1200000) || (${OSVERSION} >= 1003514 && ${OSVERSION} < 1100000)) +EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_wm__tty.c +.endif + post-patch: @${GREP} -L ${LOCALBASE} ${WRKSRC}/cfg/wildmidi.cfg | ${XARGS} \ ${REINPLACE_CMD} -e "/^dir \/usr\/share\//{" \ diff --git a/audio/wildmidi/files/extra-patch-src_wm__tty.c b/audio/wildmidi/files/extra-patch-src_wm__tty.c new file mode 100644 index 000000000000..85cd61401712 --- /dev/null +++ b/audio/wildmidi/files/extra-patch-src_wm__tty.c @@ -0,0 +1,10 @@ +--- src/wm_tty.c.orig 2017-02-26 17:30:45 UTC ++++ src/wm_tty.c +@@ -27,6 +27,7 @@ + #if !(defined(_WIN32) || defined(__DJGPP__) || defined(WILDMIDI_AMIGA) || defined(__OS2__) || defined(__EMX__)) + + #define _XOPEN_SOURCE 600 /* for ONLCR */ ++#define __BSD_VISIBLE 1 /* for ONLCR in *BSD */ + + #include <unistd.h> + #include <termios.h> |