Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108119689
D7200.id18898.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
10 KB
Referenced Files
None
Subscribers
None
D7200.id18898.diff
View Options
Index: audio/cplay/Makefile
===================================================================
--- audio/cplay/Makefile
+++ audio/cplay/Makefile
@@ -2,18 +2,19 @@
# $FreeBSD$
PORTNAME= cplay
-PORTVERSION= 1.49
-PORTREVISION= 5
+PORTVERSION= 1.50
+DISTVERSIONPREFIX= v
CATEGORIES= audio
-MASTER_SITES= DEBIAN
-DISTFILES= ${DISTNAME:S/-/_/}.orig${EXTRACT_SUFX}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= woodsb02@FreeBSD.org
COMMENT= Curses-based front-end for various audio players
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
+USE_GITHUB= yes
+GH_ACCOUNT= hukka
+
USES= gettext gmake python:2
MAKE_ARGS= PREFIX="${STAGEDIR}${PREFIX}"
@@ -23,6 +24,29 @@
OPTIONS_DEFINE= DOCS
+OPTIONS_GROUP= PLAYERS
+OPTIONS_GROUP_PLAYERS= MADPLAY MIKMOD MPG123 MPG321 MPLAYER MPV OGG123 SOX SPEEX SPLAY XMP
+
+MADPLAY_DESC= MPEG audio playback support via madplay
+MPG321_DESC= MP3 decoding support via mpg321
+MPV_DESC= mpv media player support
+OGG123_DESC= Ogg Vorbis audio decoding support via ogg123
+SOX_DESC= Audio playback support via SOund eXchange
+SPLAY_DESC= MPEG and WAV playback support via Splay
+XMP_DESC= Audio playback support via the Extended Module Player
+
+MADPLAY_RUN_DEPENDS= madplay:audio/madplay
+MIKMOD_RUN_DEPENDS= mikmod:audio/mikmod
+MPG123_RUN_DEPENDS= mpg123:audio/mpg123
+MPG321_RUN_DEPENDS= mpg321:audio/mpg321
+MPLAYER_RUN_DEPENDS= mplayer:multimedia/mplayer
+MPV_RUN_DEPENDS= mpv:multimedia/mpv
+OGG123_RUN_DEPENDS= ogg123:audio/vorbis-tools
+SOX_RUN_DEPENDS= play:audio/sox
+SPEEX_RUN_DEPENDS= speexdec:audio/speex
+SPLAY_RUN_DEPENDS= splay:audio/splay
+XMP_RUN_DEPENDS= xmp:audio/xmp
+
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
Index: audio/cplay/distinfo
===================================================================
--- audio/cplay/distinfo
+++ audio/cplay/distinfo
@@ -1,2 +1,3 @@
-SHA256 (cplay_1.49.orig.tar.gz) = 4c624a7e5839b1523418b0b898dc300c571099a7e7252265ee79f7adbed0a80d
-SIZE (cplay_1.49.orig.tar.gz) = 36400
+TIMESTAMP = 1468368675
+SHA256 (hukka-cplay-v1.50_GH0.tar.gz) = a3ad98a1648453dd591529f9783d4b7669241d2dfa681793a95bbcb0c2ea6780
+SIZE (hukka-cplay-v1.50_GH0.tar.gz) = 43904
Index: audio/cplay/files/patch-Makefile
===================================================================
--- audio/cplay/files/patch-Makefile
+++ audio/cplay/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig 2003-08-28 12:22:48 UTC
+--- Makefile.orig 2011-04-27 16:33:40 UTC
+++ Makefile
-@@ -14,7 +14,7 @@ clean: recursive-clean
+@@ -15,7 +15,7 @@ clean: recursive-clean
recursive-all recursive-install recursive-clean:
@target=$@; \
for i in $(SUBDIRS); do \
Index: audio/cplay/files/patch-cplay
===================================================================
--- audio/cplay/files/patch-cplay
+++ audio/cplay/files/patch-cplay
@@ -1,42 +1,9 @@
---- cplay.orig 2003-12-05 08:20:56 UTC
+--- cplay.orig 2011-04-27 16:33:40 UTC
+++ cplay
-@@ -63,7 +63,7 @@ except:
-
- # ------------------------------------------
- XTERM = re.search("rxvt|xterm", os.environ["TERM"])
--CONTROL_FIFO = "/var/tmp/cplay_control"
-+CONTROL_FIFO = "%s/cplay-control-%s" % (os.environ.get("TMPDIR", "/tmp"), os.environ["USER"])
-
- # ------------------------------------------
- def which(program):
-@@ -906,11 +906,20 @@ class PlaylistWindow(TagListWindow):
-
- def command_change_viewpoint(self, klass=PlaylistEntry):
- if not globals().get("ID3"):
-+ global ID3, ogg, codecs
-+ have_meta = 0
- try:
-- global ID3, ogg, codecs
-- import ID3, ogg.vorbis, codecs
-+ import ID3
-+ have_meta = 1
-+ except ImportError:
-+ pass
-+ try:
-+ import ogg.vorbis, codecs
-+ have_meta = 1
-+ except ImportError:
-+ pass
-+ if have_meta:
- klass.vps.append([_("metadata"), klass.vp_metadata])
-- except ImportError: pass
- TagListWindow.command_change_viewpoint(self, klass)
-
- def get_title(self):
-@@ -962,9 +971,11 @@ class PlaylistWindow(TagListWindow):
+@@ -967,9 +967,11 @@ class PlaylistWindow(TagListWindow):
try:
if os.path.isdir(pathname):
- app.status(_("Working..."))
+ quiet or app.status(_("Working..."))
- self.add_dir(pathname)
+ self.add_dir(os.path.abspath(pathname))
elif VALID_PLAYLIST(pathname):
@@ -46,87 +13,13 @@
else:
pathname = self.fix_url(pathname)
self.append(PlaylistEntry(pathname))
-@@ -1301,6 +1312,17 @@ class TimeOffsetPlayer(Player):
- self.set_position(head, head+tail, [head, tail])
-
- # ------------------------------------------
-+class MplayerOffsetPlayer(Player):
-+ re_progress = re.compile("(\d+).*\sof (\d+)")
-+
-+ def parse_buf(self):
-+ match = self.re_progress.search(self.buf)
-+ if match:
-+ s1, s2 = map(string.atoi, match.groups())
-+ head, tail = s1, s2-s1
-+ self.set_position(head, head+tail, [head,tail])
-+
-+# ------------------------------------------
- class NoOffsetPlayer(Player):
-
- def parse_buf(self):
-@@ -1334,8 +1356,6 @@ class Timeout:
- # ------------------------------------------
- class FIFOControl:
- def __init__(self):
-- try: self.fd = open(CONTROL_FIFO, "rb+", 0)
-- except: self.fd = None
- self.commands = {"pause" : app.toggle_pause,
- "next" : app.next_song,
- "prev" : app.prev_song,
-@@ -1346,6 +1366,15 @@ class FIFOControl:
- "volup" : app.inc_volume,
- "voldown" : app.dec_volume,
- "quit" : app.quit}
-+ self.fd = None
-+ try:
-+ if os.path.exists(CONTROL_FIFO):
-+ os.unlink(CONTROL_FIFO)
-+ os.mkfifo(CONTROL_FIFO, 0600)
-+ self.fd = open(CONTROL_FIFO, "rb+", 0)
-+ except IOError:
-+ # warn that we're disabling the fifo because someone raced us?
-+ return
-
- def handle_command(self):
- command = string.strip(self.fd.readline())
-@@ -1419,6 +1448,11 @@ class Application:
- XTERM and sys.stderr.write("\033]0;%s\a" % "xterm")
- tty and tty.tcsetattr(sys.stdin.fileno(), tty.TCSADRAIN, self.tcattr)
- print
-+ # remove temporary files
-+ try:
-+ if os.path.exists(CONTROL_FIFO): os.unlink(CONTROL_FIFO)
-+ except IOError:
-+ pass
-
- def run(self):
- while 1:
-@@ -1615,7 +1649,7 @@ def main():
- if opt == "-v": app.mixer("toggle")
- if args or playlist:
- for i in args or playlist:
-- app.win_playlist.add(os.path.abspath(i))
-+ app.win_playlist.add(i)
- app.win_tab.change_window()
- app.run()
- except SystemExit:
-@@ -1627,15 +1661,17 @@ def main():
-
- # ------------------------------------------
- PLAYERS = [
-- FrameOffsetPlayer("ogg123 -q -v -k %d %s", "\.ogg$"),
-+ FrameOffsetPlayer("ogg123 -q -v -k %d %s", "\.(ogg|flac)$"),
- FrameOffsetPlayer("splay -f -k %d %s", "(^http://|\.mp[123]$)", 38.28),
- FrameOffsetPlayer("mpg123 -q -v -k %d %s", "(^http://|\.mp[123]$)", 38.28),
- FrameOffsetPlayer("mpg321 -q -v -k %d %s", "(^http://|\.mp[123]$)", 38.28),
- TimeOffsetPlayer("madplay -v --display-time=remaining -s %d %s", "\.mp[123]$"),
-+ MplayerOffsetPlayer("mplayer -vo null -noconsolecontrols -ss %d %s", "\.(mp[123]|ogg|flac|wav|aiff|wma)$"),
- NoOffsetPlayer("mikmod -q -p0 %s", "\.(mod|xm|fm|s3m|med|col|669|it|mtm)$"),
- NoOffsetPlayer("xmp -q %s", "\.(mod|xm|fm|s3m|med|col|669|it|mtm|stm)$"),
- NoOffsetPlayer("play %s", "\.(aiff|au|cdr|mp3|ogg|wav)$"),
-- NoOffsetPlayer("speexdec %s", "\.spx$")
-+ NoOffsetPlayer("speexdec %s", "\.spx$"),
-+ NoOffsetPlayer("mplayer -noconsolecontrols -playlist %s", "\.(ram|pls|asx)$")
- ]
-
- def VALID_SONG(name):
+@@ -1837,6 +1839,9 @@ PLAYERS = [
+ MPlayer("mplayer -slave -vc null -vo null {file}",
+ "^http://|\.(mp[123]|ogg|oga|flac|spx|mp[cp+]|mod|xm|fm|s3m|" +
+ "med|col|669|it|mtm|stm|aiff|au|cdr|wav|wma|m4a|m4b)$"),
++ MPlayer("mpv -vo null {file}",
++ "^http://|\.(mp[123]|ogg|oga|flac|spx|mp[cp+]|mod|xm|fm|s3m|" +
++ "med|col|669|it|mtm|stm|aiff|au|cdr|wav|wma|m4a|m4b)$"),
+ FrameOffsetPlayer("ogg123 -q -v -k {offset} {file}", "\.(ogg|flac|spx)$"),
+ FrameOffsetPlayer("splay -f -k {offset} {file}", "(^http://|\.mp[123]$)", 38.28),
+ FrameOffsetPlayer("mpg123 -q -v -k {offset} {file}", "(^http://|\.mp[123]$)", 38.28),
Index: audio/cplay/pkg-descr
===================================================================
--- audio/cplay/pkg-descr
+++ audio/cplay/pkg-descr
@@ -1,9 +1,15 @@
cplay is a curses-based front-end to various audio players. Supported
players currently include:
+ - mplayer
+ - mpv
+ - mpg321
- mpg123
- ogg123
- madplay
- mikmod
- mpg321
- splay
+ - xmp
+ - sox
+ - speex
Index: audio/cplay/pkg-message
===================================================================
--- audio/cplay/pkg-message
+++ audio/cplay/pkg-message
@@ -6,8 +6,12 @@
* audio/mikmod *
* audio/mpg123 *
* audio/mpg321 *
+* audio/sox *
+* audio/speex *
* audio/splay *
* audio/vorbis-tools *
+* audio/xmp *
* multimedia/mplayer *
+* multimedia/mpv *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 2:28 PM (13 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16030958
Default Alt Text
D7200.id18898.diff (10 KB)
Attached To
Mode
D7200: audio/cplay: Update to 1.50
Attached
Detach File
Event Timeline
Log In to Comment