summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-04-03 14:35:32 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-04-03 14:35:32 +0800
commitd2163677cf0a76cb0dd1c5809eab97c0ad27826d (patch)
tree5b72b4da00c99a498c094372d0d546e886956deb /audio
parent286a9076aa0294a5e165f980dc084b9a02fb7906 (diff)
downloadmarcuscom-ports-d2163677cf0a76cb0dd1c5809eab97c0ad27826d.tar
marcuscom-ports-d2163677cf0a76cb0dd1c5809eab97c0ad27826d.tar.gz
marcuscom-ports-d2163677cf0a76cb0dd1c5809eab97c0ad27826d.tar.bz2
marcuscom-ports-d2163677cf0a76cb0dd1c5809eab97c0ad27826d.tar.lz
marcuscom-ports-d2163677cf0a76cb0dd1c5809eab97c0ad27826d.tar.xz
marcuscom-ports-d2163677cf0a76cb0dd1c5809eab97c0ad27826d.tar.zst
marcuscom-ports-d2163677cf0a76cb0dd1c5809eab97c0ad27826d.zip
Add iPod support.
Submitted by: adamw git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2245 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'audio')
-rw-r--r--audio/rhythmbox-devel/Makefile7
-rw-r--r--audio/rhythmbox-devel/files/patch-sources_itunesdb.c22
-rw-r--r--audio/rhythmbox/Makefile7
-rw-r--r--audio/rhythmbox/files/patch-sources_itunesdb.c22
4 files changed, 56 insertions, 2 deletions
diff --git a/audio/rhythmbox-devel/Makefile b/audio/rhythmbox-devel/Makefile
index e62886cbe..f8b58d1ac 100644
--- a/audio/rhythmbox-devel/Makefile
+++ b/audio/rhythmbox-devel/Makefile
@@ -29,7 +29,8 @@ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm" \
CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"
OPTIONS= XINE "Use xine backend instead of GStreamer" off \
- MONKEYMEDIA "Use MonkeyMedia metadata reader" off
+ MONKEYMEDIA "Use MonkeyMedia metadata reader" off \
+ IPOD "Enable iPod support" off
.include <bsd.port.pre.mk>
@@ -48,6 +49,10 @@ CONFIGURE_ARGS+= --with-metadata=gstreamer
USE_GNOME+= gstreamerplugins
.endif
+.ifdef (WITH_IPOD)
+CONFIGURE_ARGS+= --enable-ipod
+.endif
+
.if exists(${LOCALBASE}/lib/libvorbis.so)
WITH_VORBIS= yes
.endif
diff --git a/audio/rhythmbox-devel/files/patch-sources_itunesdb.c b/audio/rhythmbox-devel/files/patch-sources_itunesdb.c
new file mode 100644
index 000000000..6270d9f74
--- /dev/null
+++ b/audio/rhythmbox-devel/files/patch-sources_itunesdb.c
@@ -0,0 +1,22 @@
+--- sources/itunesdb.c.orig Fri Mar 19 12:20:13 2004
++++ sources/itunesdb.c Fri Apr 2 21:39:39 2004
+@@ -729,8 +729,9 @@
+ gchar data[4];
+ guint32 header_length, entry_length, entry_num, i=0;
+ time_t tt = time (NULL);
++ struct tm *tmt;
+
+- localtime (&tt); /* set the ext. variable 'timezone' (see below) */
++ tmt = localtime (&tt); /* set the ext. variable 'timezone' (see below) */
+ if (seek_get_n_bytes (plycts, data, 0, 4) != 4) break;
+ if (cmp_n_bytes (data, "mhdp", 4) == FALSE) break;
+ header_length = get4int (plycts, 4);
+@@ -768,7 +769,7 @@
+ * way to do that ?
+ */
+ if (playcount->time_played)
+- playcount->time_played += __timezone;
++ playcount->time_played += tmt->tm_gmtoff;
+
+ /* rating only exists if the entry length is at least 0x10 */
+ if (entry_length >= 0x10)
diff --git a/audio/rhythmbox/Makefile b/audio/rhythmbox/Makefile
index e62886cbe..f8b58d1ac 100644
--- a/audio/rhythmbox/Makefile
+++ b/audio/rhythmbox/Makefile
@@ -29,7 +29,8 @@ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm" \
CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"
OPTIONS= XINE "Use xine backend instead of GStreamer" off \
- MONKEYMEDIA "Use MonkeyMedia metadata reader" off
+ MONKEYMEDIA "Use MonkeyMedia metadata reader" off \
+ IPOD "Enable iPod support" off
.include <bsd.port.pre.mk>
@@ -48,6 +49,10 @@ CONFIGURE_ARGS+= --with-metadata=gstreamer
USE_GNOME+= gstreamerplugins
.endif
+.ifdef (WITH_IPOD)
+CONFIGURE_ARGS+= --enable-ipod
+.endif
+
.if exists(${LOCALBASE}/lib/libvorbis.so)
WITH_VORBIS= yes
.endif
diff --git a/audio/rhythmbox/files/patch-sources_itunesdb.c b/audio/rhythmbox/files/patch-sources_itunesdb.c
new file mode 100644
index 000000000..6270d9f74
--- /dev/null
+++ b/audio/rhythmbox/files/patch-sources_itunesdb.c
@@ -0,0 +1,22 @@
+--- sources/itunesdb.c.orig Fri Mar 19 12:20:13 2004
++++ sources/itunesdb.c Fri Apr 2 21:39:39 2004
+@@ -729,8 +729,9 @@
+ gchar data[4];
+ guint32 header_length, entry_length, entry_num, i=0;
+ time_t tt = time (NULL);
++ struct tm *tmt;
+
+- localtime (&tt); /* set the ext. variable 'timezone' (see below) */
++ tmt = localtime (&tt); /* set the ext. variable 'timezone' (see below) */
+ if (seek_get_n_bytes (plycts, data, 0, 4) != 4) break;
+ if (cmp_n_bytes (data, "mhdp", 4) == FALSE) break;
+ header_length = get4int (plycts, 4);
+@@ -768,7 +769,7 @@
+ * way to do that ?
+ */
+ if (playcount->time_played)
+- playcount->time_played += __timezone;
++ playcount->time_played += tmt->tm_gmtoff;
+
+ /* rating only exists if the entry length is at least 0x10 */
+ if (entry_length >= 0x10)