Date: Fri, 3 Apr 2009 03:00:13 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/133310: Update port: audio/tse3 Message-ID: <20090403030013.11ddc00e.tkato432@yahoo.com> Resent-Message-ID: <200904021810.n32IA2hL094373@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 133310 >Category: ports >Synopsis: Update port: audio/tse3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 02 18:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 7.1-RELEASE-p4 i386 >Organization: >Environment: >Description: - Fix build with GCC 4.x New file: files/patch-src__examples__recording__recording.cpp files/patch-src__tse3__MidiFile.cpp files/patch-src__tse3__Serializable.h files/patch-src__tse3__TSE2MDL.cpp files/patch-src__tse3__cmd__Phrase.h files/patch-src__tse3__file__MidiFilter.cpp files/patch-src__tse3__file__XML.cpp files/patch-src__tse3__file__XML.h files/patch-src__tse3play__tse3play.cpp Remove file: files/patch-size_t >How-To-Repeat: >Fix: diff -urN /usr/ports/audio/tse3/Makefile audio/tse3/Makefile --- /usr/ports/audio/tse3/Makefile 2008-08-21 18:48:28.000000000 +0900 +++ audio/tse3/Makefile 2009-04-02 13:17:14.000000000 +0900 @@ -8,8 +8,7 @@ PORTVERSION= 0.3.1 PORTREVISION= 1 CATEGORIES= audio -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= A MIDI library @@ -25,38 +24,12 @@ .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - .if defined(WITH_ARTS) LIB_DEPENDS+= artsmidi:${PORTSDIR}/multimedia/kdemultimedia3 .else CONFIGURE_ARGS+= --without-aRts .endif -pre-everything:: - @${ECHO_MSG} - @${ECHO_MSG} -n "checking for SNDCTL_SEQ_GETTIME in sys/soundcard.h... " - @if ${GREP} -q SNDCTL_SEQ_GETTIME /usr/include/sys/soundcard.h; then\ - ${ECHO_MSG} "yes";\ - ${ECHO_MSG};\ - else\ - ${ECHO_MSG} "no";\ - ${ECHO_MSG};\ - ${ECHO_MSG} "********************************************************************************";\ - ${ECHO_MSG} "* This port requires: *";\ - ${ECHO_MSG} "* *";\ - ${ECHO_MSG} "* FreeBSD-CURRENT newer than Nov 22 03:27:09 2003 UTC (or FreeBSD 5.3-Release) *";\ - ${ECHO_MSG} "* *";\ - ${ECHO_MSG} "* OR *";\ - ${ECHO_MSG} "* *";\ - ${ECHO_MSG} "* FreeBSD-STABLE newer than Jul 20 13:49:30 2004 UTC (or FreeBSD 4.11-Release) *";\ - ${ECHO_MSG} "********************************************************************************";\ - ${ECHO_MSG};\ - ${ECHO_MSG} "Aborting."; exit 1;\ - fi - post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} diff -urN /usr/ports/audio/tse3/files/patch-OSS.cpp audio/tse3/files/patch-OSS.cpp --- /usr/ports/audio/tse3/files/patch-OSS.cpp 2004-07-27 01:03:11.000000000 +0900 +++ audio/tse3/files/patch-OSS.cpp 2009-04-02 21:20:55.000000000 +0900 @@ -1,6 +1,15 @@ -diff -r -c tse3-0.2.7.old/src/tse3/plt/OSS.cpp tse3-0.2.7/src/tse3/plt/OSS.cpp -*** src/tse3/plt/OSS.cpp.orig Tue Oct 22 09:29:29 2002 ---- src/tse3/plt/OSS.cpp Wed Nov 12 16:13:39 2003 +*** src/tse3/plt/OSS.cpp.orig 2005-07-25 20:22:56.000000000 +0900 +--- src/tse3/plt/OSS.cpp 2009-04-02 21:20:35.000000000 +0900 +*************** +*** 25,30 **** +--- 25,31 ---- + #include <fcntl.h> + #include <stdarg.h> + #include <sys/types.h> ++ #include <cstring> + + // These #includes are linux specific and I need to do some autoconf + // magic to work out how to conditionally include them *************** *** 1484,1494 **** #ifdef TSE3_WITH_OSS @@ -14,7 +23,7 @@ seqbuf_dump(); #endif } ---- 1484,1495 ---- +--- 1485,1496 ---- #ifdef TSE3_WITH_OSS // Happily, if you switch -pedantic on in gcc these macros will always // throw up warnings. Marvel at the beauty of awe_voice.h for reasons why. @@ -36,7 +45,7 @@ rate = 0; ioctl(seqfd, SNDCTL_SEQ_CTRLRATE, &rate); if (rate == -1 || rate <= 0) rate = 100; ---- 1997,2004 ---- +--- 1998,2005 ---- // there is no soundcard throw TSE3::MidiSchedulerError(TSE3::MidiSchedulerCreateErr); } @@ -47,7 +56,7 @@ if (rate == -1 || rate <= 0) rate = 100; *************** *** 2044,2049 **** ---- 2046,2059 ---- +--- 2047,2060 ---- } std::cout << ")\n"; } @@ -64,7 +73,7 @@ { *************** *** 2100,2105 **** ---- 2110,2116 ---- +--- 2111,2117 ---- } } @@ -72,4 +81,3 @@ // Now let the public API know about these devices for (unsigned int n = 0; n < nodevices; ++n) { -Only in tse3-0.2.7/src/tse3/plt: OSS.cpp.orig diff -urN /usr/ports/audio/tse3/files/patch-size_t audio/tse3/files/patch-size_t --- /usr/ports/audio/tse3/files/patch-size_t 2005-09-12 09:58:38.000000000 +0900 +++ audio/tse3/files/patch-size_t 1970-01-01 09:00:00.000000000 +0900 @@ -1,27 +0,0 @@ ---- src/tse3/file/XML.h Tue Aug 23 08:37:53 2005 -+++ src/tse3/file/XML.h Sun Sep 11 20:29:45 2005 -@@ -154,5 +154,5 @@ - void element(const std::string &name, const char *value); - void element(const std::string &name, int value); -- void element(const std::string &name, unsigned int value); -+ void element(const std::string &name, size_t value); - void element(const std::string &name, bool value); - ---- src/tse3/file/XML.cpp Tue Aug 23 08:32:53 2005 -+++ src/tse3/file/XML.cpp Sun Sep 11 20:29:22 2005 -@@ -111,5 +111,5 @@ - - --void TSE3::File::XmlFileWriter::element(const std::string &name, unsigned int value) -+void TSE3::File::XmlFileWriter::element(const std::string &name, size_t value) - { - indent(out); ---- src/tse3/file/MidiFilter.cpp Tue Aug 23 08:32:31 2005 -+++ src/tse3/file/MidiFilter.cpp Sun Sep 11 20:33:13 2005 -@@ -11,5 +11,5 @@ - - writer.element("Status", mf.status()); -- unsigned int c_filter = 0, p_filter = 0; -+ size_t c_filter = 0, p_filter = 0; - for (int n = 0; n < 16; n++) if (mf.channelFilter(n)) c_filter |= (1<<n); - writer.element("ChannelFilter", c_filter); diff -urN /usr/ports/audio/tse3/files/patch-src__examples__recording__recording.cpp audio/tse3/files/patch-src__examples__recording__recording.cpp --- /usr/ports/audio/tse3/files/patch-src__examples__recording__recording.cpp 1970-01-01 09:00:00.000000000 +0900 +++ audio/tse3/files/patch-src__examples__recording__recording.cpp 2009-04-02 13:23:55.000000000 +0900 @@ -0,0 +1,10 @@ +--- src/examples/recording/recording.cpp.orig 2005-07-25 20:22:31.000000000 +0900 ++++ src/examples/recording/recording.cpp 2009-04-02 13:23:23.000000000 +0900 +@@ -27,6 +27,7 @@ + **************************************************************/ + + #include <iostream> ++#include <cstdlib> + + // Used in step 1 + #include "tse3/Metronome.h" diff -urN /usr/ports/audio/tse3/files/patch-src__tse3__MidiFile.cpp audio/tse3/files/patch-src__tse3__MidiFile.cpp --- /usr/ports/audio/tse3/files/patch-src__tse3__MidiFile.cpp 1970-01-01 09:00:00.000000000 +0900 +++ audio/tse3/files/patch-src__tse3__MidiFile.cpp 2009-04-02 13:04:13.000000000 +0900 @@ -0,0 +1,10 @@ +--- src/tse3/MidiFile.cpp.orig 2005-07-25 20:23:00.000000000 +0900 ++++ src/tse3/MidiFile.cpp 2009-04-02 13:01:31.000000000 +0900 +@@ -32,6 +32,7 @@ + #include <string> + #include <queue> + #include <math.h> ++#include <cstring> + + using namespace TSE3; + diff -urN /usr/ports/audio/tse3/files/patch-src__tse3__Serializable.h audio/tse3/files/patch-src__tse3__Serializable.h --- /usr/ports/audio/tse3/files/patch-src__tse3__Serializable.h 1970-01-01 09:00:00.000000000 +0900 +++ audio/tse3/files/patch-src__tse3__Serializable.h 2009-04-02 13:04:52.000000000 +0900 @@ -0,0 +1,10 @@ +--- src/tse3/Serializable.h.orig 2005-07-25 20:23:00.000000000 +0900 ++++ src/tse3/Serializable.h 2009-04-02 13:01:31.000000000 +0900 +@@ -20,6 +20,7 @@ + #include <iosfwd> + #include <iomanip> + #include <cstddef> ++#include <iostream> + + namespace TSE3 + { diff -urN /usr/ports/audio/tse3/files/patch-src__tse3__TSE2MDL.cpp audio/tse3/files/patch-src__tse3__TSE2MDL.cpp --- /usr/ports/audio/tse3/files/patch-src__tse3__TSE2MDL.cpp 1970-01-01 09:00:00.000000000 +0900 +++ audio/tse3/files/patch-src__tse3__TSE2MDL.cpp 2009-04-02 13:05:41.000000000 +0900 @@ -0,0 +1,10 @@ +--- src/tse3/TSE2MDL.cpp.orig 2005-07-25 20:23:00.000000000 +0900 ++++ src/tse3/TSE2MDL.cpp 2009-04-02 13:01:31.000000000 +0900 +@@ -38,6 +38,7 @@ + #include "tse3/Progress.h" + + #include <fstream> ++#include <cstring> + + using namespace TSE3; + diff -urN /usr/ports/audio/tse3/files/patch-src__tse3__cmd__Phrase.h audio/tse3/files/patch-src__tse3__cmd__Phrase.h --- /usr/ports/audio/tse3/files/patch-src__tse3__cmd__Phrase.h 1970-01-01 09:00:00.000000000 +0900 +++ audio/tse3/files/patch-src__tse3__cmd__Phrase.h 2009-04-02 13:06:35.000000000 +0900 @@ -0,0 +1,10 @@ +--- src/tse3/cmd/Phrase.h.orig 2005-07-25 20:22:38.000000000 +0900 ++++ src/tse3/cmd/Phrase.h 2009-04-02 13:01:31.000000000 +0900 +@@ -29,6 +29,7 @@ + class Phrase; + class Song; + class Part; ++ class PhraseEdit; + + namespace Cmd + { diff -urN /usr/ports/audio/tse3/files/patch-src__tse3__file__MidiFilter.cpp audio/tse3/files/patch-src__tse3__file__MidiFilter.cpp --- /usr/ports/audio/tse3/files/patch-src__tse3__file__MidiFilter.cpp 1970-01-01 09:00:00.000000000 +0900 +++ audio/tse3/files/patch-src__tse3__file__MidiFilter.cpp 2009-04-02 13:12:33.000000000 +0900 @@ -0,0 +1,9 @@ +--- src/tse3/file/MidiFilter.cpp Tue Aug 23 08:32:31 2005 ++++ src/tse3/file/MidiFilter.cpp Sun Sep 11 20:33:13 2005 +@@ -11,5 +11,5 @@ + + writer.element("Status", mf.status()); +- unsigned int c_filter = 0, p_filter = 0; ++ size_t c_filter = 0, p_filter = 0; + for (int n = 0; n < 16; n++) if (mf.channelFilter(n)) c_filter |= (1<<n); + writer.element("ChannelFilter", c_filter); diff -urN /usr/ports/audio/tse3/files/patch-src__tse3__file__XML.cpp audio/tse3/files/patch-src__tse3__file__XML.cpp --- /usr/ports/audio/tse3/files/patch-src__tse3__file__XML.cpp 1970-01-01 09:00:00.000000000 +0900 +++ audio/tse3/files/patch-src__tse3__file__XML.cpp 2009-04-02 13:11:51.000000000 +0900 @@ -0,0 +1,9 @@ +--- src/tse3/file/XML.cpp Tue Aug 23 08:32:53 2005 ++++ src/tse3/file/XML.cpp Sun Sep 11 20:29:22 2005 +@@ -111,5 +111,5 @@ + + +-void TSE3::File::XmlFileWriter::element(const std::string &name, unsigned int value) ++void TSE3::File::XmlFileWriter::element(const std::string &name, size_t value) + { + indent(out); diff -urN /usr/ports/audio/tse3/files/patch-src__tse3__file__XML.h audio/tse3/files/patch-src__tse3__file__XML.h --- /usr/ports/audio/tse3/files/patch-src__tse3__file__XML.h 1970-01-01 09:00:00.000000000 +0900 +++ audio/tse3/files/patch-src__tse3__file__XML.h 2009-04-02 13:10:58.000000000 +0900 @@ -0,0 +1,9 @@ +--- src/tse3/file/XML.h Tue Aug 23 08:37:53 2005 ++++ src/tse3/file/XML.h Sun Sep 11 20:29:45 2005 +@@ -154,5 +154,5 @@ + void element(const std::string &name, const char *value); + void element(const std::string &name, int value); +- void element(const std::string &name, unsigned int value); ++ void element(const std::string &name, size_t value); + void element(const std::string &name, bool value); + diff -urN /usr/ports/audio/tse3/files/patch-src__tse3play__tse3play.cpp audio/tse3/files/patch-src__tse3play__tse3play.cpp --- /usr/ports/audio/tse3/files/patch-src__tse3play__tse3play.cpp 1970-01-01 09:00:00.000000000 +0900 +++ audio/tse3/files/patch-src__tse3play__tse3play.cpp 2009-04-02 13:08:45.000000000 +0900 @@ -0,0 +1,10 @@ +--- src/tse3play/tse3play.cpp.orig 2005-08-23 21:58:35.000000000 +0900 ++++ src/tse3play/tse3play.cpp 2009-04-02 13:01:31.000000000 +0900 +@@ -32,6 +32,7 @@ + #include "tse3/Error.h" + #include "tse3/Metronome.h" + #include <fstream> ++#include <cstdlib> + + #ifdef HAVE_CONFIG_H + #include "config.h" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090403030013.11ddc00e.tkato432>