Index: head/audio/wildmidi/Makefile =================================================================== --- head/audio/wildmidi/Makefile (revision 447273) +++ head/audio/wildmidi/Makefile (revision 447274) @@ -1,76 +1,81 @@ # $FreeBSD$ PORTNAME= wildmidi PORTVERSION= 0.4.0 DISTVERSIONPREFIX= ${PORTNAME}- CATEGORIES= audio MAINTAINER= liangtai.s16@gmail.com COMMENT= Simple software midi player and core softsynth library # player: GPLv3, library: LGPL3 LICENSE= LGPL3 USE_GITHUB= yes GH_ACCOUNT= Mindwerks USES= cmake:outsource USE_LDCONFIG= yes OPTIONS_SUB= yes OPTIONS_RADIO= BACKEND OPTIONS_RADIO_BACKEND= ALSA OPENAL OSS OPTIONS_DEFINE= PLAYER PLAYERSTATIC STATIC OPTIONS_DEFAULT= ALSA PLAYER STATIC_CMAKE_ON= -DWANT_STATIC:BOOL=ON STATIC_CMAKE_OFF= -DWANT_STATIC:BOOL=OFF PLAYER_DESC= Simple player PLAYERSTATIC_DESC= Simple player using STATIC libWildMidi BACKEND_DESC= Sound system PLAYER and PLAYERSTATIC use PLAYER_CMAKE_ON= -DWANT_PLAYER:BOOL=ON PLAYER_CMAKE_OFF= -DWANT_PLAYER:BOOL=OFF PLAYERSTATIC_CMAKE_ON= -DWANT_PLAYERSTATIC:BOOL=ON PLAYERSTATIC_CMAKE_OFF= -DWANT_PLAYERSTATIC:BOOL=OFF PLAYERSTATIC_IMPLIES= STATIC ALSA_CMAKE_ON= -DWANT_ALSA:BOOL=ON ALSA_CMAKE_OFF= -DWANT_ALSA:BOOL=OFF OPENAL_CMAKE_ON= -DWANT_OPENAL:BOOL=ON OPENAL_CMAKE_OFF= -DWANT_OPENAL:BOOL=OFF OSS_CMAKE_ON= -DWANT_OSS:BOOL=ON OSS_CMAKE_OFF= -DWANT_OSS:BOOL=OFF .include .if ${PORT_OPTIONS:MPLAYER} || ${PORT_OPTIONS:MPLAYERSTATIC} LICENSE+= GPLv3 LICENSE_COMB= multi . if ${PORT_OPTIONS:MOPENAL} USES+= openal:al . elif ${PORT_OPTIONS:MALSA} 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\//{" \ -e "s|/usr/share/midi/freepats|${LOCALBASE}/share/freepats|;" \ -e "h; x; s|^|# |; s|freepats|guspat|; H; s|guspat|eawpats|; H;" \ -e "s|eawpats|eawplus|; H; x;}" @${GREP} -L ${LOCALBASE} ${WRKSRC}/docs/man/man1/wildmidi.1 \ ${WRKSRC}/docs/man/man5/wildmidi.cfg.5 \ ${WRKSRC}/CMakeLists.txt | ${XARGS} \ ${REINPLACE_CMD} -e 's@/etc/wildmidi/@${DATADIR}/@' \ -e 's@/etc/@${DATADIR}/@' @${GREP} -l share/man ${WRKSRC}/src/CMakeLists.txt | ${XARGS} \ ${REINPLACE_CMD} '/INSTALL/s@share/man@man@' pre-install: @${RM} ${WRKSRC}/docs/man/man1/wildmidi.1${REINPLACE_ARGS:S/-i//} \ ${WRKSRC}/docs/man/man5/wildmidi.cfg.5${REINPLACE_ARGS:S/-i//} ${MKDIR} ${STAGEDIR}${DATADIR} ; \ ${CP} ${WRKSRC}/cfg/wildmidi.cfg ${STAGEDIR}${DATADIR}/wildmidi.cfg.sample .include Index: head/audio/wildmidi/files/extra-patch-src_wm__tty.c =================================================================== --- head/audio/wildmidi/files/extra-patch-src_wm__tty.c (nonexistent) +++ head/audio/wildmidi/files/extra-patch-src_wm__tty.c (revision 447274) @@ -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 + #include Property changes on: head/audio/wildmidi/files/extra-patch-src_wm__tty.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property