svn commit: r468613 - in head/audio/mous: . files

Tobias Kortkamp tobik at FreeBSD.org
Sun Apr 29 09:17:18 UTC 2018


Author: tobik
Date: Sun Apr 29 09:17:17 2018
New Revision: 468613
URL: https://svnweb.freebsd.org/changeset/ports/468613

Log:
  audio/mous: Unbreak and update to 2.0.1
  
  Changes:	https://github.com/bsdelf/mous/releases
  PR:		227500
  Submitted by:	Yanhui Shen <shen.elf at gmail.com> (maintainer, based on)

Deleted:
  head/audio/mous/files/
Modified:
  head/audio/mous/Makefile
  head/audio/mous/distinfo
  head/audio/mous/pkg-descr
  head/audio/mous/pkg-message
  head/audio/mous/pkg-plist

Modified: head/audio/mous/Makefile
==============================================================================
--- head/audio/mous/Makefile	Sun Apr 29 09:12:41 2018	(r468612)
+++ head/audio/mous/Makefile	Sun Apr 29 09:17:17 2018	(r468613)
@@ -2,126 +2,103 @@
 # $FreeBSD$
 
 PORTNAME=	mous
-PORTVERSION=	1.1a
-PORTREVISION=	6
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.0.1
 CATEGORIES=	audio
-MASTER_SITES=	GHC
 
 MAINTAINER=	shen.elf at gmail.com
 COMMENT=	Simple yet powerful audio player
 
 LICENSE=	BSD2CLAUSE
-LICENSE_FILE=	${WRKSRC}/COPYRIGHT
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN=		fails to build: sdk/scx/Socket.hpp:188:5: invalid operands to binary expression
-
-USES=		cmake
+USES=		cmake:outsource compiler:c++14-lang
 USE_LDCONFIG=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	bsdelf
 
-OPTIONS_DEFINE=		ALSA ASSEMBLY FAAC FAAD FLAC LAME AO CUE MAC4DECODER \
-			MACDECODER MPG123 NCURSES OSS QT4 SDK TAGLIB VORBIS \
-			WAVDECODER WAVENCODER WMA
-OPTIONS_DEFAULT=	FAAC FAAD FLAC LAME CUE MAC4DECODER \
-			MPG123 NCURSES OSS QT4 TAGLIB VORBIS WAVDECODER \
-			WAVENCODER
-OPTIONS_DEFAULT_amd64=	ASSEMBLY WMA
-OPTIONS_DEFAULT_i386=	ASSEMBLY WMA
+CMAKE_OFF=	WITH_PLUGIN_ALSA \
+		WITH_PLUGIN_COREAUDIO \
+		WITH_PLUGIN_FAAC \
+		WITH_PLUGIN_FAAD \
+		WITH_PLUGIN_LIBAO \
+		WITH_PLUGIN_WMA
 
-OPTIONS_SUB=		yes
+OPTIONS_DEFAULT=	CLI NCURSES LIBCUE TAGLIB FDK_AAC FLAC LAME LIBCUE MAC \
+			MPG123 VORBIS WAV WAVPACK OSS
+OPTIONS_GROUP=	APPLICATION GENERIC_PLUGIN CODEC_PLUGIN
+OPTIONS_GROUP_APPLICATION=	CLI NCURSES QT5
+OPTIONS_GROUP_GENERIC_PLUGIN=	LIBCUE TAGLIB
+OPTIONS_GROUP_CODEC_PLUGIN=	FDK_AAC FLAC LAME MAC MPG123 VORBIS WAV WAVPACK
+OPTIONS_RADIO=	OUTPUT_PLUGIN
+OPTIONS_RADIO_OUTPUT_PLUGIN=	OSS SNDIO
+OPTIONS_SUB=	yes
 
-ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
-ALSA_CMAKE_ON=		-DWithPluginAlsaRenderer=1
-ALSA_CMAKE_OFF=		-DWithPluginAlsaRenderer=0
+APPLICATION_DESC=	Interface support
+CLI_DESC=		Command line interface support
+CODEC_PLUGIN_DESC=	Codec plugins
+FDK_AAC_DESC=		FDK AAC codec support
+GENERIC_PLUGIN_DESC=	Generic plugins
+LIBCUE_DESC=		CUE sheet support
+MAC_DESC=		Monkey's Audio codec support
+OUTPUT_PLUGIN_DESC=	Output plugins
+TAGLIB_DESC=		TagLib support
 
-AO_LIB_DEPENDS=		libao.so:audio/libao
-AO_CMAKE_ON=		-DWithPluginAoRenderer=1
-AO_CMAKE_OFF=		-DWithPluginAoRenderer=0
+CLI_CMAKE_BOOL=		WITH_APP_CLI
 
-ASSEMBLY_DESC=		Enable assembly optimizations
-ASSEMBLY_BUILD_DEPENDS=	${LOCALBASE}/bin/yasm:devel/yasm
-ASSEMBLY_CMAKE_ON=	-DWithAssembly=1
-ASSEMBLY_CMAKE_OFF=	-DWithAssembly=0
+FDK_AAC_CMAKE_BOOL=	WITH_PLUGIN_FDK_AAC
+FDK_AAC_LIB_DEPENDS=	libfdk-aac.so:audio/fdk-aac \
+			libmp4v2.so:multimedia/mp4v2
 
-CUE_LIB_DEPENDS=	libcue.so:textproc/libcue
-CUE_CMAKE_ON=		-DWithPluginCuePack=1
-CUE_CMAKE_OFF=		-DWithPluginCuePack=0
-
-FAAC_LIB_DEPENDS=	libfaac.so:audio/faac
-FAAC_CMAKE_ON=		-DWithPluginFaacEncoder=1
-FAAC_CMAKE_OFF=		-DWithPluginFaacEncoder=0
-
-FAAD_LIB_DEPENDS=	libfaad.so:audio/faad
-FAAD_CMAKE_ON=		-DWithPluginFaadDecoder=1
-FAAD_CMAKE_OFF=		-DWithPluginFaadEncoder=0
-
+FLAC_CMAKE_BOOL=	WITH_PLUGIN_FLAC
 FLAC_LIB_DEPENDS=	libFLAC.so:audio/flac
-FLAC_CMAKE_ON=		-DWithPluginFlacDecoder=1
-FLAC_CMAKE_OFF=		-DWithPluginFlacDecoder=0
 
+LAME_CMAKE_BOOL=	WITH_PLUGIN_LAME
 LAME_LIB_DEPENDS=	libmp3lame.so:audio/lame
-LAME_CMAKE_ON=		-DWithPluginLameEncoder=1
-LAME_CMAKE_OFF=		-DWithPluginLameEncoder=0
 
-MPG123_LIB_DEPENDS=	libmpg123.so:audio/mpg123
-MPG123_CMAKE_ON=	-DWithPluginMpg123Decoder=1
-MPG123_CMAKE_OFF=	-DWithPluginMpg123Decoder=0
+LIBCUE_CMAKE_BOOL=	WITH_PLUGIN_LIBCUE
+LIBCUE_LIB_DEPENDS=	libcue.so:textproc/libcue
 
-MAC4DECODER_DESC=	Newest mac4.11 decoder (*.ape)
-MAC4DECODER_CMAKE_ON=	-DWithPluginMac4Decoder=1
-MAC4DECODER_CMAKE_OFF=	-DWithPluginMac4Decoder=0
+MAC_CMAKE_BOOL=		WITH_PLUGIN_MAC
 
-MACDECODER_DESC=	Old mac3.99 ape decoder (*.ape)
-MACDECODER_LIB_DEPENDS=	libmac.so:audio/mac
-MACDECODER_CMAKE_ON=	-DWithPluginMacDecoder=1
-MACDECODER_CMAKE_OFF=	-DWithPluginMacDecoder=0
+MPG123_CMAKE_BOOL=	WITH_PLUGIN_MPG123
+MPG123_LIB_DEPENDS=	libmpg123.so:audio/mpg123
 
-NCURSES_DESC=		Ncurses frontend
-NCURSES_USES=		ncurses
-NCURSES_CMAKE_ON=	-DWithFrontendNcurses=1
-NCURSES_CMAKE_OFF=	-DWithFrontendNcurses=0
+NCURSES_CMAKE_BOOL=	WITH_APP_NCURSES
+NCURSES_USE=		ncurses
 
-OSS_CMAKE_ON=		-DWithPluginOssRenderer=1
-OSS_CMAKE_OFF=		-DWithPluginOssRenderer=0
+OSS_CMAKE_BOOL=		WITH_PLUGIN_OSS
 
-QT4_DESC=		QT4 frontend
-QT4_USE=		QT4=corelib,gui,linguisttools_build
-QT4_USE+=		QT4=qmake_build,moc_build,rcc_build,uic_build
-QT4_CMAKE_ON=		-DWithFrontendQt=1
-QT4_CMAKE_OFF=		-DWithFrontendQt=0
+QT5_CMAKE_BOOL=		WITH_APP_QT5
+QT5_USE=		qt5=buildtools,core,gui,widgets,qmake_build
 
-SDK_DESC=		Install SDK
-SDK_CMAKE_ON=		-DWithHeadFiles=1
-SDK_CMAKE_OFF=		-DWithHeadFiles=0
+SNDIO_CMAKE_BOOL=	WITH_PLUGIN_SNDIO
+SNDIO_LIB_DEPENDS=	libsndio.so:audio/sndio
 
-TAGLIB_DESC=		TagLib plugin (recommended)
+TAGLIB_CMAKE_BOOL=	WITH_PLUGIN_TAGLIB
 TAGLIB_LIB_DEPENDS=	libtag.so:audio/taglib
-TAGLIB_CMAKE_ON=	-DWithPluginTagLibParser=1
-TAGLIB_CMAKE_OFF=	-DWithPluginTagLibParser=0
 
-VORBIS_LIB_DEPENDS=	libvorbisfile.so:audio/libvorbis
-VORBIS_CMAKE_ON=	-DWithPluginOggDecoder=1
-VORBIS_CMAKE_OFF=	-DWithPluginOggDecoder=0
+VORBIS_CMAKE_BOOL=	WITH_PLUGIN_OGG_VORBIS
+VORBIS_LIB_DEPENDS=	libogg.so:audio/libogg \
+			libvorbis.so:audio/libvorbis\
+			libvorbisenc.so:audio/libvorbis\
+			libvorbisfile.so:audio/libvorbis
 
-WAVDECODER_DESC=	Decode Wav
-WAVDECODER_CMAKE_ON=	-DWithPluginWavDecoder=1
-WAVDECODER_CMAKE_OFF=	-DWithPluginWavEncoder=0
+WAV_CMAKE_BOOL=		WITH_PLUGIN_WAV
 
-WAVENCODER_DESC=	Encode Wav
-WAVENCODER_CMAKE_ON=	-DWithPluginWavEncoder=1
-WAVENCODER_CMAKE_OFF=	-DWithPluginWavEncoder=0
+WAVPACK_CMAKE_BOOL=	WITH_PLUGIN_WAVPACK
+WAVPACK_LIB_DEPENDS=	libwavpack.so:audio/wavpack
 
-WMA_DESC=		WMA decoder plugin
-WMA_CMAKE_ON=		-DWithPluginWmaDecoder=1
-WMA_CMAKE_OFF=		-DWithPluginWmaDecoder=0
+.include <bsd.port.options.mk>
 
+.if ${ARCH} == i386
+# error: always_inline function '_mm_load_si128' requires target feature
+# 'mmx', but would be inlined into function 'AdaptSSE' that is compiled
+# without support for 'mmx'
 post-patch:
-	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \
-		-e 's|/usr/local|${LOCALBASE}|g' \
-		${WRKSRC}/CMakeLists.txt
-
-post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mous/*
+	@${REINPLACE_CMD} '/#define ENABLE_SSE_ASSEMBLY/d' \
+		${WRKSRC}/deps/MAC_SDK/Shared/All.h \
+		${WRKSRC}/deps/MAC_SDK/Source/Shared/All.h
+.endif
 
 .include <bsd.port.mk>

Modified: head/audio/mous/distinfo
==============================================================================
--- head/audio/mous/distinfo	Sun Apr 29 09:12:41 2018	(r468612)
+++ head/audio/mous/distinfo	Sun Apr 29 09:17:17 2018	(r468613)
@@ -1,2 +1,3 @@
-SHA256 (mous-1.1a.tar.gz) = 55826f30567a11d1c54af335b4290329b680c9e64ef9f46c0b7e3a4427414b56
-SIZE (mous-1.1a.tar.gz) = 677884
+TIMESTAMP = 1524993359
+SHA256 (bsdelf-mous-v2.0.1_GH0.tar.gz) = b8866049c225fab2033617908d3c3b353533bc20c274b1fa0d7c034ea1c15cef
+SIZE (bsdelf-mous-v2.0.1_GH0.tar.gz) = 2735960

Modified: head/audio/mous/pkg-descr
==============================================================================
--- head/audio/mous/pkg-descr	Sun Apr 29 09:12:41 2018	(r468612)
+++ head/audio/mous/pkg-descr	Sun Apr 29 09:17:17 2018	(r468613)
@@ -1,3 +1,3 @@
 Mous is a simpe yet powerful audio player.
 
-WWW: https://github.com/0x02/mous
+WWW: https://github.com/bsdelf/mous

Modified: head/audio/mous/pkg-message
==============================================================================
--- head/audio/mous/pkg-message	Sun Apr 29 09:12:41 2018	(r468612)
+++ head/audio/mous/pkg-message	Sun Apr 29 09:17:17 2018	(r468613)
@@ -1,6 +1 @@
-========================================================================
-
-For mous-ncurses frontend, you can check its usage
-with 'H' after starting.
-
-========================================================================
+You can check mous-ncurses usage with 'H' after starting.

Modified: head/audio/mous/pkg-plist
==============================================================================
--- head/audio/mous/pkg-plist	Sun Apr 29 09:12:41 2018	(r468612)
+++ head/audio/mous/pkg-plist	Sun Apr 29 09:17:17 2018	(r468613)
@@ -1,70 +1,18 @@
+%%CLI%%bin/mous-cli
 %%NCURSES%%bin/mous-ncurses
-%%QT4%%bin/mous-qt
-%%SDK%%include/mous/charset/CharsetConvInf.h
-%%SDK%%include/mous/charset/ICharsetConv.h
-%%SDK%%include/mous/core/IConvTask.h
-%%SDK%%include/mous/core/IConvTaskFactory.h
-%%SDK%%include/mous/core/IMediaLoader.h
-%%SDK%%include/mous/core/IPlayer.h
-%%SDK%%include/mous/core/IPluginAgent.h
-%%SDK%%include/mous/core/IPluginManager.h
-%%SDK%%include/mous/core/ITagParserFactory.h
-%%SDK%%include/mous/plugin/IDecoder.h
-%%SDK%%include/mous/plugin/IEncoder.h
-%%SDK%%include/mous/plugin/IEventWatcher.h
-%%SDK%%include/mous/plugin/IFilter.h
-%%SDK%%include/mous/plugin/IMediaPack.h
-%%SDK%%include/mous/plugin/IRenderer.h
-%%SDK%%include/mous/plugin/ITagParser.h
-%%SDK%%include/mous/scx/BufObj.hpp
-%%SDK%%include/mous/scx/CharsetHelper.hpp
-%%SDK%%include/mous/scx/CondVar.hpp
-%%SDK%%include/mous/scx/ConfigFile.hpp
-%%SDK%%include/mous/scx/Conv.hpp
-%%SDK%%include/mous/scx/Dir.hpp
-%%SDK%%include/mous/scx/Env.hpp
-%%SDK%%include/mous/scx/FileHelper.hpp
-%%SDK%%include/mous/scx/FileInfo.hpp
-%%SDK%%include/mous/scx/Function.hpp
-%%SDK%%include/mous/scx/IconvHelper.hpp
-%%SDK%%include/mous/scx/LPVBuffer.hpp
-%%SDK%%include/mous/scx/Mutex.hpp
-%%SDK%%include/mous/scx/PVBuffer.hpp
-%%SDK%%include/mous/scx/RunTimer.hpp
-%%SDK%%include/mous/scx/SemVar.hpp
-%%SDK%%include/mous/scx/Signal.hpp
-%%SDK%%include/mous/scx/Singleton.hpp
-%%SDK%%include/mous/scx/Socket.hpp
-%%SDK%%include/mous/scx/SoftSemVar.hpp
-%%SDK%%include/mous/scx/TaskSchedule.hpp
-%%SDK%%include/mous/scx/Thread.hpp
-%%SDK%%include/mous/scx/UniPinYin.hpp
-%%SDK%%include/mous/util/AudioMode.h
-%%SDK%%include/mous/util/ErrorCode.h
-%%SDK%%include/mous/util/MediaItem.h
-%%SDK%%include/mous/util/MediaTag.h
-%%SDK%%include/mous/util/Option.h
-%%SDK%%include/mous/util/Playlist.h
-%%SDK%%include/mous/util/PlaylistSerializer.h
-%%SDK%%include/mous/util/PluginDef.h
-%%SDK%%include/mous/util/PluginHelper.h
-%%SDK%%include/mous/util/PluginOption.h
+%%QT5%%bin/mous-qt
 lib/libMousCore.so
-%%ALSA%%lib/mous/libAlsaRenderer.so
-%%AO%%lib/mous/libAoRenderer.so
-%%CUE%%lib/mous/libCuePack.so
-%%FAAC%%lib/mous/libFaacEncoder.so
-%%FAAD%%lib/mous/libFaadDecoder.so
+%%LIBCUE%%lib/mous/libCueParser.so
+%%FDK_AAC%%lib/mous/libFdkDecoder.so
 %%FLAC%%lib/mous/libFlacDecoder.so
 %%LAME%%lib/mous/libLameEncoder.so
-%%MAC4DECODER%%lib/mous/libMac4Decoder.so
-%%MACDECODER%%lib/mous/libMacDecoder.so
-%%VORBIS%%lib/mous/libOggDecoder.so
+%%MAC%%lib/mous/libMacDecoder.so
+%%VORBIS%%lib/mous/libVorbisDecoder.so
+%%VORBIS%%lib/mous/libVorbisEncoder.so
 %%MPG123%%lib/mous/libMpg123Decoder.so
 %%OSS%%lib/mous/libOssRenderer.so
+%%SNDIO%%lib/mous/libSndioOutput.so
 %%TAGLIB%%lib/mous/libTagLibParser.so
-%%WAVDECODER%%lib/mous/libWavDecoder.so
-%%WAVENCODER%%lib/mous/libWavEncoder.so
-%%WMA%%lib/mous/libWmaDecoder.so
-%%DATADIR%%/pinyin/unipy.map
-%%QT4%%share/mous/qt/mous-qt_zh_CN.qm
+%%WAV%%lib/mous/libWavDecoder.so
+%%WAV%%lib/mous/libWavEncoder.so
+%%WAVPACK%%lib/mous/libWvDecoder.so


More information about the svn-ports-head mailing list