diff options
-rw-r--r-- | audio/gnome-media/Makefile | 6 | ||||
-rw-r--r-- | audio/gnome-media/files/patch-gnome-cd_freebsd-cdrom.c | 38 | ||||
-rw-r--r-- | audio/gnomemedia2/Makefile | 6 | ||||
-rw-r--r-- | audio/gnomemedia2/files/patch-gnome-cd_freebsd-cdrom.c | 38 |
4 files changed, 82 insertions, 6 deletions
diff --git a/audio/gnome-media/Makefile b/audio/gnome-media/Makefile index f1747e4..9419747 100644 --- a/audio/gnome-media/Makefile +++ b/audio/gnome-media/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomemedia2 PORTVERSION= 2.6.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= audio gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-media/2.6 @@ -20,11 +20,11 @@ COMMENT= Multimedia applications for the GNOME 2 desktop USE_BZIP2= yes USE_X_PREFIX= yes USE_GMAKE= yes -USE_INC_LIBTOOL_VER=13 +USE_LIBTOOL_VER=15 INSTALLS_SHLIB= yes USE_REINPLACE= yes GNOME_DESKTOP_VERSION=2 -USE_GNOME= gnomeprefix gnomehack intlhack lthack gnomehier gnomedesktop \ +USE_GNOME= gnomeprefix gnomehack intlhack gnomehier gnomedesktop \ gail gstreamerplugins CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" diff --git a/audio/gnome-media/files/patch-gnome-cd_freebsd-cdrom.c b/audio/gnome-media/files/patch-gnome-cd_freebsd-cdrom.c new file mode 100644 index 0000000..4d61c74 --- /dev/null +++ b/audio/gnome-media/files/patch-gnome-cd_freebsd-cdrom.c @@ -0,0 +1,38 @@ +--- gnome-cd/freebsd-cdrom.c.orig Sun Aug 22 00:42:31 2004 ++++ gnome-cd/freebsd-cdrom.c Sun Aug 22 00:48:36 2004 +@@ -903,6 +903,11 @@ + ASSIGN_MSF (realstatus->relative, subchnl.data->what.position.reladdr.msf); + ASSIGN_MSF (realstatus->absolute, subchnl.data->what.position.absaddr.msf); + realstatus->track = subchnl.data->what.position.track_number; ++ if(priv && realstatus->track>0 && ++ realstatus->track<=priv->number_tracks){ ++ /* track_info may not be initialized */ ++ ASSIGN_MSF (realstatus->length, priv->track_info[realstatus->track-1].length); ++ } + break; + + case CD_AS_PLAY_PAUSED: +@@ -910,6 +915,11 @@ + ASSIGN_MSF (realstatus->relative, subchnl.data->what.position.reladdr.msf); + ASSIGN_MSF (realstatus->absolute, subchnl.data->what.position.absaddr.msf); + realstatus->track = subchnl.data->what.position.track_number; ++ if(priv && realstatus->track>0 && ++ realstatus->track<=priv->number_tracks){ ++ /* track_info may not be initialized */ ++ ASSIGN_MSF (realstatus->length, priv->track_info[realstatus->track-1].length); ++ } + break; + + case CD_AS_PLAY_COMPLETED: +@@ -917,6 +927,11 @@ + ASSIGN_MSF (realstatus->relative, subchnl.data->what.position.reladdr.msf); + ASSIGN_MSF (realstatus->absolute, subchnl.data->what.position.absaddr.msf); + realstatus->track = subchnl.data->what.position.track_number; ++ if(priv && realstatus->track>0 && ++ realstatus->track<=priv->number_tracks){ ++ /* track_info may not be initialized */ ++ ASSIGN_MSF (realstatus->length, priv->track_info[realstatus->track-1].length); ++ } + break; + + case CD_AS_AUDIO_INVALID: diff --git a/audio/gnomemedia2/Makefile b/audio/gnomemedia2/Makefile index f1747e4..9419747 100644 --- a/audio/gnomemedia2/Makefile +++ b/audio/gnomemedia2/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomemedia2 PORTVERSION= 2.6.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= audio gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-media/2.6 @@ -20,11 +20,11 @@ COMMENT= Multimedia applications for the GNOME 2 desktop USE_BZIP2= yes USE_X_PREFIX= yes USE_GMAKE= yes -USE_INC_LIBTOOL_VER=13 +USE_LIBTOOL_VER=15 INSTALLS_SHLIB= yes USE_REINPLACE= yes GNOME_DESKTOP_VERSION=2 -USE_GNOME= gnomeprefix gnomehack intlhack lthack gnomehier gnomedesktop \ +USE_GNOME= gnomeprefix gnomehack intlhack gnomehier gnomedesktop \ gail gstreamerplugins CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" diff --git a/audio/gnomemedia2/files/patch-gnome-cd_freebsd-cdrom.c b/audio/gnomemedia2/files/patch-gnome-cd_freebsd-cdrom.c new file mode 100644 index 0000000..4d61c74 --- /dev/null +++ b/audio/gnomemedia2/files/patch-gnome-cd_freebsd-cdrom.c @@ -0,0 +1,38 @@ +--- gnome-cd/freebsd-cdrom.c.orig Sun Aug 22 00:42:31 2004 ++++ gnome-cd/freebsd-cdrom.c Sun Aug 22 00:48:36 2004 +@@ -903,6 +903,11 @@ + ASSIGN_MSF (realstatus->relative, subchnl.data->what.position.reladdr.msf); + ASSIGN_MSF (realstatus->absolute, subchnl.data->what.position.absaddr.msf); + realstatus->track = subchnl.data->what.position.track_number; ++ if(priv && realstatus->track>0 && ++ realstatus->track<=priv->number_tracks){ ++ /* track_info may not be initialized */ ++ ASSIGN_MSF (realstatus->length, priv->track_info[realstatus->track-1].length); ++ } + break; + + case CD_AS_PLAY_PAUSED: +@@ -910,6 +915,11 @@ + ASSIGN_MSF (realstatus->relative, subchnl.data->what.position.reladdr.msf); + ASSIGN_MSF (realstatus->absolute, subchnl.data->what.position.absaddr.msf); + realstatus->track = subchnl.data->what.position.track_number; ++ if(priv && realstatus->track>0 && ++ realstatus->track<=priv->number_tracks){ ++ /* track_info may not be initialized */ ++ ASSIGN_MSF (realstatus->length, priv->track_info[realstatus->track-1].length); ++ } + break; + + case CD_AS_PLAY_COMPLETED: +@@ -917,6 +927,11 @@ + ASSIGN_MSF (realstatus->relative, subchnl.data->what.position.reladdr.msf); + ASSIGN_MSF (realstatus->absolute, subchnl.data->what.position.absaddr.msf); + realstatus->track = subchnl.data->what.position.track_number; ++ if(priv && realstatus->track>0 && ++ realstatus->track<=priv->number_tracks){ ++ /* track_info may not be initialized */ ++ ASSIGN_MSF (realstatus->length, priv->track_info[realstatus->track-1].length); ++ } + break; + + case CD_AS_AUDIO_INVALID: |