svn commit: r380803 - in head/audio/wildmidi: . files
Bartek Rutkowski
robak at FreeBSD.org
Sun Mar 8 21:37:43 UTC 2015
Author: robak
Date: Sun Mar 8 21:37:41 2015
New Revision: 380803
URL: https://svnweb.freebsd.org/changeset/ports/380803
QAT: https://qat.redports.org/buildarchive/r380803/
Log:
audio/wildmidi: update 0.2.3.5 -> 0.3.8
- Switch from SF to GitHub usage
PR: 186476
Submitted by: RyoTa SimaMoto <liangtai.s16 at gmail.com>
Deleted:
head/audio/wildmidi/files/
Modified:
head/audio/wildmidi/Makefile
head/audio/wildmidi/distinfo
head/audio/wildmidi/pkg-descr
head/audio/wildmidi/pkg-plist
Modified: head/audio/wildmidi/Makefile
==============================================================================
--- head/audio/wildmidi/Makefile Sun Mar 8 21:36:35 2015 (r380802)
+++ head/audio/wildmidi/Makefile Sun Mar 8 21:37:41 2015 (r380803)
@@ -1,39 +1,80 @@
# $FreeBSD$
PORTNAME= wildmidi
-PORTVERSION= 0.2.3.5
-PORTREVISION= 2
+PORTVERSION= 0.3.8
CATEGORIES= audio
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
MAINTAINER= liangtai.s16 at gmail.com
COMMENT= Simple software midi player and core softsynth library
# player: GPLv3, library: LGPL3
-LICENSE= GPLv3 LGPL3
-LICENSE_COMB= multi
-
-MAKE_JOBS_UNSAFE= yes
+LICENSE= LGPL3
-USES= compiler gmake libtool
+USE_GITHUB= yes
+GH_ACCOUNT= Mindwerks
+GH_PROJECT= wildmidi
+GH_TAGNAME= ${PORTNAME}-${PORTVERSION:R}
+GH_COMMIT= de35d7f
+USES= gmake cmake:outsource
USE_LDCONFIG= yes
-GNU_CONFIGURE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_SUB= yes
+OPTIONS_SINGLE= BACKEND
+OPTIONS_SINGLE_BACKEND= ALSA OSS OPENAL OPENALSOFT
+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 uses
+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
+ALSA_CMAKE_ON= -DWANT_ALSA:BOOL=ON
+ALSA_CMAKE_OFF= -DWANT_ALSA:BOOL=OFF
+OSS_CMAKE_ON= -DWANT_OSS:BOOL=ON
+OSS_CMAKE_OFF= -DWANT_OSS:BOOL=OFF
+OPENALSOFT_DESC= OpenAL support
-.if ${COMPILER_TYPE} == clang
-CONFIGURE_ARGS+= --disable-optimize
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MPLAYER} || ${PORT_OPTIONS:MPLAYERSTATIC}
+LICENSE+= GPLv3
+LICENSE_COMB= multi
+CMAKE_ARGS+= -DWANT_OPENAL:BOOL=OFF
+. if ${PORT_OPTIONS:MALSA}
+LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib
+. elif ${PORT_OPTIONS:MOPENALSOFT}
+LIB_DEPENDS+= libopenal.so:${PORTSDIR}/audio/openal-soft
+CMAKE_ARGS+= -DWANT_OPENAL:BOOL=ON
+. elif ${PORT_OPTIONS:MOPENAL}
+LIB_DEPENDS+= libopenal.so:${PORTSDIR}/audio/openal
+CMAKE_ARGS+= -DWANT_OPENAL:BOOL=ON
+. endif
.endif
post-patch:
- @${REINPLACE_CMD} -e 's@/etc/@${DATADIR}/@' \
- ${WRKSRC}/docs/wildmidi.1 \
- ${WRKSRC}/docs/wildmidi.cfg.5
- @${REINPLACE_CMD} -e 's@/usr/local/share/wildmidi/@${DATADIR}/@' \
- -e 's at default_timifityconf@default_wildmidiconf@' \
- -e 's@$${\(.*\)-unset} = unset at x"$${\1}" = x@' \
- ${WRKSRC}/configure
- @${REINPLACE_CMD} -e '/WM_MixerOptions/s/ \&\& / \& /' \
- ${WRKSRC}/src/wildmidi_lib.c
+ @${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 at share/man at man@'
+
+pre-install:
+ @${RM} -f ${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 <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: head/audio/wildmidi/distinfo
==============================================================================
--- head/audio/wildmidi/distinfo Sun Mar 8 21:36:35 2015 (r380802)
+++ head/audio/wildmidi/distinfo Sun Mar 8 21:37:41 2015 (r380803)
@@ -1,2 +1,2 @@
-SHA256 (wildmidi-0.2.3.5.tar.gz) = 00642702d3475d134596b19531c9e589043dcac482011494e42b035b4739e554
-SIZE (wildmidi-0.2.3.5.tar.gz) = 375792
+SHA256 (wildmidi-0.3.8.tar.gz) = 2a9f26b97dba4dae5adb2ac3babcc678a34211f066379d1a4a32f5ad141d0e4f
+SIZE (wildmidi-0.3.8.tar.gz) = 121699
Modified: head/audio/wildmidi/pkg-descr
==============================================================================
--- head/audio/wildmidi/pkg-descr Sun Mar 8 21:36:35 2015 (r380802)
+++ head/audio/wildmidi/pkg-descr Sun Mar 8 21:37:41 2015 (r380803)
@@ -12,4 +12,4 @@ able to use a different patch set for ea
The wildmidi player is a demonstration program to show the capabilities of
libWildMidi.
-WWW: http://wildmidi.sourceforge.net/
+WWW: http://www.mindwerks.net/projects/wildmidi/
Modified: head/audio/wildmidi/pkg-plist
==============================================================================
--- head/audio/wildmidi/pkg-plist Sun Mar 8 21:36:35 2015 (r380802)
+++ head/audio/wildmidi/pkg-plist Sun Mar 8 21:37:41 2015 (r380803)
@@ -1,8 +1,10 @@
-bin/wildmidi
+%%PLAYER%%bin/wildmidi
+%%PLAYERSTATIC%%bin/wildmidi-static
include/wildmidi_lib.h
-lib/libWildMidi.so.1
-lib/libWildMidi.so.1.1.0
+%%STATIC%%lib/libWildMidi.a
lib/libWildMidi.so
+lib/libWildMidi.so.1
+lib/libWildMidi.so.1.1.2
man/man1/wildmidi.1.gz
man/man3/WildMidi_Close.3.gz
man/man3/WildMidi_FastSeek.3.gz
@@ -16,3 +18,4 @@ man/man3/WildMidi_OpenBuffer.3.gz
man/man3/WildMidi_SetOption.3.gz
man/man3/WildMidi_Shutdown.3.gz
man/man5/wildmidi.cfg.5.gz
+%%DATADIR%%/wildmidi.cfg.sample
More information about the svn-ports-all
mailing list