summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/tunepimp/Makefile9
-rw-r--r--audio/tunepimp/distinfo4
-rw-r--r--audio/tunepimp/patches/patch-ab14
3 files changed, 20 insertions, 7 deletions
diff --git a/audio/tunepimp/Makefile b/audio/tunepimp/Makefile
index 04ebdef89df..22e9b558809 100644
--- a/audio/tunepimp/Makefile
+++ b/audio/tunepimp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/10/07 16:36:47 tv Exp $
+# $NetBSD: Makefile,v 1.4 2004/11/01 12:47:22 markd Exp $
DISTNAME= libtunepimp-0.3.0
PKGNAME= ${DISTNAME:S/lib//}
@@ -20,6 +20,13 @@ USE_BUILDLINK3= YES
USE_LIBTOOL= YES
USE_LANGUAGES= c c++
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+pre-configure:
+ ${ECHO} "#define HAVE_STATVFS 1" >> ${WRKSRC}/config.h.in
+.endif
+
.include "../../audio/libid3tag/buildlink3.mk"
.include "../../audio/libmad/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
diff --git a/audio/tunepimp/distinfo b/audio/tunepimp/distinfo
index 6472277d822..8fd50d96c85 100644
--- a/audio/tunepimp/distinfo
+++ b/audio/tunepimp/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/08/21 11:17:55 markd Exp $
+$NetBSD: distinfo,v 1.2 2004/11/01 12:47:22 markd Exp $
SHA1 (libtunepimp-0.3.0.tar.gz) = 54c60232f3b06f2316e2b1130eb981352995dfc8
Size (libtunepimp-0.3.0.tar.gz) = 524889 bytes
SHA1 (patch-aa) = 5dc5f48d01b7b1cdc1462f0bf07d0eb917fdb3c7
-SHA1 (patch-ab) = 7c7f5343a3d5bd786679a2f0b99cdd47585df584
+SHA1 (patch-ab) = 1874c3536b1cfa87d5f911a26fb6d9f830189324
diff --git a/audio/tunepimp/patches/patch-ab b/audio/tunepimp/patches/patch-ab
index ed5f4733d9a..aa640a55f8c 100644
--- a/audio/tunepimp/patches/patch-ab
+++ b/audio/tunepimp/patches/patch-ab
@@ -1,12 +1,18 @@
-$NetBSD: patch-ab,v 1.1.1.1 2004/08/21 11:17:55 markd Exp $
+$NetBSD: patch-ab,v 1.2 2004/11/01 12:47:22 markd Exp $
---- lib/write.cpp.orig 2004-08-19 01:38:57.000000000 +1200
+--- lib/write.cpp.orig 2004-03-25 22:12:43.000000000 +1200
+++ lib/write.cpp
-@@ -898,6 +898,11 @@ bool WriteThread::diskSpaceTest(const st
+@@ -896,8 +896,17 @@ bool WriteThread::diskSpaceTest(const st
+ #else
+ //---------------------------------------------------------------------------
++#if defined(__NetBSD__) && (__NetBSD_Version__ >= 200040000) /* NetBSD 2.0D */
++#define HAVE_STATVFS 1
++#endif
++
bool WriteThread::diskSpaceTest(const string &fileName, unsigned long fileSize)
{
-+#if defined(__NetBSD__) && (__NetBSD_Version__ >= 200040000) /* NetBSD 2.0D */
++#if defined(HAVE_STATVFS)
+#define statfs statvfs
+#define f_bsize f_frsize
+#endif