summaryrefslogtreecommitdiff
path: root/audio/moc
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2005-09-26 23:17:32 +0000
committerxtraeme <xtraeme>2005-09-26 23:17:32 +0000
commitb8e482d45e8e97f8905ac46f70668d09238fa058 (patch)
tree1804275ad3b398a7bf2eb7608b86bc33d2bb620d /audio/moc
parent0d70bba2ba7f1dbb9f7152de5bb8a3e0a5f5b0ae (diff)
downloadpkgsrc-b8e482d45e8e97f8905ac46f70668d09238fa058.tar.gz
Initial import of moc-2.3.2 from pkgsrc-wip, packaged by Petter
Schuller. MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use. Noteworthy features include: * By default, files are decoded and played in a background process. This allows the user to quit the interface (e.g., if one needs to close the xterm) without affecting playback. It also allows attaching multiple interfaces (e.g. in multiple xterms) to the same player. * Playback should be smooth even under high cpu or I/O load, due to the use of output buffering in a separate thread. * There are no sound gaps in between files, because the next file to be played is precached while playing the current file. Note: To avoid conflicts with Qt's 'moc', the moc binary is called 'mocp'.
Diffstat (limited to 'audio/moc')
-rw-r--r--audio/moc/DESCR17
-rw-r--r--audio/moc/Makefile28
-rw-r--r--audio/moc/PLIST23
-rw-r--r--audio/moc/distinfo5
-rw-r--r--audio/moc/options.mk50
5 files changed, 123 insertions, 0 deletions
diff --git a/audio/moc/DESCR b/audio/moc/DESCR
new file mode 100644
index 00000000000..83500f474e3
--- /dev/null
+++ b/audio/moc/DESCR
@@ -0,0 +1,17 @@
+MOC (music on console) is a console audio player for LINUX/UNIX
+designed to be powerful and easy to use. Noteworthy features
+include:
+
+ * By default, files are decoded and played in a background
+ process. This allows the user to quit the interface (e.g.,
+ if one needs to close the xterm) without affecting
+ playback. It also allows attaching multiple interfaces
+ (e.g. in multiple xterms) to the same player.
+ * Playback should be smooth even under high cpu or I/O load,
+ due to the use of output buffering in a separate thread.
+ * There are no sound gaps in between files, because the next
+ file to be played is precached while playing the current
+ file.
+
+Note: To avoid conflicts with Qt's 'moc', the moc binary is
+called 'mocp'.
diff --git a/audio/moc/Makefile b/audio/moc/Makefile
new file mode 100644
index 00000000000..5aa01c5d402
--- /dev/null
+++ b/audio/moc/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/09/26 23:17:32 xtraeme Exp $
+
+DISTNAME= moc-2.3.2
+CATEGORIES= audio
+MASTER_SITES= ftp://ftp.daper.net/pub/soft/moc/stable/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= peter.schuller@infidyne.com
+HOMEPAGE= http://moc.daper.net/
+COMMENT= Curses based console audio player
+
+GNU_CONFIGURE= yes
+USE_PKGLOCALEDIR= yes
+USE_LIBTOOL= yes
+USE_NCURSES= yes
+
+# We require ncurses because with curses arrow key navigation is buggy
+CONFIGURE_ARGS+= --with-ncurses
+
+.include "options.mk"
+
+.include "../../audio/libid3tag/buildlink3.mk"
+.include "../../audio/libmad/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/moc/PLIST b/audio/moc/PLIST
new file mode 100644
index 00000000000..44d73475182
--- /dev/null
+++ b/audio/moc/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/09/26 23:17:32 xtraeme Exp $
+bin/mocp
+${FLAC}lib/moc/decoder_plugins/libflac_decoder.la
+lib/moc/decoder_plugins/libmp3_decoder.la
+${VORBIS}lib/moc/decoder_plugins/libogg_decoder.la
+${SNDFILE}lib/moc/decoder_plugins/libsndfile_formats_decoder.la
+${SPEEX}lib/moc/decoder_plugins/libspeex_decoder.la
+man/man1/mocp.1
+share/doc/moc/README
+share/doc/moc/THANKS
+share/doc/moc/config.example
+share/doc/moc/keymap.example
+share/moc/themes/black_theme
+share/moc/themes/example_theme
+share/moc/themes/green_theme
+share/moc/themes/nightly_theme
+share/moc/themes/transparent-background
+share/moc/themes/yellow_red_theme
+@dirrm share/moc/themes
+@dirrm share/moc
+@dirrm share/doc/moc
+@dirrm lib/moc/decoder_plugins
+@dirrm lib/moc
diff --git a/audio/moc/distinfo b/audio/moc/distinfo
new file mode 100644
index 00000000000..266a09c088a
--- /dev/null
+++ b/audio/moc/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/09/26 23:17:32 xtraeme Exp $
+
+SHA1 (moc-2.3.2.tar.bz2) = ca1a331ea9ea3699d76d4771416587190a814516
+RMD160 (moc-2.3.2.tar.bz2) = 1da768dbb625bbeedd960eb7c09c0113eeba7482
+Size (moc-2.3.2.tar.bz2) = 406058 bytes
diff --git a/audio/moc/options.mk b/audio/moc/options.mk
new file mode 100644
index 00000000000..c4e44f9e43e
--- /dev/null
+++ b/audio/moc/options.mk
@@ -0,0 +1,50 @@
+# $NetBSD: options.mk,v 1.1.1.1 2005/09/26 23:17:32 xtraeme Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.moc
+PKG_SUPPORTED_OPTIONS= sndfile flac vorbis speex curl
+PKG_SUGGESTED_OPTIONS= vorbis curl sndfile
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Msndfile)
+PLIST_SUBST+= SNDFILE=
+CONFIGURE_ARGS+= --with-sndfile
+. include "../../audio/libsndfile/buildlink3.mk"
+.else
+PLIST_SUBST+= SNDFILE='@comment '
+CONFIGURE_ARGS+= --without-sndfile
+.endif
+
+.if !empty(PKG_OPTIONS:Mflac)
+PLIST_SUBST+= FLAC=
+CONFIGURE_ARGS+= --with-flac
+. include "../../audio/flac/buildlink3.mk"
+.else
+PLIST_SUBST+= FLAC='@comment '
+CONFIGURE_ARGS+= --without-flac
+.endif
+
+.if !empty(PKG_OPTIONS:Mvorbis)
+PLIST_SUBST+= VORBIS=
+CONFIGURE_ARGS+= --with-vorbis
+. include "../../audio/libvorbis/buildlink3.mk"
+.else
+PLIST_SUBST+= VORBIS='@comment '
+CONFIGURE_ARGS+= --without-vorbis
+.endif
+
+.if !empty(PKG_OPTIONS:Mspeex)
+PLIST_SUBST+= SPEEX=
+CONFIGURE_ARGS+= --with-speex
+. include "../../audio/speex/buildlink3.mk"
+.else
+PLIST_SUBST+= SPEEX='@comment '
+CONFIGURE_ARGS+= --without-speex
+.endif
+
+.if !empty(PKG_OPTIONS:Mcurl)
+CONFIGURE_ARGS+= --with-curl
+. include "../../www/curl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-curl
+.endif