1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Fix parsing of CUE files.

Bump portrevision.

Submitted by:	maintainer via email
This commit is contained in:
Vsevolod Stakhov 2009-03-31 09:46:33 +00:00
parent 37411a692c
commit 6b5d678bf3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=231371
2 changed files with 21 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= libmp3splt
PORTVERSION= 0.5.4
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mp3splt
@ -60,6 +61,6 @@ PLIST_FILES+= lib/libmp3splt/libsplt_ogg.a \
.endif
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"
.include <bsd.port.post.mk>

View File

@ -0,0 +1,19 @@
--- src/cddb.c.orig
+++ src/cddb.c
@@ -393,6 +393,16 @@
//we read the file line by line
while (fgets(line, 2048, file_input)!=NULL)
{
+ //if windows file with '\r', then pretend is a unix file
+ if (strlen(line) > 1)
+ {
+ if (line[strlen(line)-2] == '\r')
+ {
+ line[strlen(line)-2] = '\n';
+ line[strlen(line)-1] = '\0';
+ }
+ }
+
type = SPLT_CUE_NOTHING;
//we read strings from file TRACK,TITLE,AUDIO,PERFORMER,INDEX