From 98fb1011cdb27b21d1e0b39f29ef47fd0cff5303 Mon Sep 17 00:00:00 2001 From: Wulf Krueger Date: Sat, 3 Nov 2007 20:10:21 +0000 Subject: Added a patch for BSD compatibility. (Portage version: 2.1.3.16) --- kde-base/kdemultimedia/ChangeLog | 7 +++++- .../kdemultimedia-kioslaves-3.5.8-freebsd.patch | 27 ++++++++++++++++++++++ kde-base/kdemultimedia/kdemultimedia-3.5.8.ebuild | 5 ++-- 3 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch (limited to 'kde-base/kdemultimedia') diff --git a/kde-base/kdemultimedia/ChangeLog b/kde-base/kdemultimedia/ChangeLog index 8e38854c72fa..645a02ece93c 100644 --- a/kde-base/kdemultimedia/ChangeLog +++ b/kde-base/kdemultimedia/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for kde-base/kdemultimedia # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia/ChangeLog,v 1.256 2007/10/19 22:29:37 philantrop Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia/ChangeLog,v 1.257 2007/11/03 20:10:20 philantrop Exp $ + + 03 Nov 2007; Wulf C. Krueger + +files/kdemultimedia-kioslaves-3.5.8-freebsd.patch, + kdemultimedia-3.5.8.ebuild: + Added a patch for BSD compatibility. *kdemultimedia-3.5.8 (19 Oct 2007) diff --git a/kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch b/kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch new file mode 100644 index 000000000000..be8a7d927eae --- /dev/null +++ b/kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch @@ -0,0 +1,27 @@ +--- kdemultimedia-kioslaves-3.5.8/kioslave/audiocd/plugins/lame/encoderlame.cpp.old 2007-10-21 10:16:12 -0600 ++++ kdemultimedia-kioslaves-3.5.8/kioslave/audiocd/plugins/lame/encoderlame.cpp 2007-10-21 09:50:00 -0600 +@@ -17,7 +17,11 @@ + */ + + #include ++#ifdef HAVE_MACHINE_ENDIAN_H ++#include ++#else + #include ++#endif + #include "encoderlame.h" + #include "encoderlameconfig.h" + #include "audiocd_lame_encoder.h" +@@ -221,6 +225,12 @@ + // -x bitswap + // -r raw/pcm + // -s 44.1 (because it is raw you have to specify this) ++#if !defined(__BYTE_ORDER) && defined(_BYTE_ORDER) ++#define __BYTE_ORDER _BYTE_ORDER ++#endif ++#if !defined(__LITTLE_ENDIAN) && defined(_LITTLE_ENDIAN) ++#define __LITTLE_ENDIAN _LITTLE_ENDIAN ++#endif + #if __BYTE_ORDER == __LITTLE_ENDIAN + *(d->currentEncodeProcess) << "lame" << "--verbose" << "-x" << "-r" << "-s" << "44.1"; + #else diff --git a/kde-base/kdemultimedia/kdemultimedia-3.5.8.ebuild b/kde-base/kdemultimedia/kdemultimedia-3.5.8.ebuild index 6fc53b19aa6f..ca142e262de2 100644 --- a/kde-base/kdemultimedia/kdemultimedia-3.5.8.ebuild +++ b/kde-base/kdemultimedia/kdemultimedia-3.5.8.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia/kdemultimedia-3.5.8.ebuild,v 1.1 2007/10/19 22:29:37 philantrop Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia/kdemultimedia-3.5.8.ebuild,v 1.2 2007/11/03 20:10:20 philantrop Exp $ inherit kde-dist flag-o-matic @@ -34,7 +34,8 @@ RDEPEND="${DEPEND} DEPEND="${DEPEND} dev-util/pkgconfig" -PATCHES="${FILESDIR}/kdemultimedia-3.5.5+flac-1.1.3.patch" +PATCHES="${FILESDIR}/kdemultimedia-3.5.5+flac-1.1.3.patch + ${FILESDIR}/kdemultimedia-kioslaves-3.5.8-freebsd.patch" pkg_setup() { kde_pkg_setup -- cgit v1.2.3-65-gdbad