aboutsummaryrefslogtreecommitdiffstats
path: root/audio/HVSC-Update
diff options
context:
space:
mode:
authoranders <anders@FreeBSD.org>2005-02-27 22:22:08 +0800
committeranders <anders@FreeBSD.org>2005-02-27 22:22:08 +0800
commit4060da87d238e76e1d38d7ebf5e429e7383b670b (patch)
tree0f965d11d1608078b40670d059678e972cd496d5 /audio/HVSC-Update
parent39dd44f9779c0849c785616719ac5b9bf70bfe76 (diff)
downloadfreebsd-ports-gnome-4060da87d238e76e1d38d7ebf5e429e7383b670b.tar.gz
freebsd-ports-gnome-4060da87d238e76e1d38d7ebf5e429e7383b670b.tar.zst
freebsd-ports-gnome-4060da87d238e76e1d38d7ebf5e429e7383b670b.zip
Unbreak build for FreeBSD >= 5.x.
Diffstat (limited to 'audio/HVSC-Update')
-rw-r--r--audio/HVSC-Update/Makefile4
-rw-r--r--audio/HVSC-Update/files/patch-src-TextFile.h23
-rw-r--r--audio/HVSC-Update/files/patch-src-include-fformat.h16
3 files changed, 39 insertions, 4 deletions
diff --git a/audio/HVSC-Update/Makefile b/audio/HVSC-Update/Makefile
index 67b9240c217f..c235c9ea58d5 100644
--- a/audio/HVSC-Update/Makefile
+++ b/audio/HVSC-Update/Makefile
@@ -27,10 +27,6 @@ DOCS= HVSC_Update.txt SID_file_format.txt
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 502112
-BROKEN= "Does not compile on FreeBSD >= 5.x"
-.endif
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/Update ${PREFIX}/bin/HVSC-Update
.if !defined(NOPORTDOCS)
diff --git a/audio/HVSC-Update/files/patch-src-TextFile.h b/audio/HVSC-Update/files/patch-src-TextFile.h
new file mode 100644
index 000000000000..2d8fcfc01347
--- /dev/null
+++ b/audio/HVSC-Update/files/patch-src-TextFile.h
@@ -0,0 +1,23 @@
+--- src/TextFile.h.orig Fri Mar 29 19:35:26 2002
++++ src/TextFile.h Sun Feb 27 15:03:16 2005
+@@ -10,12 +10,18 @@
+ #endif
+ #include <ctype.h>
+ #include <fstream.h>
+-#include <iostream.h>
++#include <iostream>
++using namespace std;
+ #include <string.h>
+ #if defined(HAVE_STRSTREA_H)
+ #include <strstrea.h>
+ #else
+-#include <strstream.h>
++#include "strstream"
++
++using std::strstreambuf;
++using std::istrstream;
++using std::ostrstream;
++using std::strstream;
+ #endif
+
+ #include "fformat.h" // strnicmp stuff
diff --git a/audio/HVSC-Update/files/patch-src-include-fformat.h b/audio/HVSC-Update/files/patch-src-include-fformat.h
new file mode 100644
index 000000000000..3d58eb4c530e
--- /dev/null
+++ b/audio/HVSC-Update/files/patch-src-include-fformat.h
@@ -0,0 +1,16 @@
+--- src/include/fformat.h.orig Fri Mar 29 19:35:26 2002
++++ src/include/fformat.h Sun Feb 27 13:52:05 2005
+@@ -13,7 +13,12 @@
+ #if defined(HAVE_STRSTREA_H)
+ #include <strstrea.h>
+ #else
+- #include <strstream.h>
++ #include <strstream>
++
++ using std::strstreambuf;
++ using std::istrstream;
++ using std::ostrstream;
++ using std::strstream;
+ #endif
+
+ #if defined(HAVE_STRCASECMP)