summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Peterson <lavajoe@gentoo.org>2007-10-21 16:52:40 +0000
committerJoe Peterson <lavajoe@gentoo.org>2007-10-21 16:52:40 +0000
commitc11abea7af6362893e8d6cedf88bedb4fb9babe8 (patch)
tree53b2ba780bb4b2cd7f4a5dcbbd71bfe68c9b45b1 /kde-base
parentgotta remember keychain (diff)
downloadgentoo-2-c11abea7af6362893e8d6cedf88bedb4fb9babe8.tar.gz
gentoo-2-c11abea7af6362893e8d6cedf88bedb4fb9babe8.tar.bz2
gentoo-2-c11abea7af6362893e8d6cedf88bedb4fb9babe8.zip
Patch to compile on FreeBSD
(Portage version: 2.1.3.15)
Diffstat (limited to 'kde-base')
-rw-r--r--kde-base/kdemultimedia-kioslaves/ChangeLog7
-rw-r--r--kde-base/kdemultimedia-kioslaves/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch27
-rw-r--r--kde-base/kdemultimedia-kioslaves/kdemultimedia-kioslaves-3.5.8.ebuild5
3 files changed, 36 insertions, 3 deletions
diff --git a/kde-base/kdemultimedia-kioslaves/ChangeLog b/kde-base/kdemultimedia-kioslaves/ChangeLog
index 036f868ede8b..13d4cdb9ab94 100644
--- a/kde-base/kdemultimedia-kioslaves/ChangeLog
+++ b/kde-base/kdemultimedia-kioslaves/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for kde-base/kdemultimedia-kioslaves
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia-kioslaves/ChangeLog,v 1.77 2007/10/19 22:30:57 philantrop Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia-kioslaves/ChangeLog,v 1.78 2007/10/21 16:52:39 lavajoe Exp $
+
+ 21 Oct 2007; Joe Peterson <lavajoe@gentoo.org>
+ +files/kdemultimedia-kioslaves-3.5.8-freebsd.patch,
+ kdemultimedia-kioslaves-3.5.8.ebuild:
+ Patch to compile on FreeBSD
*kdemultimedia-kioslaves-3.5.8 (19 Oct 2007)
diff --git a/kde-base/kdemultimedia-kioslaves/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch b/kde-base/kdemultimedia-kioslaves/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch
new file mode 100644
index 000000000000..be8a7d927eae
--- /dev/null
+++ b/kde-base/kdemultimedia-kioslaves/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 <config.h>
++#ifdef HAVE_MACHINE_ENDIAN_H
++#include <machine/endian.h>
++#else
+ #include <endian.h>
++#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-kioslaves/kdemultimedia-kioslaves-3.5.8.ebuild b/kde-base/kdemultimedia-kioslaves/kdemultimedia-kioslaves-3.5.8.ebuild
index 4ec882be9184..4f25529d3072 100644
--- a/kde-base/kdemultimedia-kioslaves/kdemultimedia-kioslaves-3.5.8.ebuild
+++ b/kde-base/kdemultimedia-kioslaves/kdemultimedia-kioslaves-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-kioslaves/kdemultimedia-kioslaves-3.5.8.ebuild,v 1.1 2007/10/19 22:30:57 philantrop Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia-kioslaves/kdemultimedia-kioslaves-3.5.8.ebuild,v 1.2 2007/10/21 16:52:39 lavajoe Exp $
KMNAME=kdemultimedia
KMMODULE=kioslave
@@ -27,7 +27,8 @@ KMCOMPILEONLY="
libkcddb"
PATCHES="${FILESDIR}/kdemultimedia-3.5.5+flac-1.1.3.patch
- ${FILESDIR}/kdemultimedia-kioslaves-3.5.6-arts.patch"
+ ${FILESDIR}/kdemultimedia-kioslaves-3.5.6-arts.patch
+ ${FILESDIR}/kdemultimedia-kioslaves-3.5.8-freebsd.patch"
src_compile() {
myconf="--with-cdparanoia --enable-cdparanoia"