Date: 3 Mar 2004 18:12:54 -0000 From: Mark Daniel Reidel <ports@mark.reidel.info> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/63705: [MAINTAINER] audio/mpc: update to 0.10.0 Message-ID: <20040303181254.87700.qmail@karm.dyndns.org> Resent-Message-ID: <200403031820.i23IKAiv062595@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 63705 >Category: ports >Synopsis: [MAINTAINER] audio/mpc: update to 0.10.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 03 10:20:10 PST 2004 >Closed-Date: >Last-Modified: >Originator: Mark Daniel Reidel >Release: FreeBSD 4.9-STABLE i386 >Organization: >Environment: System: FreeBSD raffi.reidel.info 4.9-STABLE FreeBSD 4.9-STABLE #24: Sun Feb 15 22:55:08 CET 2004 >Description: Update to newset version 0.10.0 which has some bugfixes and also new features like crossfading implemented. >How-To-Repeat: >Fix: --- mpc-0.10.0.shar begins here --- # 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 --- mpc-0.10.0.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040303181254.87700.qmail>