aboutsummaryrefslogtreecommitdiff
path: root/audio/gnomoradio
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-12-10 22:47:28 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-12-10 22:47:28 +0000
commit25c606a18dd9cf59f6dd6335a88fb3d818fdf67f (patch)
tree488fe3b7698cb92a97482b8d4bfcccfdba078c5c /audio/gnomoradio
parent575b87ed278e9ae7fcd46a138c5c5fae5acfe0a9 (diff)
downloadports-25c606a18dd9cf59f6dd6335a88fb3d818fdf67f.tar.gz
ports-25c606a18dd9cf59f6dd6335a88fb3d818fdf67f.zip
Notes
Diffstat (limited to 'audio/gnomoradio')
-rw-r--r--audio/gnomoradio/Makefile14
-rw-r--r--audio/gnomoradio/files/patch-gnomoradio_browser-link.cc11
-rw-r--r--audio/gnomoradio/files/patch-roboradio-audio_prober.cc58
3 files changed, 74 insertions, 9 deletions
diff --git a/audio/gnomoradio/Makefile b/audio/gnomoradio/Makefile
index 288c3e451828..f0703016db40 100644
--- a/audio/gnomoradio/Makefile
+++ b/audio/gnomoradio/Makefile
@@ -12,7 +12,7 @@ CATEGORIES= audio net
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= gahr@gahr.ch
COMMENT= A program for finding and playing free music from the Internet
LIB_DEPENDS= sigc-2.0:${PORTSDIR}/devel/libsigc++20 \
@@ -29,17 +29,13 @@ USE_AUTOTOOLS= libtool:15
USE_LDCONFIG= yes
LIBTOOLFLAGS= --tag=CXX
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Broken with gcc 4.2
-.endif
+ LDFLAGS="-L${LOCALBASE}/lib"
post-patch:
@${REINPLACE_CMD} -e 's|CCLD = $$(CC)|CCLD = $$(CXX)|; \
s|-lpthread|${PTHREAD_LIBS}|' \
${WRKSRC}/roboradio/mp3/Makefile.in
+ @${REINPLACE_CMD} -e 's|static char|static const char|' \
+ ${WRKSRC}/gnomoradio/*.xpm
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/gnomoradio/files/patch-gnomoradio_browser-link.cc b/audio/gnomoradio/files/patch-gnomoradio_browser-link.cc
new file mode 100644
index 000000000000..978bdccea94e
--- /dev/null
+++ b/audio/gnomoradio/files/patch-gnomoradio_browser-link.cc
@@ -0,0 +1,11 @@
+--- gnomoradio/browser-link.cc.orig 2007-12-06 15:46:11.000000000 +0100
++++ gnomoradio/browser-link.cc 2007-12-06 15:48:02.000000000 +0100
+@@ -32,7 +32,7 @@
+ {
+ gchar *my_url = g_strdup(Glib::locale_from_utf8(url).c_str());
+ if (fork() == 0) {
+- char *const argv[] = {"gnome-moz-remote", "--newwin", my_url, 0};
++ char *const argv[] = {(char *)"gnome-moz-remote", (char *)"--newwin", my_url, 0};
+ execvp(argv[0], argv);
+
+ // if we made it here something went wrong
diff --git a/audio/gnomoradio/files/patch-roboradio-audio_prober.cc b/audio/gnomoradio/files/patch-roboradio-audio_prober.cc
new file mode 100644
index 000000000000..d03d1e8c686b
--- /dev/null
+++ b/audio/gnomoradio/files/patch-roboradio-audio_prober.cc
@@ -0,0 +1,58 @@
+--- roboradio/audio/prober.cc.orig 2007-12-06 15:39:58.000000000 +0100
++++ roboradio/audio/prober.cc 2007-12-06 15:40:19.000000000 +0100
+@@ -21,6 +21,30 @@
+ #include "../mp3/esd-audio.h"
+ }
+
++namespace Roboradio
++{
++ namespace Audio
++ {
++ gboolean probe (gpointer s)
++ {
++ Prober *sng = static_cast<Prober*>(s);
++ if (esdout_playing()) {
++ int pos = sng->get_position();
++ if (pos >= 0)
++ sng->signal_position_changed(pos);
++ return true;
++ } else if (sng->get_position() >= 0) {
++ return true;
++ } else {
++ sng->stop();
++ sng->signal_done();
++ sng->activated = false;
++ return false;
++ }
++ }
++ }
++}
++
+ Roboradio::Audio::Prober::Prober ()
+ : activated(false)
+ {
+@@ -31,24 +55,6 @@
+ stop_prober();
+ }
+
+-gboolean Roboradio::Audio::probe (gpointer s)
+-{
+- Prober *sng = static_cast<Prober*>(s);
+- if (esdout_playing()) {
+- int pos = sng->get_position();
+- if (pos >= 0)
+- sng->signal_position_changed(pos);
+- return true;
+- } else if (sng->get_position() >= 0) {
+- return true;
+- } else {
+- sng->stop();
+- sng->signal_done();
+- sng->activated = false;
+- return false;
+- }
+-}
+-
+ void Roboradio::Audio::Prober::start_prober ()
+ {
+ if (activated)