pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/albumplayer add albumplayer-0.2, a player for FL...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55aa126d4f39
branches:  trunk
changeset: 396563:55aa126d4f39
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Mon Jul 27 13:40:28 2009 +0000

description:
add albumplayer-0.2, a player for FLAC album files

diffstat:

 audio/albumplayer/DESCR            |   5 ++++
 audio/albumplayer/Makefile         |  26 +++++++++++++++++++++++
 audio/albumplayer/PLIST            |  12 ++++++++++
 audio/albumplayer/distinfo         |   8 +++++++
 audio/albumplayer/patches/patch-aa |  24 +++++++++++++++++++++
 audio/albumplayer/patches/patch-ab |  13 +++++++++++
 audio/albumplayer/patches/patch-ac |  42 ++++++++++++++++++++++++++++++++++++++
 7 files changed, 130 insertions(+), 0 deletions(-)

diffs (158 lines):

diff -r ed581e0ea1d4 -r 55aa126d4f39 audio/albumplayer/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/albumplayer/DESCR   Mon Jul 27 13:40:28 2009 +0000
@@ -0,0 +1,5 @@
+Album Player is a lightweight GTK-based audio player. Many people archive
+their CD and record collections into a single FLAC file for every record,
+accompanied by a cue sheet that holds the track information. Album Player
+is made specifically for the task of playing FLAC files that have such a
+cue sheet, a track list and cover art embedded.
diff -r ed581e0ea1d4 -r 55aa126d4f39 audio/albumplayer/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/albumplayer/Makefile        Mon Jul 27 13:40:28 2009 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/07/27 13:40:28 drochner Exp $
+#
+
+DISTNAME=      albumplayer-0.2
+CATEGORIES=    audio
+MASTER_SITES=  http://rvb.mytanet.de/
+
+MAINTAINER=    pkgstc-users%NetBSD.org@localhost
+HOMEPAGE=      http://rvb.mytanet.de/
+COMMENT=       FLAC album player
+LICENSE=       original-bsd
+
+GNU_CONFIGURE=         yes
+USE_PKGLOCALEDIR=      yes
+USE_TOOLS+=            pkg-config
+USE_DIRS+=             xdg-1.1
+PKG_DESTDIR_SUPPORT=   user-destdir
+INSTALLATION_DIRS+=    share/applications
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../multimedia/gstreamer0.10/buildlink3.mk"
+.include "../../devel/GConf/buildlink3.mk"
+.include "../../audio/flac/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ed581e0ea1d4 -r 55aa126d4f39 audio/albumplayer/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/albumplayer/PLIST   Mon Jul 27 13:40:28 2009 +0000
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/07/27 13:40:28 drochner Exp $
+bin/albumplayer
+bin/ap_flac_embed
+man/man1/albumplayer.1
+man/man1/ap_flac_embed.1
+share/albumplayer/albumplayer.xml
+share/albumplayer/coverlayer.png
+share/albumplayer/questionmark.png
+share/applications/albumplayer.desktop
+share/locale/de/LC_MESSAGES/albumplayer.mo
+share/locale/en@boldquot/LC_MESSAGES/albumplayer.mo
+share/locale/en@quot/LC_MESSAGES/albumplayer.mo
diff -r ed581e0ea1d4 -r 55aa126d4f39 audio/albumplayer/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/albumplayer/distinfo        Mon Jul 27 13:40:28 2009 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/07/27 13:40:28 drochner Exp $
+
+SHA1 (albumplayer-0.2.tar.gz) = 310541acd83b35c0da39ff845525b6e9a173f250
+RMD160 (albumplayer-0.2.tar.gz) = 7ed334460645ce1a70df275a9a2017da9dde17e1
+Size (albumplayer-0.2.tar.gz) = 183069 bytes
+SHA1 (patch-aa) = b7ae1b2da44c2711f1c5b93706c50460692a271c
+SHA1 (patch-ab) = 7b9023de64ea5d0cf360d5f57c3f2e17cb0fc40f
+SHA1 (patch-ac) = d47b001b6a08940ab8d11cee69afe13409f72fc2
diff -r ed581e0ea1d4 -r 55aa126d4f39 audio/albumplayer/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/albumplayer/patches/patch-aa        Mon Jul 27 13:40:28 2009 +0000
@@ -0,0 +1,24 @@
+$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 -r ed581e0ea1d4 -r 55aa126d4f39 audio/albumplayer/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/albumplayer/patches/patch-ab        Mon Jul 27 13:40:28 2009 +0000
@@ -0,0 +1,13 @@
+$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 -r ed581e0ea1d4 -r 55aa126d4f39 audio/albumplayer/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/albumplayer/patches/patch-ac        Mon Jul 27 13:40:28 2009 +0000
@@ -0,0 +1,42 @@
+$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



Home | Main Index | Thread Index | Old Index