summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Villavicencio <the_paya@gentoo.org>2006-10-31 22:24:13 +0000
committerJavier Villavicencio <the_paya@gentoo.org>2006-10-31 22:24:13 +0000
commitbbfe6e9236b1930d0892eb608f1c89283105e991 (patch)
tree9935e054868f6470071307684e6aa269afae21cc
parentVersion bump (diff)
downloadgentoo-2-bbfe6e9236b1930d0892eb608f1c89283105e991.tar.gz
gentoo-2-bbfe6e9236b1930d0892eb608f1c89283105e991.tar.bz2
gentoo-2-bbfe6e9236b1930d0892eb608f1c89283105e991.zip
Add fix to enable compilation on Gentoo/FreeBSD, and keyword ~x86-fbsd.
(Portage version: 2.1.2_rc1-r1)
-rw-r--r--media-libs/ladspa-sdk/ChangeLog6
-rw-r--r--media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.122
-rw-r--r--media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12-r12
-rw-r--r--media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12-r22
-rw-r--r--media-libs/ladspa-sdk/files/ladspa-sdk-1.12-fbsd.patch31
-rw-r--r--media-libs/ladspa-sdk/ladspa-sdk-1.12-r2.ebuild5
6 files changed, 45 insertions, 3 deletions
diff --git a/media-libs/ladspa-sdk/ChangeLog b/media-libs/ladspa-sdk/ChangeLog
index 1b123ce127ed..f736b2695db8 100644
--- a/media-libs/ladspa-sdk/ChangeLog
+++ b/media-libs/ladspa-sdk/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/ladspa-sdk
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/ladspa-sdk/ChangeLog,v 1.31 2006/01/18 00:16:09 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/ladspa-sdk/ChangeLog,v 1.32 2006/10/31 22:24:13 the_paya Exp $
+
+ 31 Oct 2006; Javier Villavicencio <the_paya@gentoo.org>
+ +files/ladspa-sdk-1.12-fbsd.patch, ladspa-sdk-1.12-r2.ebuild:
+ Add fix to enable compilation on Gentoo/FreeBSD, and keyword ~x86-fbsd.
18 Jan 2006; Hanno Boeck <hanno@gentoo.org>
+files/ladspa-sdk-1.12-gcc4.patch, ladspa-sdk-1.12-r2.ebuild:
diff --git a/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12 b/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12
index 7ee5f9b8c87b..de6e5051a2f3 100644
--- a/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12
+++ b/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12
@@ -1 +1,3 @@
MD5 dbd63dd701d80b152943073c84565c14 ladspa_sdk_1.12.tgz 71165
+RMD160 7967731c28785287691655d9346cf46654f4235b ladspa_sdk_1.12.tgz 71165
+SHA256 66a5be1b0c54aba86dbb24a2e5e83604d0d7a8c0645fcb64579ec2966e25689c ladspa_sdk_1.12.tgz 71165
diff --git a/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12-r1 b/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12-r1
index 7ee5f9b8c87b..de6e5051a2f3 100644
--- a/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12-r1
+++ b/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12-r1
@@ -1 +1,3 @@
MD5 dbd63dd701d80b152943073c84565c14 ladspa_sdk_1.12.tgz 71165
+RMD160 7967731c28785287691655d9346cf46654f4235b ladspa_sdk_1.12.tgz 71165
+SHA256 66a5be1b0c54aba86dbb24a2e5e83604d0d7a8c0645fcb64579ec2966e25689c ladspa_sdk_1.12.tgz 71165
diff --git a/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12-r2 b/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12-r2
index 7ee5f9b8c87b..de6e5051a2f3 100644
--- a/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12-r2
+++ b/media-libs/ladspa-sdk/files/digest-ladspa-sdk-1.12-r2
@@ -1 +1,3 @@
MD5 dbd63dd701d80b152943073c84565c14 ladspa_sdk_1.12.tgz 71165
+RMD160 7967731c28785287691655d9346cf46654f4235b ladspa_sdk_1.12.tgz 71165
+SHA256 66a5be1b0c54aba86dbb24a2e5e83604d0d7a8c0645fcb64579ec2966e25689c ladspa_sdk_1.12.tgz 71165
diff --git a/media-libs/ladspa-sdk/files/ladspa-sdk-1.12-fbsd.patch b/media-libs/ladspa-sdk/files/ladspa-sdk-1.12-fbsd.patch
new file mode 100644
index 000000000000..8bab0f6efb69
--- /dev/null
+++ b/media-libs/ladspa-sdk/files/ladspa-sdk-1.12-fbsd.patch
@@ -0,0 +1,31 @@
+diff -ur ladspa_sdk.orig/src/applyplugin.c ladspa_sdk/src/applyplugin.c
+--- ladspa_sdk.orig/src/applyplugin.c 2002-05-18 14:01:36 -0300
++++ ladspa_sdk/src/applyplugin.c 2006-10-31 18:25:23 -0300
+@@ -6,7 +6,11 @@
+ /*****************************************************************************/
+
+ #include <dlfcn.h>
++#ifdef __FreeBSD__
++#include <machine/endian.h>
++#else
+ #include <endian.h>
++#endif
+ #include <errno.h>
+ #include <math.h>
+ #include <stdlib.h>
+diff -ur ladspa_sdk.orig/src/makefile ladspa_sdk/src/makefile
+--- ladspa_sdk.orig/src/makefile 2006-10-31 18:23:47 -0300
++++ ladspa_sdk/src/makefile 2006-10-31 18:24:51 -0300
+@@ -15,7 +15,12 @@
+ #
+
+ INCLUDES = -I.
++# FreeBSD doesn't need -ldl
++ifeq ($(shell uname -s), FreeBSD)
++LIBRARIES = -lm
++else
+ LIBRARIES = -ldl -lm
++endif
+ CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
+ CXXFLAGS = $(CFLAGS)
+ PLUGINS = ../plugins/amp.so \
diff --git a/media-libs/ladspa-sdk/ladspa-sdk-1.12-r2.ebuild b/media-libs/ladspa-sdk/ladspa-sdk-1.12-r2.ebuild
index 0c8388d0f8ba..7ef02fc9c2c6 100644
--- a/media-libs/ladspa-sdk/ladspa-sdk-1.12-r2.ebuild
+++ b/media-libs/ladspa-sdk/ladspa-sdk-1.12-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/ladspa-sdk/ladspa-sdk-1.12-r2.ebuild,v 1.16 2006/01/18 00:16:09 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/ladspa-sdk/ladspa-sdk-1.12-r2.ebuild,v 1.17 2006/10/31 22:24:13 the_paya Exp $
inherit eutils
@@ -13,7 +13,7 @@ SRC_URI="http://www.ladspa.org/download/${MY_P}.tgz"
LICENSE="LGPL-2.1"
SLOT="0"
-KEYWORDS="alpha amd64 hppa ppc ppc64 ppc-macos sparc x86"
+KEYWORDS="alpha amd64 hppa ppc ppc-macos ppc64 sparc x86 ~x86-fbsd"
IUSE=""
RDEPEND="virtual/libc"
@@ -24,6 +24,7 @@ S=${WORKDIR}/${MY_PN}/src
src_unpack() {
unpack ${A}
+ epatch ${FILESDIR}/${P}-fbsd.patch
sed -i \
-e "/^CFLAGS/ s:-O3:${CFLAGS}:" \
${S}/makefile || die "sed makefile failed (CFLAGS)"