diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2011-03-18 09:24:10 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2011-03-18 09:24:10 +0000 |
commit | d196bb88fbefe2eb0707aeec768f20dada2049e6 (patch) | |
tree | c2bcbf49cc7bd343804ee5899eed52f05f07c339 /multimedia | |
parent | 3c46ad186b9fce4cd480aeefb0c8b2ef325553a4 (diff) | |
download | ports-d196bb88fbefe2eb0707aeec768f20dada2049e6.tar.gz ports-d196bb88fbefe2eb0707aeec768f20dada2049e6.zip |
Notes
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/Makefile | 1 | ||||
-rw-r--r-- | multimedia/qmmp/Makefile | 199 | ||||
-rw-r--r-- | multimedia/qmmp/distinfo | 2 | ||||
-rw-r--r-- | multimedia/qmmp/files/patch-plugins.pri | 7 | ||||
-rw-r--r-- | multimedia/qmmp/files/patch-plugins_Effect_ladspa.pro | 12 | ||||
-rw-r--r-- | multimedia/qmmp/files/qmmp.in | 19 | ||||
-rw-r--r-- | multimedia/qmmp/pkg-descr | 18 | ||||
-rw-r--r-- | multimedia/qmmp/pkg-plist | 115 |
8 files changed, 373 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile index 7640c2e44ebf..2486de43aa9d 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -273,6 +273,7 @@ SUBDIR += py-qt4-phonon SUBDIR += pyjama SUBDIR += qdvdauthor + SUBDIR += qmmp SUBDIR += qt-faststart SUBDIR += qt4-multimedia SUBDIR += qt4-phonon diff --git a/multimedia/qmmp/Makefile b/multimedia/qmmp/Makefile new file mode 100644 index 000000000000..3f55ea9c0fda --- /dev/null +++ b/multimedia/qmmp/Makefile @@ -0,0 +1,199 @@ +# New ports collection Makefile for: qmmp +# Date created: Fri Jan 30 01:13:20 JST 2009 +# Whom: SimaMoto,RyoTa <liangtai.s4@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= qmmp +PORTVERSION= 0.4.5 +CATEGORIES= multimedia +MASTER_SITES= http://qmmp.ylsoftware.com/files/ \ + ${MASTER_SITE_GOOGLE_CODE} + +MAINTAINER= liangtai.s4@gmail.com +COMMENT= A Qt4-based multimedia player + +LICENSE= GPLv2 + +LIB_DEPENDS= mad.2:${PORTSDIR}/audio/libmad \ + sndfile.1:${PORTSDIR}/audio/libsndfile \ + ogg.7:${PORTSDIR}/audio/libogg \ + vorbis.4:${PORTSDIR}/audio/libvorbis \ + wavpack.2:${PORTSDIR}/audio/wavpack \ + tag.1:${PORTSDIR}/audio/taglib \ + curl.6:${PORTSDIR}/ftp/curl \ + mms.0:${PORTSDIR}/net/libmms + +USE_BZIP2= yes +USE_QT_VER= 4 +USE_GMAKE= yes +QT_COMPONENTS= corelib gui network xml dbus \ + qmake_build rcc_build uic_build moc_build linguist_build +USE_LDCONFIG= yes + +OPTIONS= JACK "Support the JACK output server" on \ + PULSE "Support the PulseAudio output" on \ + ALSA "Support the ALSA output" off \ + BS2B "Support the Bauer stereophonic2binaural" on \ + FLAC "Support to playback FLAC files" on \ + MUSEPACK "Support to playback MPC files" on \ + FFMPEG "Support to playback FFMPEG files" on \ + MODPLUG "Support to playback MOD files" on \ + FAAD "Support to playback through FAAD decoder" on \ + CDIO "Support to playback compact discs" on \ + LADSPA "Support the LADSPA effect" on \ + ENCA "Support the sample rate converter" on \ + MPLAYER "Support to playback through Mplayer" on \ + PROJECTM "Support the projectM music visualiser" on + +.include <bsd.port.pre.mk> + +PLUGIN_OPTIONS?= OSS_PLUGIN #default + +.if !defined(WITHOUT_JACK) +PLIST_SUB+= JACK="" +LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack +PLUGIN_OPTIONS+= JACK_PLUGIN +.else +PLIST_SUB+= JACK="@comment " +.endif + +.if !defined(WITHOUT_ALSA) +PLIST_SUB+= ALSA="" +LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib +PLUGIN_OPTIONS+= ALSA_PLUGIN +.else +PLIST_SUB+= ALSA="@comment " +.endif + +.if !defined(WITHOUT_BS2B) +PLIST_SUB+= BS2B="" +LIB_DEPENDS+= bs2b.0:${PORTSDIR}/audio/libbs2b +PLUGIN_OPTIONS+= BS2B_PLUGIN +.else +PLIST_SUB+= BS2B="@comment " +.endif + +.if !defined(WITHOUT_PULSE) +PLIST_SUB+= PULSE_AUDIO="" +LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio +PLUGIN_OPTIONS+= PULSE_AUDIO_PLUGIN +.else +PLIST_SUB+= PULSE_AUDIO="@comment " +.endif + +.if !defined(WITHOUT_FLAC) +PLIST_SUB+= FLAC="" +LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac +PLUGIN_OPTIONS+= FLAC_PLUGIN +.else +PLIST_SUB+= FLAC="@comment " +.endif + +.if !defined(WITHOUT_MUSEPACK) +PLIST_SUB+= MUSEPACK="" +LIB_DEPENDS+= mpcdec.7:${PORTSDIR}/audio/musepack +PLUGIN_OPTIONS+= MUSEPACK_PLUGIN +.else +PLIST_SUB+= MUSEPACK="@comment " +.endif + +.if !defined(WITHOUT_FFMPEG) +PLIST_SUB+= FFMPEG="" +LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg +PLUGIN_OPTIONS+= FFMPEG_PLUGIN +.else +PLIST_SUB+= FFMPEG="@comment " +.endif + +.if !defined(WITHOUT_MODPLUG) +PLIST_SUB+= MODPLUG="" +LIB_DEPENDS+= modplug.1:${PORTSDIR}/audio/libmodplug +PLUGIN_OPTIONS+= MODPLUG_PLUGIN +.else +PLIST_SUB+= MODPLUG="@comment " +.endif + +.if !defined(WITHOUT_FAAD) +PLIST_SUB+= FAAD="" +LIB_DEPENDS+= faad.2:${PORTSDIR}/audio/faad +PLUGIN_OPTIONS+= AAC_PLUGIN +.else +PLIST_SUB+= FAAD="@comment " +.endif + +.if !defined(WITHOUT_CDIO) +PLIST_SUB+= CDIO="" +LIB_DEPENDS+= cdio.12:${PORTSDIR}/sysutils/libcdio +PLUGIN_OPTIONS+= CDAUDIO_PLUGIN +.else +PLIST_SUB+= CDIO="@comment " +.endif + +.if !defined(WITHOUT_ENCA) +PLIST_SUB+= ENCA="" +LIB_DEPENDS+= enca.5:${PORTSDIR}/converters/enca +PLUGIN_OPTIONS+= WITH_ENCA +.else +PLIST_SUB+= ENCA="@comment " +.endif + +.if !defined(WITHOUT_MPLAYER) +PLIST_SUB+= MPLAYER="" +RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer +PLUGIN_OPTIONS+= MPLAYER_PLUGIN +.else +PLIST_SUB+= MPLAYER="@comment " +.endif + +.if !defined(WITHOUT_PROJECTM) +PLIST_SUB+= PROJECTM="" +LIB_DEPENDS+= projectM.2:${PORTSDIR}/graphics/libprojectm +PLUGIN_OPTIONS+= PROJECTM_PLUGIN WITH_PROJECTM20 +.else +PLIST_SUB+= PROJECTM="@comment " +.endif + +.if !defined(WITHOUT_LADSPA) +PLIST_SUB+= LADSPA="" +RUN_DEPENDS+= analyseplugin:${PORTSDIR}/audio/ladspa +PLUGIN_OPTIONS+= LADSPA_PLUGIN +.else +PLIST_SUB+= LADSPA="@comment " +.endif + +PORTDOCS= README README.RUS AUTHORS +SUB_FILES= qmmp +INSTALLS_ICONS= yes + +QMAKE_ARGS+= CONFIG+="${PLUGIN_OPTIONS}" PREFIX=${PREFIX} \ + LIB_DIR=${PREFIX}/lib + +post-patch: + ${REINPLACE_CMD} -e 's|^CONFIG += |#CONFIG +=|' \ + ${WRKSRC}/qmmp.pri + ${FIND} ${WRKSRC} -name Makefile -delete + ${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' \ + ${WRKSRC}/src/plugins/Input/ffmpeg/ffmpeg.pro \ + ${WRKSRC}/src/plugins/Input/mpc/mpc.pro + ${REINPLACE_CMD} -e 's| /include| $$$$PREFIX/include|' \ + ${WRKSRC}/src/qmmp/qmmp.pro ${WRKSRC}/src/qmmpui/qmmpui.pro + ${REINPLACE_CMD} -e 's| /bin| $$$$PREFIX/libexec|; \ + s| /share| $$$$PREFIX/share|' \ + ${WRKSRC}/src/ui/ui.pro ${WRKSRC}/src/plugins/Input/cue/cue.pro + +do-configure: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS} + +pre-install: + ${STRIP_CMD} ${WRKSRC}/bin/qmmp + +post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/qmmp ${PREFIX}/bin +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR}; \ + cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${DOCSDIR} +.endif + +.include <bsd.port.post.mk> diff --git a/multimedia/qmmp/distinfo b/multimedia/qmmp/distinfo new file mode 100644 index 000000000000..0f36d465a870 --- /dev/null +++ b/multimedia/qmmp/distinfo @@ -0,0 +1,2 @@ +SHA256 (qmmp-0.4.5.tar.bz2) = 85d2edf528b57d1ccbffadf74b6822dd9131c7cd00ee0ed49518b13ef8a0dc50 +SIZE (qmmp-0.4.5.tar.bz2) = 652511 diff --git a/multimedia/qmmp/files/patch-plugins.pri b/multimedia/qmmp/files/patch-plugins.pri new file mode 100644 index 000000000000..e551fdaddfcc --- /dev/null +++ b/multimedia/qmmp/files/patch-plugins.pri @@ -0,0 +1,7 @@ +--- src/plugins/plugins.pri (revision 2054) ++++ src/plugins/plugins.pri (working copy) +@@ -1,3 +1,4 @@ + include(../../qmmp.pri) + unix:PLUGINS_PREFIX=../../../../lib/qmmp + win32:PLUGINS_PREFIX=../../../../../bin/plugins ++INCLUDEPATH += ../../../qmmp diff --git a/multimedia/qmmp/files/patch-plugins_Effect_ladspa.pro b/multimedia/qmmp/files/patch-plugins_Effect_ladspa.pro new file mode 100644 index 000000000000..af35d305a44d --- /dev/null +++ b/multimedia/qmmp/files/patch-plugins_Effect_ladspa.pro @@ -0,0 +1,12 @@ +--- src/plugins/Effect/ladspa/ladspa.pro.orig 2010-01-26 05:36:55.000000000 +0900 ++++ src/plugins/Effect/ladspa/ladspa.pro 2010-05-07 19:43:53.000000000 +0900 +@@ -23,8 +23,7 @@ + QMAKE_LIBDIR += ../../../../lib + LIBS += -lqmmp \ + -L/usr/lib \ +- -I/usr/include \ +- -ldl ++ -I/usr/include + TRANSLATIONS = translations/ladspa_plugin_cs.ts \ + translations/ladspa_plugin_de.ts \ + translations/ladspa_plugin_zh_CN.ts \ diff --git a/multimedia/qmmp/files/qmmp.in b/multimedia/qmmp/files/qmmp.in new file mode 100644 index 000000000000..622bca4ff678 --- /dev/null +++ b/multimedia/qmmp/files/qmmp.in @@ -0,0 +1,19 @@ +#!/bin/sh + +LOCALDIR=%%PREFIX%% +QT_LIB_DIR=${LOCALDIR}/lib/qt4 +QMMP_LIB_DIRS=${LOCALDIR}/lib:${LOCALDIR}/lib/qmmp + +if [ -z ${LD_LIBRARY_PATH} ]; then + LD_LIBRARY_PATH=${QMMP_LIB_DIRS}:${QT_LIB_DIR} +else + LD_LIBRARY_PATH=${QMMP_LIB_DIRS}:${QT_LIB_DIR}:${LD_LIBRARY_PATH} +fi + +echo 'Setting LD_LIBRARY_PATH to' +echo "$LD_LIBRARY_PATH" | awk -F: '{ for(i = 1; i <= NF; i++) printf "%d) %s\n", i, $i; }' +export LD_LIBRARY_PATH +echo + +cd ${LOCALDIR}/lib/qmmp +exec ${LOCALDIR}/libexec/qmmp "$@" diff --git a/multimedia/qmmp/pkg-descr b/multimedia/qmmp/pkg-descr new file mode 100644 index 000000000000..aea96ab5ee05 --- /dev/null +++ b/multimedia/qmmp/pkg-descr @@ -0,0 +1,18 @@ +This program is an audio-player, written with help of Qt library. +Its user interface is similar to winamp or xmms. + +features: + Last.fm scrobbler, D-Bus, Spectrum Analyzer, sample rate conversion, + streaming (MP3, Vorbis via IceCast/ShoutCast), projectm visualization, + device detection, MPRIS, global hotkey, video playback using Mplayer, + Bauer Stereophonic-to-Binaural DSP, projectM audio visulaliser, + lyrics (from LyricWiki.orig), and all skins for winamp and/or xmms +input plugins: + MPEG1 layer 1/2/3, Ogg Vorbis, native FLAC, Musepack, WavePack, + ModPlug, WMA (and other formats provided by FFmpeg library), PCM WAVE, + AAC, CD audio and CUE (including flac, WavPack embeded cue) +output plugins: + PulseAudio, OSS and Jack + +WWW: http://qmmp.ylsoftware.com/ +or http://code.google.com/p/qmmp/ diff --git a/multimedia/qmmp/pkg-plist b/multimedia/qmmp/pkg-plist new file mode 100644 index 000000000000..e8c121974903 --- /dev/null +++ b/multimedia/qmmp/pkg-plist @@ -0,0 +1,115 @@ +bin/qmmp +libexec/qmmp +include/qmmp/abstractengine.h +include/qmmp/audioparameters.h +include/qmmp/buffer.h +include/qmmp/decoder.h +include/qmmp/decoderfactory.h +include/qmmp/effect.h +include/qmmp/effectfactory.h +include/qmmp/enginefactory.h +include/qmmp/fileinfo.h +include/qmmp/inputsource.h +include/qmmp/inputsourcefactory.h +include/qmmp/metadatamanager.h +include/qmmp/metadatamodel.h +include/qmmp/output.h +include/qmmp/outputfactory.h +include/qmmp/qmmp.h +include/qmmp/qmmpsettings.h +include/qmmp/recycler.h +include/qmmp/soundcore.h +include/qmmp/statehandler.h +include/qmmp/tagmodel.h +include/qmmp/visual.h +include/qmmp/visualfactory.h +include/qmmp/volumecontrol.h +include/qmmpui/abstractplaylistitem.h +include/qmmpui/commandlinemanager.h +include/qmmpui/commandlineoption.h +include/qmmpui/detailsdialog.h +include/qmmpui/filedialog.h +include/qmmpui/filedialogfactory.h +include/qmmpui/general.h +include/qmmpui/generalfactory.h +include/qmmpui/generalhandler.h +include/qmmpui/mediaplayer.h +include/qmmpui/metadataformatter.h +include/qmmpui/playlistformat.h +include/qmmpui/playlistitem.h +include/qmmpui/playlistmanager.h +include/qmmpui/playlistmodel.h +include/qmmpui/playlistparser.h +include/qmmpui/templateeditor.h +lib/libqmmp.so +lib/libqmmp.so.0 +lib/libqmmp.so.0.4 +lib/libqmmp.so.0.4.5 +lib/libqmmpui.so +lib/libqmmpui.so.0 +lib/libqmmpui.so.0.4 +lib/libqmmpui.so.0.4.5 +lib/qmmp/CommandLineOptions/libincdecvolumeoption.so +lib/qmmp/CommandLineOptions/libseekoption.so +%%LADSPA%%lib/qmmp/Effect/libladspa.so +%%BS2B%%lib/qmmp/Effect/libbs2b.so +lib/qmmp/Effect/libsrconverter.so +lib/qmmp/FileDialogs/libqmmpfiledialog.so +lib/qmmp/General/libcovermanager.so +lib/qmmp/General/libfileops.so +lib/qmmp/General/libhal.so +lib/qmmp/General/libhotkey.so +lib/qmmp/General/libkdenotify.so +lib/qmmp/General/liblyrics.so +lib/qmmp/General/libmpris.so +lib/qmmp/General/libnotifier.so +lib/qmmp/General/libscrobbler.so +lib/qmmp/General/libstatusicon.so +%%FAAD%%lib/qmmp/Input/libaac.so +%%CDIO%%lib/qmmp/Input/libcdaudio.so +lib/qmmp/Input/libcue.so +%%FFMPEG%%lib/qmmp/Input/libffmpeg.so +%%FLAC%%lib/qmmp/Input/libflac.so +lib/qmmp/Input/libmad.so +%%MODPLUG%%lib/qmmp/Input/libmodplug.so +%%MUSEPACK%%lib/qmmp/Input/libmpc.so +%%MPLAYER%%lib/qmmp/Input/libmplayer.so +lib/qmmp/Input/libsndfile.so +lib/qmmp/Input/libvorbis.so +lib/qmmp/Input/libwavpack.so +%%JACK%%lib/qmmp/Output/libjack.so +%%ALSA%%lib/qmmp/Output/libalsa.so +lib/qmmp/Output/libnull.so +lib/qmmp/Output/liboss.so +%%PULSE_AUDIO%%lib/qmmp/Output/libpulseaudio.so +lib/qmmp/PlaylistFormats/libm3uplaylistformat.so +lib/qmmp/PlaylistFormats/libplsplaylistformat.so +lib/qmmp/PlaylistFormats/libxspfplaylistformat.so +lib/qmmp/Transports/libhttp.so +lib/qmmp/Transports/libmms.so +lib/qmmp/Visual/libanalyzer.so +%%PROJECTM%%lib/qmmp/Visual/libprojectm.so +share/applications/qmmp.desktop +share/applications/qmmp_enqueue.desktop +share/applications/qmmp_cue.desktop +share/icons/hicolor/16x16/apps/qmmp.png +share/icons/hicolor/32x32/apps/qmmp.png +share/icons/hicolor/48x48/apps/qmmp.png +@dirrmtry share/icons/hicolor/48x48/apps +@dirrmtry share/icons/hicolor/48x48 +@dirrmtry share/icons/hicolor/32x32/apps +@dirrmtry share/icons/hicolor/32x32 +@dirrmtry share/icons/hicolor/16x16/apps +@dirrmtry share/icons/hicolor/16x16 +@dirrm include/qmmp +@dirrm include/qmmpui +@dirrm lib/qmmp/CommandLineOptions +@dirrm lib/qmmp/Effect +@dirrm lib/qmmp/FileDialogs +@dirrm lib/qmmp/General +@dirrm lib/qmmp/Input +@dirrm lib/qmmp/Output +@dirrm lib/qmmp/PlaylistFormats +@dirrm lib/qmmp/Transports +@dirrm lib/qmmp/Visual +@dirrm lib/qmmp |