summaryrefslogtreecommitdiff
path: root/audio/albumplayer
diff options
context:
space:
mode:
authordrochner <drochner>2009-09-09 16:54:13 +0000
committerdrochner <drochner>2009-09-09 16:54:13 +0000
commit925d51ef25af7b9338f4f0fa73771eb20709a958 (patch)
tree2ae052fac1fb1875bc21f4f4b22f5dced16f0828 /audio/albumplayer
parentfa3d1364ff26f2c2cece313a518cf8920bb3c493 (diff)
downloadpkgsrc-925d51ef25af7b9338f4f0fa73771eb20709a958.tar.gz
update to 0.3
changes: -my patches (portability, cue sheet parser improvements) were integrated upstream -UI improvements -minor fixes
Diffstat (limited to 'audio/albumplayer')
-rw-r--r--audio/albumplayer/Makefile12
-rw-r--r--audio/albumplayer/PLIST4
-rw-r--r--audio/albumplayer/distinfo12
-rw-r--r--audio/albumplayer/patches/patch-aa24
-rw-r--r--audio/albumplayer/patches/patch-ab13
-rw-r--r--audio/albumplayer/patches/patch-ac42
-rw-r--r--audio/albumplayer/patches/patch-ad29
7 files changed, 43 insertions, 93 deletions
diff --git a/audio/albumplayer/Makefile b/audio/albumplayer/Makefile
index f8fcff40761..5bbc67901cd 100644
--- a/audio/albumplayer/Makefile
+++ b/audio/albumplayer/Makefile
@@ -1,18 +1,18 @@
-# $NetBSD: Makefile,v 1.3 2009/08/26 19:57:07 sno Exp $
+# $NetBSD: Makefile,v 1.4 2009/09/09 16:54:13 drochner Exp $
#
-DISTNAME= albumplayer-0.2
-PKGREVISION= 2
+DISTNAME= albumplayer_0.3.orig
+PKGNAME= albumplayer-0.3
CATEGORIES= audio
-MASTER_SITES= http://rvb.mytanet.de/
-# XXX distfile was modified after release
-DIST_SUBDIR= albumplayer_modified_0.2
+MASTER_SITES= http://rvb.mytanet.de/debian/
MAINTAINER= pkgstc-users@NetBSD.org
HOMEPAGE= http://rvb.mytanet.de/
COMMENT= FLAC album player
LICENSE= original-bsd
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
GNU_CONFIGURE= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= pkg-config
diff --git a/audio/albumplayer/PLIST b/audio/albumplayer/PLIST
index 4150eb7aede..53291266f91 100644
--- a/audio/albumplayer/PLIST
+++ b/audio/albumplayer/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2009/07/27 13:40:28 drochner Exp $
+@comment $NetBSD: PLIST,v 1.2 2009/09/09 16:54:13 drochner Exp $
bin/albumplayer
bin/ap_flac_embed
man/man1/albumplayer.1
@@ -6,6 +6,8 @@ man/man1/ap_flac_embed.1
share/albumplayer/albumplayer.xml
share/albumplayer/coverlayer.png
share/albumplayer/questionmark.png
+share/albumplayer/record.png
+share/albumplayer/record24.png
share/applications/albumplayer.desktop
share/locale/de/LC_MESSAGES/albumplayer.mo
share/locale/en@boldquot/LC_MESSAGES/albumplayer.mo
diff --git a/audio/albumplayer/distinfo b/audio/albumplayer/distinfo
index 36eb0ba390b..310c1d3c92d 100644
--- a/audio/albumplayer/distinfo
+++ b/audio/albumplayer/distinfo
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.2 2009/08/03 09:55:36 drochner Exp $
+$NetBSD: distinfo,v 1.3 2009/09/09 16:54:13 drochner Exp $
-SHA1 (albumplayer_modified_0.2/albumplayer-0.2.tar.gz) = c0ea0817be23ef0a12266f738fa85afc1f01c5d6
-RMD160 (albumplayer_modified_0.2/albumplayer-0.2.tar.gz) = ea2b76d9e8b33a51482ebc0f458e22566eeb02d3
-Size (albumplayer_modified_0.2/albumplayer-0.2.tar.gz) = 183040 bytes
-SHA1 (patch-aa) = b7ae1b2da44c2711f1c5b93706c50460692a271c
-SHA1 (patch-ab) = 7b9023de64ea5d0cf360d5f57c3f2e17cb0fc40f
-SHA1 (patch-ac) = d47b001b6a08940ab8d11cee69afe13409f72fc2
+SHA1 (albumplayer_0.3.orig.tar.gz) = 7dc969f18ceded545d997e98ec1ab1f11f652b2e
+RMD160 (albumplayer_0.3.orig.tar.gz) = 8210fdb29856d55f172e842b1b27a02e92e2e9ed
+Size (albumplayer_0.3.orig.tar.gz) = 203517 bytes
+SHA1 (patch-ad) = 8960d9e4c3119a93cfaed97c4075bc45d7be1744
diff --git a/audio/albumplayer/patches/patch-aa b/audio/albumplayer/patches/patch-aa
deleted file mode 100644
index b21dc4e9e3f..00000000000
--- a/audio/albumplayer/patches/patch-aa
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2009/07/27 13:40:28 drochner Exp $
-
---- main.c.orig 2009-07-17 16:37:33.000000000 +0200
-+++ main.c
-@@ -7,6 +7,7 @@
- #include <assert.h>
- #include <gst/gst.h>
- #include <libintl.h>
-+#include <locale.h>
- #include "config.h"
-
- #define _(x) gettext(x)
-@@ -144,6 +145,11 @@ FLAC__byte* get_track_tag(unsigned tr, c
- query_string = g_strdup_printf("%s(%d)", what, get_track_number(tr));
-
- if((try = get_comment(query_string))) goto finished;
-+
-+ g_free(query_string);
-+ query_string = g_strdup_printf("%s[%d]", what, get_track_number(tr));
-+
-+ if((try = get_comment(query_string))) goto finished;
-
- if(!g_strcmp0(what,"TITLE"))
- g_message(_("The %s tag is unset. Using %s instead."),
diff --git a/audio/albumplayer/patches/patch-ab b/audio/albumplayer/patches/patch-ab
deleted file mode 100644
index b2601296836..00000000000
--- a/audio/albumplayer/patches/patch-ab
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.1.1.1 2009/07/27 13:40:28 drochner Exp $
-
---- Makefile.in.orig 2009-07-18 10:29:57.000000000 +0200
-+++ Makefile.in
-@@ -820,7 +820,7 @@ albumplayer.desktop: albumplayer.desktop
- sed 's,@AP_EXEC@,@bindir@,' < albumplayer.desktop.in > albumplayer.desktop
-
- install-data-local: albumplayer.desktop
-- install -m 644 albumplayer.desktop -D $(DESTDIR)/$(datadir)/applications/albumplayer.desktop
-+ install -m 644 albumplayer.desktop $(DESTDIR)/$(datadir)/applications/albumplayer.desktop
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
diff --git a/audio/albumplayer/patches/patch-ac b/audio/albumplayer/patches/patch-ac
deleted file mode 100644
index d83773f1026..00000000000
--- a/audio/albumplayer/patches/patch-ac
+++ /dev/null
@@ -1,42 +0,0 @@
-$NetBSD: patch-ac,v 1.1.1.1 2009/07/27 13:40:28 drochner Exp $
-
---- ap_flac_embed.orig 2009-07-14 16:55:44.000000000 +0200
-+++ ap_flac_embed
-@@ -4,7 +4,7 @@
- #
-
- if [ "$#" -lt 2 ]; then
-- echo Usage: $0 my_album.flac cue_sheet.flac [artwork.png]
-+ echo Usage: $0 my_album.flac cue_sheet.cue [artwork.png]
- exit 1
- fi
-
-@@ -18,8 +18,27 @@ if ! which metaflac > /dev/null; then
- exit 1
- fi
-
-+AWKEX='
-+BEGIN { havetrack=0 }
-+/^[ \t]*TRACK/ {trackno=$2; havetrack=1}
-+/^[ \t]*TITLE/ {
-+ split($0, st, "\"");
-+ if (havetrack)
-+ printf "TITLE[%d]=%s\n",trackno,st[2];
-+ else
-+ printf "ALBUM=%s\n",st[2]
-+}
-+/^[ \t]*PERFORMER/ {
-+ split($0, st, "\"");
-+ if (havetrack)
-+ printf "ARTIST[%d]=%s\n",trackno,st[2];
-+ else
-+ printf "ARTIST=%s\n",st[2]
-+}
-+'
-+
- if [ -f "$1" -a -f "$2" ]; then
-- awk -v r='"' '/^[ \t][ \t]*TRACK/ {printf "TITLE(%s)=",$2} /^[ \t][ \t]*TITLE/ {split($0, st, r); printf "%s\n",st[2]}' < "$2" | metaflac --import-tags-from=- "$1"
-+ awk "$AWKEX" < "$2" | metaflac --import-tags-from=- "$1"
- else
- echo FLAC or CUE file does not exist.
- fi
diff --git a/audio/albumplayer/patches/patch-ad b/audio/albumplayer/patches/patch-ad
new file mode 100644
index 00000000000..5274f03c8e2
--- /dev/null
+++ b/audio/albumplayer/patches/patch-ad
@@ -0,0 +1,29 @@
+$NetBSD: patch-ad,v 1.1 2009/09/09 16:54:13 drochner Exp $
+
+--- main.c.orig 2009-09-08 22:05:17.000000000 +0200
++++ main.c
+@@ -55,6 +55,7 @@ GdkPixbuf *questionmark;
+ GdkPixbuf *coverlayer;
+ gchar *last_canteen = NULL;
+ int sched_seek = -1;
++int shutting_down;
+
+ GdkPixbuf* scale_width(GdkPixbuf* pb, float nw) {
+ double width = gdk_pixbuf_get_width(pb);
+@@ -601,6 +602,8 @@ void pause_cb(gpointer seekbar) {
+ }
+
+ gboolean progress_timeout_cb(gpointer seekbar) {
++ if (shutting_down) /* seekbar can be already invalid */
++ return false;
+ if(loaded) {
+ g_signal_handlers_block_by_func(seekbar, seek_cb, seekbar);
+
+@@ -860,6 +863,7 @@ main (int argc, char *argv[])
+ gst_element_set_state(pipeline, GST_STATE_NULL);
+ gst_object_unref(GST_OBJECT(pipeline));
+ }
++ shutting_down = 1;
+ g_object_unref (G_OBJECT (builder));
+ g_object_unref (G_OBJECT (gconf));
+