summaryrefslogtreecommitdiff
path: root/audio/kid3
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2007-02-07 07:54:45 +0000
committerwiz <wiz@pkgsrc.org>2007-02-07 07:54:45 +0000
commit6dd769e4622a58f558acf94f449903a5919700c6 (patch)
tree54d7ac4f627da96484317b4abb1f52da7063eda5 /audio/kid3
parent1c7c116e8b3f96c314fce63965920ee7395223c2 (diff)
downloadpkgsrc-6dd769e4622a58f558acf94f449903a5919700c6.tar.gz
Fix build on NetBSD-2.1. From Sergey Svishchev in private mail.
Diffstat (limited to 'audio/kid3')
-rw-r--r--audio/kid3/distinfo3
-rw-r--r--audio/kid3/patches/patch-ac23
2 files changed, 25 insertions, 1 deletions
diff --git a/audio/kid3/distinfo b/audio/kid3/distinfo
index f88b631f22e..7643971c59d 100644
--- a/audio/kid3/distinfo
+++ b/audio/kid3/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2007/01/26 03:53:56 markd Exp $
+$NetBSD: distinfo,v 1.4 2007/02/07 07:54:45 wiz Exp $
SHA1 (kid3-0.8.1.tar.gz) = 17d89087c3a21a2963fdd39600d5dac50922bb80
RMD160 (kid3-0.8.1.tar.gz) = 6054aa27b2df3aba7c4f5302c1954241710aaa2b
Size (kid3-0.8.1.tar.gz) = 871390 bytes
SHA1 (patch-ab) = 75955211d667793420a481cfa269dec29bd49221
+SHA1 (patch-ac) = 9db1beeb39a5e08f682a0d16e5d1a9754877419e
diff --git a/audio/kid3/patches/patch-ac b/audio/kid3/patches/patch-ac
new file mode 100644
index 00000000000..f61ae78d1c1
--- /dev/null
+++ b/audio/kid3/patches/patch-ac
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.1 2007/02/07 07:54:45 wiz Exp $
+
+--- kid3/oggfile.cpp.orig 2006-11-04 22:14:53.000000000 +0000
++++ kid3/oggfile.cpp
+@@ -18,6 +18,9 @@
+ #if QT_VERSION >= 0x040000
+ #include <Q3CString>
+ #endif
++#ifdef __NetBSD__
++#include <sys/param.h>
++#endif
+ #include <sys/stat.h>
+ #ifdef WIN32
+ #include <sys/utime.h>
+@@ -607,7 +610,7 @@ bool OggFile::FileInfo::read(const char*
+ bitrate = vi->bitrate_lower;
+ }
+ }
+-#ifdef WIN32
++#if defined(WIN32) || (defined(__NetBSD__) && __NetBSD_Version__ < 299000000)
+ duration = (long)::ov_time_total(&vf, -1);
+ #else
+ duration = ::lrint(::ov_time_total(&vf, -1));