from the changelog: 1.2.4 * Fix broken stream initialization on non-mpc files.
1.2.3 * Added fast-seeking (bit-perfect only with mppenc 1.16 files and later, optional but safe on pre-mppenc 1.16 files). Patch by Nicolas Botti * Reduced memory usage and code size. Patch by Peter Pawlowski builds fine here on i386/amd64/sparc64. please test. Index: Makefile =================================================================== RCS file: /cvs/ports/audio/libmpcdec/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- Makefile 28 Oct 2006 10:30:41 -0000 1.3 +++ Makefile 11 Dec 2006 11:06:34 -0000 @@ -1,9 +1,8 @@ # $OpenBSD: Makefile,v 1.3 2006/10/28 10:30:41 espie Exp $ -COMMENT= "musepack, high quality audio compression format" - -DISTNAME= libmpcdec-1.2.2 -PKGNAME= ${DISTNAME}p0 +COMMENT= "musepack decoder library" +DISTNAME= libmpcdec-1.2.4 +SHARED_LIBS += mpcdec 2.0 # .5.1 CATEGORIES= audio HOMEPAGE= http://www.musepack.net/ @@ -19,21 +18,26 @@ PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes -DOCDIR=${PREFIX}/share/doc/libmpcdec +#DOCDIR=${PREFIX}/share/doc/libmpcdec + +BUILD_DEPENDS= :automake-${AUTOMAKE_VERSION}*:devel/automake/${AUTOMAKE_VERSION} \ + :autoconf-${AUTOCONF_VERSION}*:devel/autoconf/${AUTOCONF_VERSION} pre-configure: + cd ${WRKSRC} && ${SETENV} AUTOCONF_VERSION=${AUTOCONF_VERSION} \ + AUTOMAKE_VERSION=${AUTOMAKE_VERSION} ./autogen.sh @perl -pi -e 's|-O3\ -fomit-frame-pointer||g' ${WRKSRC}/configure post-install: ${INSTALL} ${WRKBUILD}/src/.libs/sample ${PREFIX}/bin/mpc2wav - ${INSTALL_DATA_DIR} ${DOCDIR} - cp -r ${WRKDIST}/docs/* ${DOCDIR} - -SHARED_LIBS += mpcdec 1.0 # .4.1 +# ${INSTALL_DATA_DIR} ${DOCDIR} +# cp -r ${WRKDIST}/docs/* ${DOCDIR} USE_LIBTOOL= Yes WANTLIB= c m stdc++ CONFIGURE_STYLE=gnu +AUTOCONF_VERSION=2.59 +AUTOMAKE_VERSION=1.9 .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/audio/libmpcdec/distinfo,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 distinfo --- distinfo 10 Mar 2006 09:43:37 -0000 1.1.1.1 +++ distinfo 11 Dec 2006 11:06:34 -0000 @@ -1,4 +1,4 @@ -MD5 (libmpcdec-1.2.2.tar.bz2) = f14e07285b9b102a806649074c1d779b -RMD160 (libmpcdec-1.2.2.tar.bz2) = c49faf5ba183e1c66b33c5b729168b13ff3c7447 -SHA1 (libmpcdec-1.2.2.tar.bz2) = aab2a7329486e712ea5fd6e3b0819f918c428e8a -SIZE (libmpcdec-1.2.2.tar.bz2) = 318620 +MD5 (libmpcdec-1.2.4.tar.bz2) = 7c904f519020df99484dc6cea6f4c869 +RMD160 (libmpcdec-1.2.4.tar.bz2) = ddd8e4c5ada41e7111df386a2f5aff2aa2213a51 +SHA1 (libmpcdec-1.2.4.tar.bz2) = 0dca205be8b6149d617a4f4b129dc4dbf591037c +SIZE (libmpcdec-1.2.4.tar.bz2) = 43735 Index: patches/patch-configure_ac =================================================================== RCS file: patches/patch-configure_ac diff -N patches/patch-configure_ac --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-configure_ac 11 Dec 2006 11:06:34 -0000 @@ -0,0 +1,43 @@ +$OpenBSD$ +--- configure.ac.orig Mon Dec 11 11:48:33 2006 ++++ configure.ac Mon Dec 11 11:50:22 2006 +@@ -26,6 +26,7 @@ AC_CHECK_FUNCS([memmove memset sqrt]) + AC_MSG_CHECKING(for int16_t) + AC_CACHE_VAL(has_int16_t, + [AC_TRY_RUN([ ++#include <stdint.h> + int16_t foo; + int main() {return 0;} + ], +@@ -38,6 +39,7 @@ AC_MSG_RESULT($has_int16_t) + AC_MSG_CHECKING(for int32_t) + AC_CACHE_VAL(has_int32_t, + [AC_TRY_RUN([ ++#include <stdint.h> + int32_t foo; + int main() {return 0;} + ], +@@ -50,6 +52,7 @@ AC_MSG_RESULT($has_int32_t) + AC_MSG_CHECKING(for uint32_t) + AC_CACHE_VAL(has_uint32_t, + [AC_TRY_RUN([ ++#include <stdint.h> + uint32_t foo; + int main() {return 0;} + ], +@@ -62,6 +65,7 @@ AC_MSG_RESULT($has_uint32_t) + AC_MSG_CHECKING(for uint16_t) + AC_CACHE_VAL(has_uint16_t, + [AC_TRY_RUN([ ++#include <stdint.h> + uint16_t foo; + int main() {return 0;} + ], +@@ -98,6 +102,7 @@ AC_MSG_RESULT($has_u_int16_t) + AC_MSG_CHECKING(for int64_t) + AC_CACHE_VAL(has_int64_t, + [AC_TRY_RUN([ ++#include <stdint.h> + int64_t foo; + int main() {return 0;} + ], Index: patches/patch-include_Makefile_in =================================================================== RCS file: patches/patch-include_Makefile_in diff -N patches/patch-include_Makefile_in --- patches/patch-include_Makefile_in 10 Mar 2006 09:43:37 -0000 1.1.1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-include_Makefile_in,v 1.1.1.1 2006/03/10 09:43:37 espie Exp $ ---- include/Makefile.in.orig Fri Mar 10 10:39:30 2006 -+++ include/Makefile.in Fri Mar 10 10:39:38 2006 -@@ -218,7 +218,7 @@ stamp-h1: $(srcdir)/config.h.in $(top_bu - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status include/config.h - $(srcdir)/config.h.in: $(am__configure_deps) -- cd $(top_srcdir) && $(AUTOHEADER) -+# cd $(top_srcdir) && $(AUTOHEADER) - rm -f stamp-h1 - touch $@ - Index: patches/patch-include_mpcdec_config_types_h_in =================================================================== RCS file: patches/patch-include_mpcdec_config_types_h_in diff -N patches/patch-include_mpcdec_config_types_h_in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-include_mpcdec_config_types_h_in 11 Dec 2006 11:06:34 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- include/mpcdec/config_types.h.in.orig Mon Dec 11 11:50:54 2006 ++++ include/mpcdec/config_types.h.in Mon Dec 11 11:51:37 2006 +@@ -35,6 +35,8 @@ + #ifndef __MUSEPACK_CONFIG_TYPES_H__ + #define __MUSEPACK_CONFIG_TYPES_H__ + ++#include <stdint.h> ++ + typedef unsigned char mpc_bool_t; + #define TRUE 1 + #define FALSE 0 Index: patches/patch-src_sample_cpp =================================================================== RCS file: patches/patch-src_sample_cpp diff -N patches/patch-src_sample_cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_sample_cpp 11 Dec 2006 11:06:34 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- src/sample.cpp.orig Mon Dec 11 10:21:39 2006 ++++ src/sample.cpp Mon Dec 11 10:22:05 2006 +@@ -270,7 +270,7 @@ main(int argc, char **argv) + /* instantiate a decoder with our file reader */ + mpc_decoder_setup(&decoder, &reader); + if (!mpc_decoder_initialize(&decoder, &info)) { +- printf("Error initializing decoder.\n", argv[1]); ++ printf("Error initializing decoder.\n"); + return 1; + } + Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/audio/libmpcdec/pkg/PLIST,v retrieving revision 1.2 diff -u -r1.2 PLIST --- pkg/PLIST 10 Mar 2006 15:53:53 -0000 1.2 +++ pkg/PLIST 11 Dec 2006 11:06:34 -0000 @@ -12,79 +12,3 @@ include/mpcdec/streaminfo.h lib/libmpcdec.a lib/libmpcdec.la -share/doc/libmpcdec/ -share/doc/libmpcdec/Doxyfile -share/doc/libmpcdec/custom.css -share/doc/libmpcdec/html/ -share/doc/libmpcdec/html/annotated.html -share/doc/libmpcdec/html/classWavWriter-members.html -share/doc/libmpcdec/html/classWavWriter.html -share/doc/libmpcdec/html/config__win32_8h-source.html -share/doc/libmpcdec/html/custom.css -share/doc/libmpcdec/html/decoder_8h-source.html -share/doc/libmpcdec/html/decoder_8h.html -share/doc/libmpcdec/html/dir_000000.html -share/doc/libmpcdec/html/dir_000001.html -share/doc/libmpcdec/html/dir_000002.html -share/doc/libmpcdec/html/dirs.html -share/doc/libmpcdec/html/doxygen.png -share/doc/libmpcdec/html/files.html -share/doc/libmpcdec/html/functions.html -share/doc/libmpcdec/html/functions_func.html -share/doc/libmpcdec/html/functions_rela.html -share/doc/libmpcdec/html/functions_vars.html -share/doc/libmpcdec/html/globals.html -share/doc/libmpcdec/html/globals_defs.html -share/doc/libmpcdec/html/globals_eval.html -share/doc/libmpcdec/html/globals_func.html -share/doc/libmpcdec/html/globals_type.html -share/doc/libmpcdec/html/globals_vars.html -share/doc/libmpcdec/html/huffman_8h-source.html -share/doc/libmpcdec/html/huffman_8h.html -share/doc/libmpcdec/html/huffsv46_8c-source.html -share/doc/libmpcdec/html/huffsv46_8c.html -share/doc/libmpcdec/html/huffsv7_8c-source.html -share/doc/libmpcdec/html/huffsv7_8c.html -share/doc/libmpcdec/html/idtag_8c-source.html -share/doc/libmpcdec/html/idtag_8c.html -share/doc/libmpcdec/html/index.html -share/doc/libmpcdec/html/internal_8h-source.html -share/doc/libmpcdec/html/internal_8h.html -share/doc/libmpcdec/html/mainpage_8h-source.html -share/doc/libmpcdec/html/math_8h-source.html -share/doc/libmpcdec/html/math_8h.html -share/doc/libmpcdec/html/mpc__decoder_8c-source.html -share/doc/libmpcdec/html/mpc__decoder_8c.html -share/doc/libmpcdec/html/mpc__reader_8c-source.html -share/doc/libmpcdec/html/mpc__reader_8c.html -share/doc/libmpcdec/html/mpcdec_8h-source.html -share/doc/libmpcdec/html/mpcdec_8h.html -share/doc/libmpcdec/html/pages.html -share/doc/libmpcdec/html/reader_8h-source.html -share/doc/libmpcdec/html/reader_8h.html -share/doc/libmpcdec/html/requant_8c-source.html -share/doc/libmpcdec/html/requant_8c.html -share/doc/libmpcdec/html/requant_8h-source.html -share/doc/libmpcdec/html/requant_8h.html -share/doc/libmpcdec/html/sample_8cpp-source.html -share/doc/libmpcdec/html/streaminfo_8c-source.html -share/doc/libmpcdec/html/streaminfo_8c.html -share/doc/libmpcdec/html/streaminfo_8h-source.html -share/doc/libmpcdec/html/streaminfo_8h.html -share/doc/libmpcdec/html/structQuantTyp-members.html -share/doc/libmpcdec/html/structQuantTyp.html -share/doc/libmpcdec/html/structhuffman__type__t-members.html -share/doc/libmpcdec/html/structhuffman__type__t.html -share/doc/libmpcdec/html/structmpc__decoder__t-members.html -share/doc/libmpcdec/html/structmpc__decoder__t.html -share/doc/libmpcdec/html/structmpc__reader__file__t-members.html -share/doc/libmpcdec/html/structmpc__reader__file__t.html -share/doc/libmpcdec/html/structmpc__reader__t-members.html -share/doc/libmpcdec/html/structmpc__reader__t.html -share/doc/libmpcdec/html/structmpc__streaminfo-members.html -share/doc/libmpcdec/html/structmpc__streaminfo.html -share/doc/libmpcdec/html/structreader__data__t-members.html -share/doc/libmpcdec/html/structreader__data__t.html -share/doc/libmpcdec/html/synth__filter_8c-source.html -share/doc/libmpcdec/html/synth__filter_8c.html -share/doc/libmpcdec/html/todo.html Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm