summaryrefslogtreecommitdiff
path: root/audio/mp3blaster
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-01-11 19:20:12 +0000
committerhans <hans@pkgsrc.org>2012-01-11 19:20:12 +0000
commit4848f1580158ab800de2004844d35ad7b606c4b3 (patch)
treea0a4003278e1e74ca78fa5332aa357de3894f146 /audio/mp3blaster
parent7147b14e290e649ca4e29761771e226bfcc5f8dd (diff)
downloadpkgsrc-4848f1580158ab800de2004844d35ad7b606c4b3.tar.gz
Fix build on SunOS. Needs ncurses.
Diffstat (limited to 'audio/mp3blaster')
-rw-r--r--audio/mp3blaster/Makefile8
-rw-r--r--audio/mp3blaster/distinfo4
-rw-r--r--audio/mp3blaster/patches/patch-src_global.cc12
-rw-r--r--audio/mp3blaster/patches/patch-src_main.cc12
4 files changed, 33 insertions, 3 deletions
diff --git a/audio/mp3blaster/Makefile b/audio/mp3blaster/Makefile
index 42b2fb3ed9c..aa7c87333d5 100644
--- a/audio/mp3blaster/Makefile
+++ b/audio/mp3blaster/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2011/03/07 09:34:32 ryoon Exp $
+# $NetBSD: Makefile,v 1.30 2012/01/11 19:20:12 hans Exp $
DISTNAME= mp3blaster-3.2.5
CATEGORIES= audio
@@ -7,6 +7,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mp3blaster/}
MAINTAINER= rxg@NetBSD.org
HOMEPAGE= http://mp3blaster.sourceforge.net/
COMMENT= MP3 console curses-based player
+PKGREVISION= 1
PKG_DESTDIR_SUPPORT= user-destdir
@@ -18,6 +19,9 @@ USE_TOOLS+= gmake
GNU_CONFIGURE= yes
+CPPFLAGS.SunOS+= -Du_int16_t=uint16_t -Du_int32_t=uint32_t
+LIBS.SunOS+= -lsocket -lnsl
+
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
@@ -46,5 +50,5 @@ CONFIGURE_ARGS+= --with-sdl=yes
.endif
.include "../../audio/libvorbis/buildlink3.mk"
-.include "../../mk/curses.buildlink3.mk"
+.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/mp3blaster/distinfo b/audio/mp3blaster/distinfo
index 1a8f79458e8..1515b515688 100644
--- a/audio/mp3blaster/distinfo
+++ b/audio/mp3blaster/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.11 2011/03/07 09:34:32 ryoon Exp $
+$NetBSD: distinfo,v 1.12 2012/01/11 19:20:13 hans Exp $
SHA1 (mp3blaster-3.2.5.tar.gz) = 6a0fc892e0739a409735e85b18089c0e25fcc577
RMD160 (mp3blaster-3.2.5.tar.gz) = 8aca362a6212a93cad26e428480b233766b1888b
Size (mp3blaster-3.2.5.tar.gz) = 329407 bytes
+SHA1 (patch-src_global.cc) = e227d0fe62e2f6e8f7f24280634a59b31f629b24
+SHA1 (patch-src_main.cc) = 2befe04576dcd4e046aa0e155c8fbf130d6bc6e0
diff --git a/audio/mp3blaster/patches/patch-src_global.cc b/audio/mp3blaster/patches/patch-src_global.cc
new file mode 100644
index 00000000000..2f7d254b37c
--- /dev/null
+++ b/audio/mp3blaster/patches/patch-src_global.cc
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_global.cc,v 1.1 2012/01/11 19:20:13 hans Exp $
+
+--- src/global.cc.orig 2009-01-24 16:25:10.000000000 +0100
++++ src/global.cc 2011-12-30 18:09:44.289850163 +0100
+@@ -23,6 +23,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include <ctype.h>
+ #include <sys/types.h>
+ #include <dirent.h>
diff --git a/audio/mp3blaster/patches/patch-src_main.cc b/audio/mp3blaster/patches/patch-src_main.cc
new file mode 100644
index 00000000000..1e214fd632f
--- /dev/null
+++ b/audio/mp3blaster/patches/patch-src_main.cc
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_main.cc,v 1.1 2012/01/11 19:20:13 hans Exp $
+
+--- src/main.cc.orig 2009-01-24 16:25:10.000000000 +0100
++++ src/main.cc 2011-12-30 18:28:22.923387315 +0100
+@@ -35,6 +35,7 @@
+ #include "history.h"
+ #include "mp3blaster.h"
+ #include <string.h>
++#include <strings.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>