mpd: fix build with ffmpeg>=2.1.

This commit is contained in:
Juan RP 2013-10-30 07:46:09 +01:00
parent a0250e445f
commit 7420b880ac

View file

@ -3,7 +3,8 @@ pkgname=mpd
version=0.17.6
revision=2
build_style=gnu-configure
configure_args="--enable-jack --enable-lastfm --enable-soundcloud --enable-pipe-output
configure_args="
--enable-jack --enable-lastfm --enable-soundcloud --enable-pipe-output
--enable-pulse --disable-sidplay --with-systemdsystemunitdir=/usr/lib/systemd/system
--enable-bzip2 --enable-zzip"
hostmakedepends="pkg-config"
@ -20,6 +21,10 @@ homepage="http://www.musicpd.org/"
distfiles="http://www.musicpd.org/download/mpd/${version%.*}/mpd-${version}.tar.xz"
checksum=defd23931bd3f0aaee82a079a0583278e51e25f480509a93bc5f70de7f421906
pre_configure() {
sed 's:AVCODEC_MAX_AUDIO_FRAME_SIZE:192000:g' -i src/decoder/ffmpeg_decoder_plugin.c
}
post_install() {
vinstall doc/mpdconf.example 644 etc mpd.conf
vinstall ${FILESDIR}/tmpfiles.d 644 usr/lib/tmpfiles.d mpd.conf