diff options
author | naddy <naddy@FreeBSD.org> | 2008-04-08 04:37:23 +0800 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2008-04-08 04:37:23 +0800 |
commit | 5d7648cf54a89e826350ff1b2f40131f20c43261 (patch) | |
tree | 2ef2e56717d3ec99a2689360c25c64d5cae8418d /multimedia/kdemultimedia4 | |
parent | ac39987147fb57e12b7fc719185f6a8153a068d7 (diff) | |
download | freebsd-ports-gnome-5d7648cf54a89e826350ff1b2f40131f20c43261.tar.gz freebsd-ports-gnome-5d7648cf54a89e826350ff1b2f40131f20c43261.tar.zst freebsd-ports-gnome-5d7648cf54a89e826350ff1b2f40131f20c43261.zip |
Update to FLAC 1.2.1. This version includes two and a half years
worth of changes and an altered API.
Bump the revision of all ports that depend on libFLAC and adapt to
the new API where necessary. Some patches from Debian, Gentoo,
OpenBSD, and upstream repositories.
PR: 119476
Diffstat (limited to 'multimedia/kdemultimedia4')
3 files changed, 89 insertions, 2 deletions
diff --git a/multimedia/kdemultimedia4/Makefile b/multimedia/kdemultimedia4/Makefile index 1394b9973791..0aaa94103f50 100644 --- a/multimedia/kdemultimedia4/Makefile +++ b/multimedia/kdemultimedia4/Makefile @@ -8,7 +8,7 @@ PORTNAME= kdemultimedia PORTVERSION= ${KDE_VERSION} -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= multimedia kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src @@ -33,7 +33,7 @@ PREFIX= ${KDE_PREFIX} USE_BZIP2= yes USE_GMAKE= yes -USE_AUTOTOOLS= libtool:15 +USE_AUTOTOOLS= autoconf:261:env libtool:15 MAKE_ENV= ${CONFIGURE_ENV} @@ -42,6 +42,9 @@ CONFIGURE_ENV+= AKODE_CONFIG=${LOCALBASE}/bin/akode-config USE_LDCONFIG= yes LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3 DO_NOT_COMPILE+=akode juk mpeglib mpeglib_artsplug xine_artsplugin +# short-circuit auto frameworks rebuilds +MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \ + AUTOHEADER="${TRUE}" OPTIONS= AKODE "Use akode for audio playback" on \ MPEGLIB "Use mpeglib for audio playback" off \ @@ -72,6 +75,8 @@ CONFIGURE_ENV+= DO_NOT_COMPILE="${DO_NOT_COMPILE}" pre-configure: ${REINPLACE_CMD} -e "s,applications-merged,kde-applications-merged,g" \ ${WRKSRC}/kappfinder-data/Makefile.in + @cd ${CONFIGURE_WRKSRC} \ + && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} ${AUTOCONF_ARGS} post-install: @${CAT} ${PKGMESSAGE} diff --git a/multimedia/kdemultimedia4/files/patch-configure.in b/multimedia/kdemultimedia4/files/patch-configure.in new file mode 100644 index 000000000000..2e04bffa5e92 --- /dev/null +++ b/multimedia/kdemultimedia4/files/patch-configure.in @@ -0,0 +1,52 @@ +--- configure.in.orig 2008-03-27 18:04:50.000000000 +0100 ++++ configure.in 2008-03-27 18:06:26.000000000 +0100 +@@ -937,9 +937,9 @@ AC_DEFUN([AC_CHECK_LIBFLAC], + AC_LANG_SAVE + AC_LANG_C + have_libFLAC=no +- KDE_CHECK_HEADER(FLAC/metadata.h, ++ KDE_CHECK_HEADER(FLAC/stream_decoder.h, + [ +- KDE_CHECK_LIB(FLAC,FLAC__seekable_stream_decoder_process_single, ++ KDE_CHECK_LIB(FLAC,FLAC__stream_decoder_init_ogg_stream, + have_libFLAC=yes) + + ]) +@@ -947,28 +947,10 @@ AC_DEFUN([AC_CHECK_LIBFLAC], + LIBFLAC="-lFLAC" + AC_DEFINE(HAVE_LIBFLAC, 1, + [Define if you have libFLAC (required for loading FLAC files)]) +- fi +- AC_SUBST(LIBFLAC) +- AC_LANG_RESTORE +-]) +- +-AC_DEFUN([AC_CHECK_LIBOGGFLAC], +-[ +- AC_LANG_SAVE +- AC_LANG_C +- have_libOggFLAC=no +- KDE_CHECK_HEADER(OggFLAC/seekable_stream_decoder.h, +- [ +- KDE_CHECK_LIB(OggFLAC,OggFLAC__seekable_stream_decoder_process_single, +- have_libOggFLAC=yes,,[-lm -lOggFLAC -lFLAC]) +- +- ]) +- if test "x$have_libOggFLAC" = "xyes"; then +- LIBOGGFLAC="-lOggFLAC" + AC_DEFINE(HAVE_LIBOGGFLAC, 1, + [Define if you have libOggFLAC (required for loading OggFLAC files)]) + fi +- AC_SUBST(LIBOGGFLAC) ++ AC_SUBST(LIBFLAC) + AC_LANG_RESTORE + ]) + +@@ -976,7 +958,6 @@ AC_ARG_WITH(flac,AC_HELP_STRING([--with- + + if test "x$flac_test" = "xyes" ; then + AC_CHECK_LIBFLAC +- AC_CHECK_LIBOGGFLAC + fi + dnl ======================================================= + dnl FILE: ./kmid/configure.in.in diff --git a/multimedia/kdemultimedia4/files/patch-kioslave_audiocd_plugins_flac_encoderflac.cpp b/multimedia/kdemultimedia4/files/patch-kioslave_audiocd_plugins_flac_encoderflac.cpp new file mode 100644 index 000000000000..d718b1dd1209 --- /dev/null +++ b/multimedia/kdemultimedia4/files/patch-kioslave_audiocd_plugins_flac_encoderflac.cpp @@ -0,0 +1,30 @@ +--- kioslave/audiocd/plugins/flac/encoderflac.cpp.orig 2006-01-19 17:40:33.000000000 +0100 ++++ kioslave/audiocd/plugins/flac/encoderflac.cpp 2008-03-27 18:03:56.000000000 +0100 +@@ -47,7 +47,7 @@ public: + unsigned long data; + }; + +-static FLAC__StreamEncoderWriteStatus WriteCallback(const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data) ++static FLAC__StreamEncoderWriteStatus WriteCallback(const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void *client_data) + { + EncoderFLAC::Private *d = (EncoderFLAC::Private*)client_data; + +@@ -109,9 +109,6 @@ unsigned long EncoderFLAC::size(long tim + long EncoderFLAC::readInit(long size) { + kdDebug(7117) << "EncoderFLAC::readInit() called"<< endl; + d->data = 0; +- FLAC__stream_encoder_set_write_callback(d->encoder, WriteCallback); +- FLAC__stream_encoder_set_metadata_callback(d->encoder, MetadataCallback); +- FLAC__stream_encoder_set_client_data(d->encoder, d); + + // The options match approximely those of flac compression-level-3 + FLAC__stream_encoder_set_do_mid_side_stereo(d->encoder, true); +@@ -124,7 +121,7 @@ long EncoderFLAC::readInit(long size) { + if (size > 0) + FLAC__stream_encoder_set_total_samples_estimate(d->encoder, size/4); + +- FLAC__stream_encoder_init(d->encoder); ++ FLAC__stream_encoder_init_stream(d->encoder, WriteCallback, NULL, NULL, MetadataCallback, d); + return d->data; + } + |