diff options
author | ahze <ahze@FreeBSD.org> | 2005-05-17 01:50:03 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-05-17 01:50:03 +0800 |
commit | 6439511f263c7d40ecb2777a4aac6954969edd58 (patch) | |
tree | f368d8bb1bdc5c7215179e9acba40075b3d6b0c2 /multimedia/vlc-devel | |
parent | b2716659683c31e652d9b86f4c78e5ef25717894 (diff) | |
download | freebsd-ports-gnome-6439511f263c7d40ecb2777a4aac6954969edd58.tar.gz freebsd-ports-gnome-6439511f263c7d40ecb2777a4aac6954969edd58.tar.zst freebsd-ports-gnome-6439511f263c7d40ecb2777a4aac6954969edd58.zip |
- Update to 0.8.2.20050516
Diffstat (limited to 'multimedia/vlc-devel')
-rw-r--r-- | multimedia/vlc-devel/Makefile | 14 | ||||
-rw-r--r-- | multimedia/vlc-devel/distinfo | 8 | ||||
-rw-r--r-- | multimedia/vlc-devel/files/patch-modules_gui_wxwindows_interface.cpp | 208 |
3 files changed, 219 insertions, 11 deletions
diff --git a/multimedia/vlc-devel/Makefile b/multimedia/vlc-devel/Makefile index 60d7c9addd0c..8e62d5a8917e 100644 --- a/multimedia/vlc-devel/Makefile +++ b/multimedia/vlc-devel/Makefile @@ -213,19 +213,19 @@ # PORTNAME= vlc -DISTVERSION= 0.8.2-test1 -PORTREVISION= 1 +DISTVERSION= 0.8.2.20050516 CATEGORIES= multimedia audio ipv6 net www -MASTER_SITES= http://download2.videolan.org/pub/videolan/testing/${PORTNAME}-${DISTVERSION}/ \ +MASTER_SITES= http://download.videolan.org/pub/vlc/snapshots/ \ ${MASTER_SITE_LOCAL:S|$|:mozilla|} \ http://people.freebsd.org/~ahze/distfiles/:mozilla +# http://download2.videolan.org/pub/videolan/testing/${PORTNAME}-${DISTVERSION}/ \ # http://download.videolan.org/pub/videolan/vlc/${PORTVERSION}/ \ # http://ftp.snt.utwente.nl/pub/software/videolan/vlc/${PORTVERSION}/ \ # ftp://ftp.crans.org/pub/videolan/vlc/${PORTVERSION}/ \ # ftp://videolan.cs.pu.edu.tw/Windows/VideoLAN/vlc/${PORTVERSION}/ \ MASTER_SITE_SUBDIR= ahze/:mozilla PKGNAMESUFFIX?= -devel${ESOUND_SUFFIX}${MOZILLA_SUFFIX}${PKGNAMESUFFIX2} -DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ +DISTFILES= ${PORTNAME}-snapshot-${DISTVERSION:S/0.8.2.//}${EXTRACT_SUFX} \ vlc-intf-mozilla-plugin-0.1${EXTRACT_SUFX}:mozilla MAINTAINER= ahze@FreeBSD.org @@ -236,14 +236,14 @@ LIB_DEPENDS= avcodec.1:${PORTSDIR}/multimedia/ffmpeg CONFLICTS= vlc-*-0.8.1* -#WRKSRC= ${WRKDIR}/${PORTNAME}-snapshot-${PORTVERSION:S/0.8.1.//} +WRKSRC= ${WRKDIR}/${PORTNAME}-snapshot-${PORTVERSION:S/0.8.2.//} ### BROKEN -- Needs newer verision of toolame ### WITHOUT_TOOLAME= yes ### BROKEN ### WITH_VLC_DEFAULT_FONT?= ${X11BASE}/lib/X11/fonts/bitstream-vera/Vera.ttf -USE_BZIP2= yes +#USE_BZIP2= yes USE_X_PREFIX= yes USE_GETOPT_LONG=yes USE_GETTEXT= yes @@ -252,7 +252,6 @@ WANT_GNOME= yes USE_GNOME= gnometarget libxml2 USE_REINPLACE= yes WANT_SDL= yes -USE_XLIB= yes USE_ICONV= yes FAKEDIR= ${WRKDIR}/fake @@ -342,6 +341,7 @@ OPTIONS= AALIB "Console graphics support" Off \ TRANSCODE "Depends on multimedia/transcode" Off \ TWOLAME "Twolame Mpeg layer 2 audio Support" Off \ VORBIS "Vorbis support (implies WITH_OGG)" On \ + WXGTK "WxGtk+2 frontend" On \ X264 "H.264 AVC video codec" Off .include <bsd.port.pre.mk> diff --git a/multimedia/vlc-devel/distinfo b/multimedia/vlc-devel/distinfo index f1e9e32fdefb..3ee4dc3a2799 100644 --- a/multimedia/vlc-devel/distinfo +++ b/multimedia/vlc-devel/distinfo @@ -1,4 +1,4 @@ -MD5 (vlc-0.8.2-test1.tar.bz2) = 23559ee14d7205c1e340ca8eec0ad8f3 -SIZE (vlc-0.8.2-test1.tar.bz2) = 5998062 -MD5 (vlc-intf-mozilla-plugin-0.1.tar.bz2) = e64ee857a300968890188c26468a2945 -SIZE (vlc-intf-mozilla-plugin-0.1.tar.bz2) = 2418 +MD5 (vlc-snapshot-20050516.tar.gz) = db7db8d35aac8b68ad04e30d049b7d39 +SIZE (vlc-snapshot-20050516.tar.gz) = 9328827 +MD5 (vlc-intf-mozilla-plugin-0.1.tar.gz) = bd8e568ac30e69604f42721e73c1c980 +SIZE (vlc-intf-mozilla-plugin-0.1.tar.gz) = 2449 diff --git a/multimedia/vlc-devel/files/patch-modules_gui_wxwindows_interface.cpp b/multimedia/vlc-devel/files/patch-modules_gui_wxwindows_interface.cpp new file mode 100644 index 000000000000..49c733254010 --- /dev/null +++ b/multimedia/vlc-devel/files/patch-modules_gui_wxwindows_interface.cpp @@ -0,0 +1,208 @@ +--- modules/gui/wxwindows/interface.cpp.orig Mon May 16 13:32:57 2005 ++++ modules/gui/wxwindows/interface.cpp Mon May 16 13:35:29 2005 +@@ -94,6 +94,7 @@ + + wxVolCtrl *gauge; + int i_y_offset; ++ vlc_bool_t b_mute; + intf_thread_t *p_intf; + }; + +@@ -240,6 +241,12 @@ + /* Create a dummy widget that can get the keyboard focus */ + wxWindow *p_dummy = new wxWindow( this, 0, wxDefaultPosition, + wxSize(0,0) ); ++#if defined(__WXGTK20__) && wxCHECK_VERSION(2,5,6) ++ /* As ugly as your butt! Please remove when wxWidgets 2.6 fixed their ++ * Accelerators bug. */ ++ p_dummy->m_imData = 0; ++ m_imData = 0; ++#endif + p_dummy->SetFocus(); + frame_sizer->Add( p_dummy, 0, 0 ); + +@@ -351,7 +358,6 @@ + { + /* Misc updates */ + ((VLCVolCtrl *)volctrl)->UpdateVolume(); +- + } + + void Interface::OnControlEvent( wxCommandEvent& event ) +@@ -498,7 +504,7 @@ + } + + wxToolBarToolBase *p_tool = toolbar->AddTool( PlayStream_Event, wxT(""), +- wxBitmap( play_xpm ), wxU(_(HELP_PLAY)) ); ++ wxBitmap( play_xpm ), wxU(_(HELP_PLAY)), wxITEM_CHECK ); + p_tool->SetClientData( p_tool ); + + if (!minimal) +@@ -692,27 +698,23 @@ + + //prevent continuous layout + if( slider_frame->IsShown() ) return; +- +- slider_frame->Show(); +- frame_sizer->Show( slider_frame ); + } + else + { + //prevent continuous layout + if( !slider_frame->IsShown() ) return; +- +- slider_frame->Hide(); +- frame_sizer->Hide( slider_frame ); + } + ++ if( layout && p_intf->p_sys->b_video_autosize ) ++ UpdateVideoWindow( p_intf, video_window ); ++ ++ slider_frame->Show( show ); ++ frame_sizer->Show( slider_frame, show ); ++ + if( layout ) + { + frame_sizer->Layout(); +- if( p_intf->p_sys->b_video_autosize ) +- { +- UpdateVideoWindow( p_intf, video_window ); +- frame_sizer->Fit( this ); +- } ++ if( p_intf->p_sys->b_video_autosize ) frame_sizer->Fit( this ); + } + } + +@@ -730,27 +732,24 @@ + + //prevent continuous layout + if( disc_frame->IsShown() ) return; +- +- disc_frame->Show(); +- slider_sizer->Show( disc_frame ); + } + else + { + //prevent continuous layout + if( !disc_frame->IsShown() ) return; +- +- disc_frame->Hide(); +- slider_sizer->Hide( disc_frame ); + } + ++ if( layout && p_intf->p_sys->b_video_autosize ) ++ UpdateVideoWindow( p_intf, video_window ); ++ ++ disc_frame->Show( show ); ++ slider_sizer->Show( disc_frame, show ); ++ + if( layout ) + { + slider_sizer->Layout(); + if( p_intf->p_sys->b_video_autosize ) +- { +- UpdateVideoWindow( p_intf, video_window ); + slider_sizer->Fit( slider_frame ); +- } + } + } + +@@ -759,6 +758,9 @@ + *****************************************************************************/ + void Interface::OnControlsTimer( wxTimerEvent& WXUNUSED(event) ) + { ++ if( p_intf->p_sys->b_video_autosize ) ++ UpdateVideoWindow( p_intf, video_window ); ++ + /* Hide slider and Disc Buttons */ + //postpone layout, we'll do it ourselves + HideDiscFrame( false ); +@@ -768,7 +770,6 @@ + if( p_intf->p_sys->b_video_autosize ) + { + slider_sizer->Fit( slider_frame ); +- UpdateVideoWindow( p_intf, video_window ); + frame_sizer->Fit( this ); + } + } +@@ -1259,22 +1260,22 @@ + GetToolBar()->GetToolClientData( PlayStream_Event ); + if( !p_tool ) return; + +- GetToolBar()->DeleteTool( p_tool->GetId() ); +- + if( i_playing_status == PLAYING_S ) + { +- p_tool = GetToolBar()->InsertTool(2, PlayStream_Event, wxT(""), +- wxBitmap( pause_xpm ), wxU(_(HELP_PAUSE)) ); +- p_tool->SetClientData( p_tool ); ++ p_tool->SetNormalBitmap( wxBitmap( pause_xpm ) ); ++ p_tool->SetLabel( wxU(_("Pause")) ); ++ p_tool->SetShortHelp( wxU(_(HELP_PAUSE)) ); + } + else + { +- p_tool = GetToolBar()->InsertTool(2, PlayStream_Event, wxT(""), +- wxBitmap( play_xpm ), wxU(_(HELP_PLAY)) ); +- p_tool->SetClientData( p_tool ); ++ p_tool->SetNormalBitmap( wxBitmap( play_xpm ) ); ++ p_tool->SetLabel( wxU(_("Play")) ); ++ p_tool->SetShortHelp( wxU(_(HELP_PLAY)) ); + } + + GetToolBar()->Realize(); ++ GetToolBar()->ToggleTool( PlayStream_Event, true ); ++ GetToolBar()->ToggleTool( PlayStream_Event, false ); + + i_old_playing_status = i_playing_status; + } +@@ -1374,6 +1375,7 @@ + virtual ~wxVolCtrl() {}; + + void UpdateVolume(); ++ int GetVolume(); + + void OnChange( wxMouseEvent& event ); + +@@ -1428,7 +1430,7 @@ + :wxControl( p_parent, -1, wxDefaultPosition, wxSize(64, VLCVOL_HEIGHT ), + wxBORDER_NONE ), + i_y_offset((VLCVOL_HEIGHT - TOOLBAR_BMP_HEIGHT) / 2), +- p_intf(_p_intf) ++ b_mute(0), p_intf(_p_intf) + { + gauge = new wxVolCtrl( p_intf, this, -1, wxPoint( 18, i_y_offset ), + wxSize( 44, TOOLBAR_BMP_HEIGHT ) ); +@@ -1436,11 +1438,8 @@ + + void VLCVolCtrl::OnPaint( wxPaintEvent &evt ) + { +- int i_volume; +- i_volume = (audio_volume_t)config_GetInt( p_intf, "volume" ); +- + wxPaintDC dc( this ); +- wxBitmap mPlayBitmap( i_volume ? speaker_xpm : speaker_mute_xpm ); ++ wxBitmap mPlayBitmap( b_mute ? speaker_mute_xpm : speaker_xpm ); + dc.DrawBitmap( mPlayBitmap, 0, i_y_offset, TRUE ); + } + +@@ -1450,12 +1449,19 @@ + { + int i_volume; + aout_VolumeMute( p_intf, (audio_volume_t *)&i_volume ); ++ ++ b_mute = !b_mute; ++ Refresh(); + } + } + + void VLCVolCtrl::UpdateVolume() + { + gauge->UpdateVolume(); ++ ++ int i_volume = gauge->GetValue(); ++ if( !!i_volume == !b_mute ) return; ++ b_mute = !b_mute; + Refresh(); + } + |