diff options
author | pav <pav@FreeBSD.org> | 2003-12-26 03:18:00 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2003-12-26 03:18:00 +0800 |
commit | e7608955e81180965c708d377d48a03604d37060 (patch) | |
tree | f9bc4ea550b87c4d739edf5c2c52d41a428e6367 /multimedia | |
parent | 473ebd4f2328fd0fe86ab6864715b3afd2b38bfd (diff) | |
download | freebsd-ports-gnome-e7608955e81180965c708d377d48a03604d37060.tar.gz freebsd-ports-gnome-e7608955e81180965c708d377d48a03604d37060.tar.zst freebsd-ports-gnome-e7608955e81180965c708d377d48a03604d37060.zip |
- Fix build of vorbis plugin on 4.x
- Add missed files and directories to plist
- Bump portrevision
PR: ports/59628, ports/60538
Submitted by: Simon Barner <barner@in.tum.de>, Sergey Akifyev <asa@gascom.ru>
Diffstat (limited to 'multimedia')
4 files changed, 98 insertions, 1 deletions
diff --git a/multimedia/beep-media-player/Makefile b/multimedia/beep-media-player/Makefile index b6f3e92b2097..11b71dce910c 100644 --- a/multimedia/beep-media-player/Makefile +++ b/multimedia/beep-media-player/Makefile @@ -7,7 +7,7 @@ PORTNAME= beep-media-player PORTVERSION= 1.0.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= multimedia audio MASTER_SITES= http://linux-media.net/beep/downloads/ DISTNAME= ${PORTNAME}-${PORTVERSION}-pre5 diff --git a/multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c b/multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c new file mode 100644 index 000000000000..5865194255da --- /dev/null +++ b/multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c @@ -0,0 +1,75 @@ +--- Input/vorbis/fileinfo.c.orig Wed Dec 24 09:02:52 2003 ++++ Input/vorbis/fileinfo.c Wed Dec 24 09:07:28 2003 +@@ -498,6 +498,8 @@ + + static GtkWidget *filename_entry, *tag_frame; + ++ struct stat mstat; ++ + g_free(vte.filename); + vte.filename = g_strdup(fn); + +@@ -505,6 +507,13 @@ + { + GtkWidget *hbox, *label, *filename_hbox, *vbox, *left_vbox; + GtkWidget *table, *bbox, *cancel_button; ++ GtkWidget * pixmapwid; ++ GdkPixbuf * pixbuf; ++ PangoAttrList *attrs; ++ PangoAttribute *attr; ++ GtkWidget * boxx; ++ GtkImage * img; ++ GtkWidget * test_table; + + window = gtk_window_new(GTK_WINDOW_TOPLEVEL); + gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, FALSE); +@@ -519,14 +528,11 @@ + filename_hbox = gtk_hbox_new(FALSE, 5); + gtk_box_pack_start(GTK_BOX(vbox), filename_hbox, FALSE, TRUE, 0); + +- GtkWidget * pixmapwid; +- GdkPixbuf * pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)gnome_mime_audio_ogg_xpm); ++ pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)gnome_mime_audio_ogg_xpm); + pixmapwid = gtk_image_new_from_pixbuf(pixbuf); + gtk_misc_set_alignment(GTK_MISC(pixmapwid), 0, 0); + gtk_box_pack_start(GTK_BOX(filename_hbox), pixmapwid, FALSE, FALSE, 0); + +- PangoAttrList *attrs; +- PangoAttribute *attr; + + attrs = pango_attr_list_new (); + +@@ -728,7 +734,6 @@ + GTK_FILL | GTK_EXPAND | GTK_SHRINK, 0, 5); + #endif + +- GtkWidget * boxx; + boxx = gtk_hbutton_box_new(); + gtk_hbutton_box_set_layout_default(GTK_BUTTONBOX_SPREAD); + +@@ -746,7 +751,7 @@ + gtk_table_attach(table,boxx,0,5,6,7,GTK_FILL,0,0,8); + + rg_show_button = gtk_toggle_button_new(); +- GtkImage * img = gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD, GTK_ICON_SIZE_MENU); ++ img = gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD, GTK_ICON_SIZE_MENU); + gtk_container_add(rg_show_button,img); + g_signal_connect(G_OBJECT(rg_show_button), "toggled", + G_CALLBACK(rg_show_cb), NULL); +@@ -836,7 +841,7 @@ + gtk_box_set_spacing(GTK_BOX(info_box), 0); + + // FIXME: Obvious... +- GtkWidget * test_table = gtk_table_new(2, 10, FALSE); ++ test_table = gtk_table_new(2, 10, FALSE); + gtk_container_set_border_width(GTK_CONTAINER(test_table), 0); + gtk_container_add(GTK_CONTAINER(info_box), test_table); + +@@ -1068,7 +1073,6 @@ + gtk_window_set_title(GTK_WINDOW(window), tmp); + // rg_show_cb(rg_show_button, NULL); + +- struct stat mstat; + stat(fn,&mstat); + gtk_widget_set_sensitive(tag_frame, ((mstat.st_mode & S_IWRITE) == S_IWRITE ) ); + diff --git a/multimedia/beep-media-player/files/patch-Input::vorbis::vorbis.c b/multimedia/beep-media-player/files/patch-Input::vorbis::vorbis.c new file mode 100644 index 000000000000..904444d0ee73 --- /dev/null +++ b/multimedia/beep-media-player/files/patch-Input::vorbis::vorbis.c @@ -0,0 +1,18 @@ +--- Input/vorbis/vorbis.c.orig Wed Dec 24 09:00:39 2003 ++++ Input/vorbis/vorbis.c Wed Dec 24 09:00:52 2003 +@@ -134,6 +134,7 @@ + FILE *stream; + OggVorbis_File vfile; /* avoid thread interaction */ + char *ext; ++ gint result; + + + /* is this our http resource? */ +@@ -161,7 +162,6 @@ + memset(&vfile, 0, sizeof(vfile)); + pthread_mutex_lock(&vf_mutex); + +- gint result; + result = ov_test(stream, &vfile, NULL, 0); + + switch (result) { diff --git a/multimedia/beep-media-player/pkg-plist b/multimedia/beep-media-player/pkg-plist index 6918ebfe249d..80265ff1e887 100644 --- a/multimedia/beep-media-player/pkg-plist +++ b/multimedia/beep-media-player/pkg-plist @@ -13,10 +13,14 @@ lib/libbeep.so lib/libbeep.so.1 lib/beep/Input/libcdaudio.so lib/beep/Input/libmpg123.so +%%VORBISPLUGIN:%%lib/beep/Input/libvorbis.so lib/beep/Output/libOSS.so %%ESDPLUGIN:%%lib/beep/Output/libesdout.so lib/beep/Visualization/libbscope.so share/aclocal/beep.m4 +@dirrm share/beep/Skins +@dirrm share/beep +@dirrm lib/beep/Visualization @dirrm lib/beep/Output @dirrm lib/beep/Input @dirrm lib/beep |