FreeBSD - Error installing KDE4 or Xine

Halfway through installing KDE4 or any ports that is related to Xine, ended fail with the below error message :

===>  Found saved configuration for libxine-
=> xine-lib- doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://superb-east.dl.sourceforge.net/sourceforge/xine/.
xine-lib-                     100% of 7293 kB  232 kBps 00m00s
===>  Extracting for libxine-
=> MD5 Checksum OK for xine-lib-
=> SHA256 Checksum OK for xine-lib-
===>   libxine- depends on file: /usr/local/bin/perl5.8.9 - found
===>  Patching for libxine-
===>   libxine- depends on file: /usr/local/bin/perl5.8.9 - found
===>  Applying FreeBSD patches for libxine-
1 out of 1 hunks failed--saving rejects to src/combined/ffmpeg/Makefile.in.rej
=> Patch patch-src_combined_ffmpeg_Makefile.in failed to apply cleanly.
=> Patch(es) patch-config.rpath patch-configure patch-misc_Makefile.in patch-misc_libxine.pc.in patch-src:libffmpeg:libavcodec:h263.c patch-src:libffmpeg:libavcodec:mpeg12.c patch-src:libffmpeg:libavcodec:msmpeg4.c patch-src:xine-engine:xine_internal.h patch-src_audio_out_audio_oss_out.c applied cleanly.
*** Error code 1

Stop in /usr/ports/multimedia/libxine.
*** Error code 1

It seems that the patching for ffmpeg in libxine fail for some reason. Checking out the freebsd.org bugs database, it is due to ffmpeg in libxine does not need that patch. The solution to it is :

1. Remove the patch from libxine's ports
cd /usr/ports/multimedia/libxine
rm files/patch-src_combined_ffmpeg_Makefile.in

2. Clean the working files :
make clean

3. Compile and install the ports again
make install clean

Voilla !!!

No comments: