import gmpc 0.13.0
GMPC is a frontend for the mpd (Music Player Daemon). It's focused on being fast and easy to use, while still making optimal use of all the functions in mpd. from Pierre-Yves Ritschard <pyr at spootnik dot org> feedback and ok steven
This commit is contained in:
parent
bc9d8e3785
commit
3058d09634
41
audio/gmpc/Makefile
Normal file
41
audio/gmpc/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2006/10/27 14:11:16 jasper Exp $
|
||||
|
||||
COMMENT= "gnome music player client"
|
||||
|
||||
DISTNAME= gmpc-0.13.0
|
||||
CATEGORIES= audio
|
||||
|
||||
HOMEPAGE= http://cms.qballcow.nl/index.php?page=Gnome_Music_Player_Client
|
||||
|
||||
MAINTAINER= Pierre-Yves Ritschard <pyr@spootnik.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= X11 Xext Xrender c fontconfig freetype m pthread z \
|
||||
atk-1.0 cairo gdk-x11-2.0 gdk_pixbuf-2.0 \
|
||||
glib-2.0 glitz gmodule-2.0 gobject-2.0 gthread-2.0 \
|
||||
gtk-x11-2.0 pango-1.0 pangocairo-1.0 \
|
||||
pangoft2-1.0 png xml2
|
||||
|
||||
MASTER_SITES= http://download.qballcow.nl/programs/gmpc-0.13/
|
||||
|
||||
MODULES= devel/gettext gcc3
|
||||
|
||||
MODGCC3_ARCHES= sparc
|
||||
MODGCC3_LANGS= c
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
|
||||
BUILD_DEPENDS= ::devel/pkgconfig \
|
||||
::textproc/p5-XML-Parser
|
||||
|
||||
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
|
||||
|
||||
LIB_DEPENDS= mpd.>=0::audio/libmpd \
|
||||
glade-2.0::devel/libglade2
|
||||
|
||||
.include <bsd.port.mk>
|
4
audio/gmpc/distinfo
Normal file
4
audio/gmpc/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (gmpc-0.13.0.tar.gz) = dbbb1880feb8b9c2493ece670520299b
|
||||
RMD160 (gmpc-0.13.0.tar.gz) = bcc9444346406d6a22a72e994bd183c6ede7c437
|
||||
SHA1 (gmpc-0.13.0.tar.gz) = 587adeb34786cad639dd426be864fe6be4398db1
|
||||
SIZE (gmpc-0.13.0.tar.gz) = 476926
|
10
audio/gmpc/patches/patch-src-TreeSearchWidget_c
Normal file
10
audio/gmpc/patches/patch-src-TreeSearchWidget_c
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/TreeSearchWidget.c.orig Wed Oct 25 19:25:08 2006
|
||||
+++ src/TreeSearchWidget.c Wed Oct 25 19:25:25 2006
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <gtk/gtksignal.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include <regex.h>
|
||||
+#include <sys/types.h>
|
||||
#include "TreeSearchWidget.h"
|
||||
static void treesearch_class_init (TreeSearchClass *klass);
|
||||
static void treesearch_init (TreeSearch *ts);
|
37
audio/gmpc/patches/patch-src-main_c
Normal file
37
audio/gmpc/patches/patch-src-main_c
Normal file
@ -0,0 +1,37 @@
|
||||
--- src/main.c.orig Wed Oct 25 19:53:00 2006
|
||||
+++ src/main.c Wed Oct 25 19:55:28 2006
|
||||
@@ -379,6 +379,8 @@
|
||||
{
|
||||
MpdData *data = NULL;
|
||||
long long new_playlist_id = mpd_playlist_get_playlist_id(connection);
|
||||
+ char *string;
|
||||
+
|
||||
/*
|
||||
* so I don't have to check all the time
|
||||
*/
|
||||
@@ -387,7 +389,7 @@
|
||||
gchar buffer[1024];
|
||||
debug_printf(DEBUG_INFO, "playlist changed length: %i %i\n",info.playlist_length, mpd_playlist_get_playlist_length(mi));
|
||||
old_length = info.playlist_length;
|
||||
- char *string = cfg_get_single_value_as_string_with_default(config,
|
||||
+ string = cfg_get_single_value_as_string_with_default(config,
|
||||
"playlist","markup", DEFAULT_PLAYLIST_MARKUP);
|
||||
|
||||
data = mpd_playlist_get_changes(mi,info.playlist_id);
|
||||
@@ -804,6 +806,7 @@
|
||||
void error_callback(MpdObj *mi, int error_id, char *error_msg, gpointer data)
|
||||
{
|
||||
int autoconnect = cfg_get_single_value_as_int_with_default(config, "connection","autoconnect", DEFAULT_AUTOCONNECT);
|
||||
+ GtkWidget *dialog;
|
||||
/* if we are not connected we show a reconnect */
|
||||
if(!mpd_check_connected(mi))
|
||||
{
|
||||
@@ -816,7 +819,7 @@
|
||||
gchar *path = gmpc_get_full_glade_path("gmpc.glade");
|
||||
xml_error_window = glade_xml_new(path,"error_dialog",NULL);
|
||||
g_free(path);
|
||||
- GtkWidget *dialog = glade_xml_get_widget(xml_error_window, "error_dialog");
|
||||
+ dialog = glade_xml_get_widget(xml_error_window, "error_dialog");
|
||||
gtk_label_set_markup(GTK_LABEL(glade_xml_get_widget(xml_error_window,"em_label")), str);
|
||||
gtk_widget_show_all(dialog);
|
||||
g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK(error_window_destroy), GINT_TO_POINTER(autoconnect));
|
23
audio/gmpc/patches/patch-src-misc_c
Normal file
23
audio/gmpc/patches/patch-src-misc_c
Normal file
@ -0,0 +1,23 @@
|
||||
--- src/misc.c.orig Wed Oct 25 19:28:10 2006
|
||||
+++ src/misc.c Wed Oct 25 19:29:26 2006
|
||||
@@ -23,16 +23,18 @@
|
||||
|
||||
gchar * format_time(unsigned long seconds)
|
||||
{
|
||||
+
|
||||
+ GString *str;
|
||||
int days = seconds/86400;
|
||||
int houres = (seconds % 86400)/3600;
|
||||
int minutes = (seconds % 3600)/60;
|
||||
char *ret;
|
||||
if(seconds == 0)
|
||||
{
|
||||
- GString *str = g_string_new(NULL);
|
||||
+ str = g_string_new(NULL);
|
||||
return str->str;
|
||||
}
|
||||
- GString *str = g_string_new(" Total time: ");
|
||||
+ str = g_string_new(" Total time: ");
|
||||
if(days != 0)
|
||||
{
|
||||
g_string_append_printf(str, "%i days ", days);
|
20
audio/gmpc/patches/patch-src-player_c
Normal file
20
audio/gmpc/patches/patch-src-player_c
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/player.c.orig Wed Oct 25 19:27:30 2006
|
||||
+++ src/player.c Wed Oct 25 19:27:58 2006
|
||||
@@ -300,6 +300,8 @@
|
||||
|
||||
int update_player()
|
||||
{
|
||||
+ GtkRange *scale;
|
||||
+
|
||||
if(!xml_main_window) return FALSE;
|
||||
if(!mpd_check_connected(connection)) return FALSE;
|
||||
/* things that only need to be updated during playing */
|
||||
@@ -308,7 +310,7 @@
|
||||
int elapsedTime = mpd_status_get_elapsed_song_time(connection);
|
||||
/* update the progress bar */
|
||||
if(!seek){
|
||||
- GtkRange *scale = (GtkRange *)glade_xml_get_widget(xml_main_window, "progress_slider");
|
||||
+ scale = (GtkRange *)glade_xml_get_widget(xml_main_window, "progress_slider");
|
||||
gdouble prog = ((double)elapsedTime/(double)totalTime)*100;
|
||||
gtk_range_set_value(scale, prog);
|
||||
}
|
17
audio/gmpc/patches/patch-src-playlist3_c
Normal file
17
audio/gmpc/patches/patch-src-playlist3_c
Normal file
@ -0,0 +1,17 @@
|
||||
--- src/playlist3.c.orig Wed Oct 25 19:26:07 2006
|
||||
+++ src/playlist3.c Wed Oct 25 19:27:03 2006
|
||||
@@ -105,10 +105,12 @@
|
||||
void pl3_initialize_tree()
|
||||
{
|
||||
int i;
|
||||
+ GtkTreePath *path;
|
||||
+ GtkTreeSelection *sel;
|
||||
if(pl3_xml == NULL) return;
|
||||
|
||||
- GtkTreePath *path = gtk_tree_path_new_from_string("0");
|
||||
- GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(glade_xml_get_widget(pl3_xml, "cat_tree")));
|
||||
+ path = gtk_tree_path_new_from_string("0");
|
||||
+ sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(glade_xml_get_widget(pl3_xml, "cat_tree")));
|
||||
if((old_type&PLUGIN_ID_MARK || old_type&PLUGIN_ID_INTERNALL) != 0)
|
||||
{
|
||||
if(old_type >= 0)
|
3
audio/gmpc/pkg/DESCR
Normal file
3
audio/gmpc/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
||||
GMPC is a frontend for the mpd (Music Player Daemon). It's focused on
|
||||
being fast and easy to use, while still making optimal use of all the
|
||||
functions in mpd.
|
35
audio/gmpc/pkg/PLIST
Normal file
35
audio/gmpc/pkg/PLIST
Normal file
@ -0,0 +1,35 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/10/27 14:11:16 jasper Exp $
|
||||
bin/gmpc
|
||||
include/gmpc/
|
||||
include/gmpc/config1.h
|
||||
include/gmpc/cover-art.h
|
||||
include/gmpc/plugin.h
|
||||
include/gmpc/qthread.h
|
||||
lib/pkgconfig/
|
||||
lib/pkgconfig/gmpc.pc
|
||||
share/applications/
|
||||
share/applications/gmpc.desktop
|
||||
share/gmpc/
|
||||
share/gmpc/add-browser.glade
|
||||
share/gmpc/gmpc-tray.png
|
||||
share/gmpc/gmpc.glade
|
||||
share/gmpc/gmpc.png
|
||||
share/gmpc/icecast.png
|
||||
share/gmpc/media-album.png
|
||||
share/gmpc/media-artist.png
|
||||
share/gmpc/media-audiofile.png
|
||||
share/gmpc/media-next.png
|
||||
share/gmpc/media-pause.png
|
||||
share/gmpc/media-play.png
|
||||
share/gmpc/media-playlist.png
|
||||
share/gmpc/media-prev.png
|
||||
share/gmpc/media-stop.png
|
||||
share/gmpc/media-stream.png
|
||||
share/gmpc/open-location.glade
|
||||
share/gmpc/player-repeat.png
|
||||
share/gmpc/player-shuffle.png
|
||||
share/gmpc/playlist3.glade
|
||||
share/locale/fr/LC_MESSAGES/gmpc.mo
|
||||
share/locale/ru/LC_MESSAGES/gmpc.mo
|
||||
share/pixmaps/
|
||||
share/pixmaps/gmpc.png
|
Loading…
Reference in New Issue
Block a user