summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/albumplayer/DESCR5
-rw-r--r--audio/albumplayer/Makefile26
-rw-r--r--audio/albumplayer/PLIST12
-rw-r--r--audio/albumplayer/distinfo8
-rw-r--r--audio/albumplayer/patches/patch-aa24
-rw-r--r--audio/albumplayer/patches/patch-ab13
-rw-r--r--audio/albumplayer/patches/patch-ac42
7 files changed, 130 insertions, 0 deletions
diff --git a/audio/albumplayer/DESCR b/audio/albumplayer/DESCR
new file mode 100644
index 00000000000..fb64fe1a9ac
--- /dev/null
+++ b/audio/albumplayer/DESCR
@@ -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 --git a/audio/albumplayer/Makefile b/audio/albumplayer/Makefile
new file mode 100644
index 00000000000..a578a33c9fb
--- /dev/null
+++ b/audio/albumplayer/Makefile
@@ -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
+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 --git a/audio/albumplayer/PLIST b/audio/albumplayer/PLIST
new file mode 100644
index 00000000000..4150eb7aede
--- /dev/null
+++ b/audio/albumplayer/PLIST
@@ -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 --git a/audio/albumplayer/distinfo b/audio/albumplayer/distinfo
new file mode 100644
index 00000000000..57f8d402aca
--- /dev/null
+++ b/audio/albumplayer/distinfo
@@ -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 --git a/audio/albumplayer/patches/patch-aa b/audio/albumplayer/patches/patch-aa
new file mode 100644
index 00000000000..b21dc4e9e3f
--- /dev/null
+++ b/audio/albumplayer/patches/patch-aa
@@ -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 --git a/audio/albumplayer/patches/patch-ab b/audio/albumplayer/patches/patch-ab
new file mode 100644
index 00000000000..b2601296836
--- /dev/null
+++ b/audio/albumplayer/patches/patch-ab
@@ -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 --git a/audio/albumplayer/patches/patch-ac b/audio/albumplayer/patches/patch-ac
new file mode 100644
index 00000000000..d83773f1026
--- /dev/null
+++ b/audio/albumplayer/patches/patch-ac
@@ -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