2019-07-12 21:02:12 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2019/07/12 21:02:13 sthen Exp $
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
|
|
|
|
COMMENT = console audio player
|
2017-11-18 12:01:14 +00:00
|
|
|
DISTNAME = moc-2.5.2
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
CATEGORIES = audio
|
|
|
|
HOMEPAGE = http://moc.daper.net/
|
2017-11-18 12:01:14 +00:00
|
|
|
MASTER_SITES = http://ftp.daper.net/pub/soft/moc/stable/ \
|
|
|
|
https://distfiles.nl/
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
EXTRACT_SUFX = .tar.bz2
|
2019-05-20 22:15:00 +00:00
|
|
|
REVISION = 7
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
|
|
|
|
# GPLv3+
|
2019-07-12 21:02:12 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
|
|
|
|
# uses pledge()
|
2019-02-17 22:21:04 +00:00
|
|
|
WANTLIB += ${COMPILER_LIBCXX}
|
|
|
|
WANTLIB += FLAC avcodec avformat avutil bz2 c crypto curl curses
|
|
|
|
WANTLIB += db faad gsm iconv id3tag ltdl m mad magic modplug mp3lame
|
|
|
|
WANTLIB += mpcdec nghttp2 ogg opus samplerate sndfile sndio speex
|
|
|
|
WANTLIB += ssl swresample tag tag_c vorbis vorbisenc vorbisfile
|
|
|
|
WANTLIB += vpx wavpack x264 x265 xvidcore z
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
|
2019-02-17 22:21:04 +00:00
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
2016-12-19 22:52:46 +00:00
|
|
|
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
LIB_DEPENDS = audio/faad \
|
|
|
|
audio/flac \
|
|
|
|
audio/libid3tag \
|
|
|
|
audio/libmad \
|
2018-05-12 13:03:18 +00:00
|
|
|
audio/libmodplug \
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
audio/libsamplerate \
|
|
|
|
audio/libsndfile \
|
|
|
|
audio/libvorbis \
|
|
|
|
audio/musepack \
|
|
|
|
audio/wavpack \
|
|
|
|
audio/speex \
|
|
|
|
audio/taglib \
|
|
|
|
databases/db/v4 \
|
2019-05-20 22:15:00 +00:00
|
|
|
devel/gettext,-runtime \
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
devel/libmagic \
|
|
|
|
devel/libtool,-ltdl \
|
|
|
|
graphics/ffmpeg \
|
|
|
|
net/curl
|
|
|
|
|
|
|
|
SEPARATE_BUILD = Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE = gnu
|
2016-07-10 12:03:06 +00:00
|
|
|
CONFIGURE_ARGS += \
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
--with-sndio \
|
|
|
|
--without-jack \
|
|
|
|
--without-oss \
|
|
|
|
--without-alsa \
|
|
|
|
--without-rcc \
|
|
|
|
--without-included-ltdl \
|
|
|
|
--without-timidity \
|
|
|
|
--with-magic \
|
|
|
|
--with-ltdl-include=${LOCALBASE}/include \
|
|
|
|
--with-ltdl-lib=${LOCALBASE}/lib
|
2016-10-29 10:37:12 +00:00
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/db4" \
|
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
powerful and easy to use.
MOC plays smoothly, regardless of system or I/O load because it uses the output
buffer in a separate thread. It provides gapless playback because the next file
to be played is precached while the current file is playing.
Supported file formats are: MP3, Ogg Vorbis, FLAC, Musepack (mpc), Speex, Opus,
WAVE, those supported by FFmpeg/LibAV (e.g., WMA, RealAudio, AAC, MP4), AIFF,
AU, SVX, Sphere Nist WAV, IRCAM SF, Creative VOC, SID, wavpack.
OK zhuk@
2016-07-10 10:40:43 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/mocp.1
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
rm ${PREFIX}/lib/moc/decoder_plugins/*.{,l}a
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/moc
|
|
|
|
.for f in config.example keymap.example
|
|
|
|
mv ${PREFIX}/share/doc/moc/$f ${PREFIX}/share/examples/moc
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|