diff --git a/audio/mp3splt/Makefile b/audio/mp3splt/Makefile index 127b9dd1c22e..c422d5c1f5dd 100644 --- a/audio/mp3splt/Makefile +++ b/audio/mp3splt/Makefile @@ -1,42 +1,42 @@ # New ports collection makefile for: audio/mp3splt # Date created: 30.05.2003 # Whom: Ulrich Spoerlein # # $FreeBSD$ # PORTNAME= mp3splt PORTVERSION= 2.1c -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} DISTNAME= ${PORTNAME}-${PORTVERSION}-src -MAINTAINER= uspoerlein@gmail.com +MAINTAINER= fk@fabiankeil.de COMMENT= Utility to split mp3 and ogg files (via CUE sheets) OPTIONS= VORBIS "Ogg Vorbis support" On .include LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad .if !defined(WITHOUT_VORBIS) LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis \ ogg.5:${PORTSDIR}/audio/libogg .else CONFIGURE_ARGS+=--disable-ogg .endif GNU_CONFIGURE= yes CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \ CFLAGS="${CFLAGS} -I${LOCALBASE}/include" CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} MAN1= mp3splt.1 PLIST_FILES= bin/mp3splt bin/oggsplt .include diff --git a/audio/mp3splt/files/patch-mp3splt.c b/audio/mp3splt/files/patch-mp3splt.c new file mode 100644 index 000000000000..323aee6be945 --- /dev/null +++ b/audio/mp3splt/files/patch-mp3splt.c @@ -0,0 +1,16 @@ +--- mp3splt.c.orig 2008-06-25 00:19:32.000000000 -0400 ++++ mp3splt.c 2008-06-25 00:20:37.000000000 -0400 +@@ -114,6 +114,13 @@ + if (state->mstate) { + fclose(state->mstate->file_input); + mp3_state_free(state->mstate); ++ /* ++ * Explicitly setting mstate to NULL ++ * prevents encoding misdetection (resulting ++ * in a crash) if an mp3 file is followed by ++ * a vorbis file. ++ */ ++ state->mstate = NULL; + } + #ifndef NO_OGG + else if (state->ostate) { // If file has been opened with ov_open we should close it using ov_clear()