[proaudio] [1471] patch oscpack to compile with gcc-4.3

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 1471
Author:   gavlee
Date:     2009-06-10 11:51:36 +0200 (Wed, 10 Jun 2009)

Log Message:
-----------
patch oscpack to compile with gcc-4.3

Modified Paths:
--------------
    trunk/overlays/proaudio/media-libs/oscpack/ChangeLog
    trunk/overlays/proaudio/media-libs/oscpack/Manifest

Added Paths:
-----------
    trunk/overlays/proaudio/media-libs/oscpack/files/oscpack-1.0.2-gcc43.patch
    trunk/overlays/proaudio/media-libs/oscpack/oscpack-1.0.2-r2.ebuild


Modified: trunk/overlays/proaudio/media-libs/oscpack/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-libs/oscpack/ChangeLog	2009-05-22 21:25:25 UTC (rev 1470)
+++ trunk/overlays/proaudio/media-libs/oscpack/ChangeLog	2009-06-10 09:51:36 UTC (rev 1471)
@@ -1,7 +1,10 @@
 # ChangeLog for media-libs/oscpack
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  10 Jun 2009; Gavin Pryke <gavinlee303@xxxxxxxxxxxxxx> ChangeLog:
+  +oscpack-1.0.2-r2.ebuild: add patch to compile with gcc-4.3
+
   17 Dec 2007; Thomas Kuther <gimpel@xxxxxxxxxxxxxxxx> ChangeLog:
   added a changelog
 

Modified: trunk/overlays/proaudio/media-libs/oscpack/Manifest
===================================================================
--- trunk/overlays/proaudio/media-libs/oscpack/Manifest	2009-05-22 21:25:25 UTC (rev 1470)
+++ trunk/overlays/proaudio/media-libs/oscpack/Manifest	2009-06-10 09:51:36 UTC (rev 1471)
@@ -1,5 +1,7 @@
+AUX oscpack-1.0.2-gcc43.patch 1851 RMD160 6f85089f6ba8884cf5c3dd6fbbdcdbaf03d86446 SHA1 eea559abdbaf59f284598f49d283cb00b100691f SHA256 52e54416fb662aa38e6af9c8829535290148ca0da39f2f7e8480f85754063185
 DIST oscpack_1_0_2.zip 66582 RMD160 f76e0502ce38c1cd8f667c9e147b1b1a198c4f4a SHA1 b64ff2aa142843d51d25033c3bfaec690eb9eec8 SHA256 9e74d629c739eb83fd7036e49044cf2ada2e115cd4f98b6fdc9e536258617340
 EBUILD oscpack-1.0.2-r1.ebuild 1227 RMD160 fc356f41e8d528fbe080a654bc3123f2c31873c9 SHA1 02b436eddc7bbe2848220bdfd936eea0529037b1 SHA256 0c779789137efe384e51fad118146e98aa2bd0ca26e9c716d92c841496f001c8
+EBUILD oscpack-1.0.2-r2.ebuild 1284 RMD160 f56169b264625d090dd752568703f0ec92065e35 SHA1 6b7062bfb5e1ce951ef27f8a6e2b6f8e6d1c8982 SHA256 b84d7c2fdae921f3989a2349157698bacc63a0e3a90961373976bda1a1ba6603
 EBUILD oscpack-1.0.2.ebuild 1056 RMD160 853f58d31d0dcd5e09a7a3e11bb5c6141942664e SHA1 256a80e4814a1a786adece2123a6b2a8e89c0a34 SHA256 168525375f0ec3d50b0f6f09c88f9fc8abfa330e5988cd62a75812f4d957a71a
-MISC ChangeLog 206 RMD160 b3ec015b0115a1facac3066233b2a384a9a1012a SHA1 ead40092dfdc4deed9cb288db2ca94e99b2fa51b SHA256 e12c93789478d4a08d33ce168e0406b7f8d5b2960427a34d6e12af56005c7862
+MISC ChangeLog 336 RMD160 409358c8776f96371b9f1fccb450d276bf13b9f8 SHA1 53a68f85c936f34e3a65c9018f919be6d1d2e9a5 SHA256 2ce01e4e4be10c5657c5f60289d683743e1e550802393fa7acd76feaf311cf78
 MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89

Added: trunk/overlays/proaudio/media-libs/oscpack/files/oscpack-1.0.2-gcc43.patch
===================================================================
--- trunk/overlays/proaudio/media-libs/oscpack/files/oscpack-1.0.2-gcc43.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-libs/oscpack/files/oscpack-1.0.2-gcc43.patch	2009-06-10 09:51:36 UTC (rev 1471)
@@ -0,0 +1,57 @@
+diff -ru oscpack.old/examples/OscDump.cpp oscpack/examples/OscDump.cpp
+--- oscpack.old/examples/OscDump.cpp	2006-11-20 14:49:40.000000000 +0000
++++ oscpack/examples/OscDump.cpp	2009-04-30 15:10:05.000000000 +0100
+@@ -36,6 +36,8 @@
+ 
+ 
+ #include <iostream>
++#include <cstdlib>
++#include <cstring>
+ 
+ #include "osc/OscReceivedElements.h"
+ #include "osc/OscPrintReceivedElements.h"
+diff -ru oscpack.old/osc/OscPrintReceivedElements.cpp oscpack/osc/OscPrintReceivedElements.cpp
+--- oscpack.old/osc/OscPrintReceivedElements.cpp	2006-11-20 14:49:38.000000000 +0000
++++ oscpack/osc/OscPrintReceivedElements.cpp	2009-04-30 15:07:56.000000000 +0100
+@@ -32,6 +32,8 @@
+ #include <iostream>
+ #include <iomanip>
+ #include <ctime>
++#include <cstdlib>
++#include <cstring>
+ 
+ 
+ namespace osc{
+diff -ru oscpack.old/tests/OscReceiveTest.cpp oscpack/tests/OscReceiveTest.cpp
+--- oscpack.old/tests/OscReceiveTest.cpp	2006-11-20 14:49:38.000000000 +0000
++++ oscpack/tests/OscReceiveTest.cpp	2009-04-30 15:09:15.000000000 +0100
+@@ -31,6 +31,7 @@
+ 
+ #include <string.h>
+ #include <iostream>
++#include <cstdlib>
+ 
+ #include "osc/OscReceivedElements.h"
+ 
+diff -ru oscpack.old/tests/OscSendTests.cpp oscpack/tests/OscSendTests.cpp
+--- oscpack.old/tests/OscSendTests.cpp	2006-11-20 14:49:38.000000000 +0000
++++ oscpack/tests/OscSendTests.cpp	2009-04-30 15:08:32.000000000 +0100
+@@ -31,6 +31,7 @@
+ 
+ #include <iostream>
+ #include <string.h>
++#include <cstdlib>
+ 
+ #include "osc/OscOutboundPacketStream.h"
+ 
+diff -ru oscpack.old/tests/OscUnitTests.cpp oscpack/tests/OscUnitTests.cpp
+--- oscpack.old/tests/OscUnitTests.cpp	2006-11-20 14:49:38.000000000 +0000
++++ oscpack/tests/OscUnitTests.cpp	2009-04-30 14:56:24.000000000 +0100
+@@ -29,6 +29,7 @@
+ */
+ #include "OscUnitTests.h"
+ 
++#include <cstring>
+ #include <iostream>
+ #include <iomanip>
+ 

Added: trunk/overlays/proaudio/media-libs/oscpack/oscpack-1.0.2-r2.ebuild
===================================================================
--- trunk/overlays/proaudio/media-libs/oscpack/oscpack-1.0.2-r2.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-libs/oscpack/oscpack-1.0.2-r2.ebuild	2009-06-10 09:51:36 UTC (rev 1471)
@@ -0,0 +1,57 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+RESTRICT="mirror"
+
+DESCRIPTION="Set of C++ classes for packing and unpacking OSC packets"
+HOMEPAGE="http://www.audiomulch.com/~rossb/code/oscpack";
+
+MY_PV="1_0_2"
+SRC_URI="http://www.audiomulch.com/~rossb/code/oscpack/${PN}_${MY_PV}.zip";
+
+LICENSE="AS-IT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="ppc"
+
+S=${WORKDIR}/${PN}
+
+RDEPEND=""
+
+DEPEND="app-arch/unzip
+	${RDEPEND}"
+
+src_unpack() {
+	unpack ${A}
+	cd "${S}"
+	epatch "${FILESDIR}/${P}-gcc43.patch"
+}
+
+src_compile() {
+	sed -i -e "s:/usr/local:/usr:" -e "s/mkdir bin/mkdir -p bin/g" \
+		"${S}/Makefile" || die "sed failed"
+	if use ppc; then
+	    sed -i -e \
+		"s:ENDIANESS=OSC_HOST_LITTLE_ENDIAN:ENDIANESS=OSC_HOST_BIG_ENDIAN:" \
+		"${S}/Makefile" || die "sed ppc failed"
+	fi
+	# fix a DT_TEXREL warning on x86 and made it to compile on amd64 and
+	# possibely on ppc:
+	sed -i -e "s:-Wall -O3:-Wall -O3 -fPIC:" \
+		"${S}/Makefile" || die "sed clafgs failed"
+
+	emake || die "make failed"
+	emake lib || "make lib failed"
+}
+
+src_install() {
+	dodoc CHANGES LICENSE README TODO
+
+	dolib liboscpack.so.1.0.2
+	insinto /usr/include/oscpack/ip
+	doins ip/*.h
+	insinto /usr/include/oscpack/osc
+	doins osc/*.h
+	}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/