FreeBSD Bugzilla – Attachment 40531 Details for
Bug 63705
[MAINTAINER] audio/mpc: update to 0.10.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
mpc-0.10.0.shar
mpc-0.10.0.shar (text/plain), 3.56 KB, created by
Mark Daniel Reidel
on 2004-03-03 18:20:10 UTC
(
hide
)
Description:
mpc-0.10.0.shar
Filename:
MIME Type:
Creator:
Mark Daniel Reidel
Created:
2004-03-03 18:20:10 UTC
Size:
3.56 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># mpc ># mpc/Makefile ># mpc/distinfo ># mpc/pkg-descr ># mpc/pkg-plist ># mpc/files ># mpc/files/patch-src-command.c ># >echo c - mpc >mkdir -p mpc > /dev/null 2>&1 >echo x - mpc/Makefile >sed 's/^X//' >mpc/Makefile << 'END-of-mpc/Makefile' >X# New ports collection makefile for: mpc >X# Date created: Oct 02 2003 >X# Whom: Mark Reidel <ports@mark.reidle.info> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= mpc >XPORTVERSION= 0.10.0 >XCATEGORIES= audio ipv6 >XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} >XMASTER_SITE_SUBDIR= musicpd >X >XMAINTAINER= ports@mark.reidel.info >XCOMMENT= Command line client for the musicpd >X >XGNU_CONFIGURE= yes >XCONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ >X LDFLAGS="-L${LOCALBASE}/lib" \ >X >XCFLAGS+= -I${PREFIX}/include >X >XMAN1= mpc.1 >X >X.include <bsd.port.mk> >END-of-mpc/Makefile >echo x - mpc/distinfo >sed 's/^X//' >mpc/distinfo << 'END-of-mpc/distinfo' >XMD5 (mpc-0.10.0.tar.gz) = 59e9d1af5644140857132e6b9ebad57e >XSIZE (mpc-0.10.0.tar.gz) = 212562 >END-of-mpc/distinfo >echo x - mpc/pkg-descr >sed 's/^X//' >mpc/pkg-descr << 'END-of-mpc/pkg-descr' >XA client for MPD, the Music Player Daemon. >Xmpc connects to a MPD running on a machine via a network. >XRead more about MPD on http://www.musicpd.org >X >XWWW: http://www.musicpd.org >END-of-mpc/pkg-descr >echo x - mpc/pkg-plist >sed 's/^X//' >mpc/pkg-plist << 'END-of-mpc/pkg-plist' >Xbin/mpc >X%%DOCSDIR%%/AUTHORS >X%%DOCSDIR%%/README >X%%DOCSDIR%%/mpc-bashrc >X@dirrm %%DOCSDIR%% >X@dirrm share/mpc >END-of-mpc/pkg-plist >echo c - mpc/files >mkdir -p mpc/files > /dev/null 2>&1 >echo x - mpc/files/patch-src-command.c >sed 's/^X//' >mpc/files/patch-src-command.c << 'END-of-mpc/files/patch-src-command.c' >X--- src/command.c Wed Mar 3 19:05:02 2004 >X+++ src/command.c Wed Mar 3 19:05:47 2004 >X@@ -243,16 +243,23 @@ >X int cmd_seek ( int argc, char ** argv, mpd_Connection * conn ) >X { >X mpd_Status * status = mpd_getStatus(conn); >X+ char * arg = argv[0]; >X+ int seekmode; >X+ char * test; >X+ int seekchange; >X+ char * last_char; >X+ int sec; >X+ float perc; >X+ int seekto; >X+ >X my_finishCommand(conn); >X if(status->state==MPD_STATUS_STATE_STOP) >X DIE("not currently playing\n"); >X >X- char * arg = argv[0]; >X- >X if(!strlen(arg)) >X DIE("\"%s\" is not a positive number\n", arg); >X >X- int seekmode = Absolute; >X+ seekmode = Absolute; >X >X if(arg[0] == '+') { >X seekmode = RelForward; >X@@ -262,15 +269,13 @@ >X arg++; >X } >X >X- char * test; >X- int seekchange; >X >X- char * last_char = &arg[strlen(arg)-1]; >X+ last_char = &arg[strlen(arg)-1]; >X if(*last_char == 's') { >X /* absolute seek (in seconds) */ >X >X *last_char = '\0'; /* chop off the s */ >X- int sec = strtol(arg,&test,10); /* get the # of seconds */ >X+ sec = strtol(arg,&test,10); /* get the # of seconds */ >X >X if(*test!='\0' || sec<0) >X DIE("\"%s\" is not a positive number\n", arg); >X@@ -280,14 +285,14 @@ >X } else { >X /* percent seek */ >X >X- float perc = strtod(arg,&test); >X+ perc = strtod(arg,&test); >X if(*test!='\0' || perc<0 || perc>100) >X DIE("\"%s\" is not an number between 0 and 100\n",arg); >X >X seekchange = perc*status->totalTime/100+0.5; >X } >X >X- int seekto = calculate_seek(status->elapsedTime, seekchange, seekmode); >X+ seekto = calculate_seek(status->elapsedTime, seekchange, seekmode); >X >X if(seekto > status->totalTime) >X DIE("seek amount would seek past the end of the song\n"); >END-of-mpc/files/patch-src-command.c >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 63705
: 40531