aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authormandree <mandree@FreeBSD.org>2013-03-10 01:22:31 +0800
committermandree <mandree@FreeBSD.org>2013-03-10 01:22:31 +0800
commitda684dbbd6132fc0816036f957b39ac621356ae6 (patch)
treee1d6c5df30d83413df4499689793676291d08e85 /multimedia
parent0679df8ab9d21ace69b89628db0c5356086465a3 (diff)
downloadfreebsd-ports-graphics-da684dbbd6132fc0816036f957b39ac621356ae6.tar.gz
freebsd-ports-graphics-da684dbbd6132fc0816036f957b39ac621356ae6.tar.zst
freebsd-ports-graphics-da684dbbd6132fc0816036f957b39ac621356ae6.zip
Maintainer update to 0.3.0.
Disabling BMP for now, because building it causes pkg-plist failures (directories and files are renamed from gxmms prefix to gxmms-bmp or gxmms_bmp). This was discussed with the submitter on IRC, he will send a new PR to fix BMP. Adding files/patch-src__bmpctrl.c that fixes a compilation issue (non-constant initializer) on NLS-enabled systems. Please forward this to the upstream gxmms maintainers. PR: ports/173751 Submitted by: Chris Petrik (maintainer)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gxmms/Makefile31
-rw-r--r--multimedia/gxmms/distinfo4
-rw-r--r--multimedia/gxmms/files/patch-src-xmmsctrl.c22
-rw-r--r--multimedia/gxmms/files/patch-src__bmpctrl.c11
-rw-r--r--multimedia/gxmms/files/patch-src__interface.c (renamed from multimedia/gxmms/files/patch-src-interface.c)8
-rw-r--r--multimedia/gxmms/files/patch-src__xmmsctrl.c17
-rw-r--r--multimedia/gxmms/pkg-plist2
7 files changed, 62 insertions, 33 deletions
diff --git a/multimedia/gxmms/Makefile b/multimedia/gxmms/Makefile
index f6d6abb2172..b99a6c79053 100644
--- a/multimedia/gxmms/Makefile
+++ b/multimedia/gxmms/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= gxmms
-PORTVERSION= 0.2.1
-PORTREVISION= 14
+PORTVERSION= 0.3.0
CATEGORIES= multimedia gnome
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -11,9 +10,6 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= c.petrik.sosa@gmail.com
COMMENT= Simple GNOME panel applet for controlling XMMS
-BUILD_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms
-RUN_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms
-
USE_GMAKE= yes
USE_GNOME= gnomehack gnomepanel gnomeprefix intlhack libgnomeui
USE_GETTEXT= yes
@@ -22,4 +18,29 @@ CONFIGURE_ENV= LIBS="`pkg-config --libs libgnomeui-2.0`"
CPPFLAGS+= -I${LOCALBASE}/include `pkg-config --cflags libgnomeui-2.0`
LDFLAGS+= -L${LOCALBASE}/lib
+OPTIONS_SINGLE= FRONTEND
+OPTIONS_SINGLE_FRONTEND= XMMS # BMP
+OPTIONS_DEFAULT= XMMS
+
+XMMS_DESC= Use xmms as frontend
+BMP_DESC= Use BMP as frontend
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MXMMS}
+CONFIGURE_ARGS+= --with-xmms
+BUILD_DEPENDS+= xmms:${PORTSDIR}/multimedia/xmms
+RUN_DEPENDS+= xmms:${PORTSDIR}/multimedia/xmms
+.else
+CONFIGURE_ARGS+=--disable-xmms
+.endif
+
+.if ${PORT_OPTIONS:MBMP}
+CONFIGURE_ARGS+=--with-bmp
+BUILD_DEPENDS+= beep-media-player:${PORTSDIR}/multimedia/beep-media-player
+RUN_DEPENDS+= beep-media-player:${PORTSDIR}/multimedia/beep-media-player
+.else
+CONFIGURE_ARGS+=--disable-bmp
+.endif
+
.include <bsd.port.mk>
diff --git a/multimedia/gxmms/distinfo b/multimedia/gxmms/distinfo
index 8aa60a4e2f9..e6928b0b2c0 100644
--- a/multimedia/gxmms/distinfo
+++ b/multimedia/gxmms/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gxmms-0.2.1.tar.gz) = bf3cc3bd5b42935db7589434a4777bc6125de3f49f8885bb086e9ebd9e85fb26
-SIZE (gxmms-0.2.1.tar.gz) = 129794
+SHA256 (gxmms-0.3.0.tar.gz) = a6515796cca60cc01e52af7acf42875e6dda0132737abe2d5525f1f6d9dc2606
+SIZE (gxmms-0.3.0.tar.gz) = 148662
diff --git a/multimedia/gxmms/files/patch-src-xmmsctrl.c b/multimedia/gxmms/files/patch-src-xmmsctrl.c
deleted file mode 100644
index cdde4c8a32f..00000000000
--- a/multimedia/gxmms/files/patch-src-xmmsctrl.c
+++ /dev/null
@@ -1,22 +0,0 @@
---- src/xmmsctrl.c.orig 2004-09-03 00:19:54.000000000 +0200
-+++ src/xmmsctrl.c 2008-04-24 15:36:57.000000000 +0200
-@@ -45,16 +45,17 @@
- xmms_start(XMMSData *xmms)
- {
- static gchar *exec_cmd = "xmms";
-- static gchar *msg_error = _("Sorry, unable to launch XMMS.");
-+ gchar *msg_error = _("Sorry, unable to launch XMMS.");
- gint timer;
- time_t lt;
-+ gchar *exec_this;
-
- if (xmms_remote_is_running(xmms->session))
- {
- return;
- }
-
-- gchar *exec_this = g_strdup_printf("%s &", exec_cmd);
-+ exec_this = g_strdup_printf("%s &", exec_cmd);
-
- if (system(exec_this))
- {
diff --git a/multimedia/gxmms/files/patch-src__bmpctrl.c b/multimedia/gxmms/files/patch-src__bmpctrl.c
new file mode 100644
index 00000000000..37d23c1f6ab
--- /dev/null
+++ b/multimedia/gxmms/files/patch-src__bmpctrl.c
@@ -0,0 +1,11 @@
+--- ./src/bmpctrl.c.orig 2004-12-30 01:24:11.000000000 +0100
++++ ./src/bmpctrl.c 2013-03-09 11:13:54.000000000 +0100
+@@ -44,7 +44,7 @@
+ void
+ player_start(XMMSData *xmms)
+ {
+- static gchar *msg_error = _("Unable to launch Beep Media Player.");
++ gchar *msg_error = _("Unable to launch Beep Media Player.");
+ static gchar *exec_cmd = "beep-media-player &";
+ gint timer;
+ time_t lt;
diff --git a/multimedia/gxmms/files/patch-src-interface.c b/multimedia/gxmms/files/patch-src__interface.c
index 4c12cd24a00..e02047e8e60 100644
--- a/multimedia/gxmms/files/patch-src-interface.c
+++ b/multimedia/gxmms/files/patch-src__interface.c
@@ -1,6 +1,6 @@
---- src/interface.c.orig 2008-04-24 15:30:43.000000000 +0200
-+++ src/interface.c 2008-04-24 15:31:31.000000000 +0200
-@@ -224,7 +224,7 @@
+--- ./src/interface.c.orig 2005-01-05 01:22:54.000000000 +0100
++++ ./src/interface.c 2013-03-09 11:13:27.000000000 +0100
+@@ -227,7 +227,7 @@
gdouble width;
GtkWidget *progress;
BonoboUIComponent *popup;
@@ -8,4 +8,4 @@
+ gchar info[256] = "No track";
progress = xmms->track_control.progress;
- if (!xmms_remote_is_running(xmms->session))
+ if (!player_is_running(xmms))
diff --git a/multimedia/gxmms/files/patch-src__xmmsctrl.c b/multimedia/gxmms/files/patch-src__xmmsctrl.c
new file mode 100644
index 00000000000..af891d74255
--- /dev/null
+++ b/multimedia/gxmms/files/patch-src__xmmsctrl.c
@@ -0,0 +1,17 @@
+--- ./src/xmmsctrl.c.orig 2005-01-05 01:22:54.000000000 +0100
++++ ./src/xmmsctrl.c 2013-03-09 11:13:27.000000000 +0100
+@@ -44,11 +44,11 @@
+ void
+ player_start(XMMSData *xmms)
+ {
+- static gchar *msg_error = _("Unable to launch XMMS.");
+- static gchar *exec_cmd = "xmms &";
++ gchar *msg_error = _("Unable to launch XMMS.");
++ gchar *exec_cmd = "xmms &";
+ gint timer;
+ time_t lt;
+-
++
+ if (player_is_running(xmms))
+ {
+ return;
diff --git a/multimedia/gxmms/pkg-plist b/multimedia/gxmms/pkg-plist
index c958bcb411d..76f8c75046f 100644
--- a/multimedia/gxmms/pkg-plist
+++ b/multimedia/gxmms/pkg-plist
@@ -7,7 +7,9 @@ share/gxmms/gxmms_next.png
share/gxmms/gxmms_play_pause.png
share/gxmms/gxmms_prev.png
share/gxmms/gxmms_stop.png
+share/gxmms/gxmms_mini.png
share/pixmaps/gxmms_mini.png
+share/pixmaps/gxmms.png
share/locale/ca/LC_MESSAGES/gxmms.mo
share/locale/es/LC_MESSAGES/gxmms.mo
share/locale/fr/LC_MESSAGES/gxmms.mo