diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-12-13 02:48:50 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-12-13 02:48:50 +0000 |
commit | a6bd2ef295c7bbf3bbf89bead38b75a078a6a1b5 (patch) | |
tree | 7864c48660a1bddff02575ac04885931fa655fcb /media-video/mplayer | |
parent | cvs snapshot, added encode and oggvorbis use vars (diff) | |
download | historical-a6bd2ef295c7bbf3bbf89bead38b75a078a6a1b5.tar.gz historical-a6bd2ef295c7bbf3bbf89bead38b75a078a6a1b5.tar.bz2 historical-a6bd2ef295c7bbf3bbf89bead38b75a078a6a1b5.zip |
remove xvid for x86; add gtk2 support
Diffstat (limited to 'media-video/mplayer')
-rw-r--r-- | media-video/mplayer/ChangeLog | 8 | ||||
-rw-r--r-- | media-video/mplayer/files/digest-mplayer-0.90_rc1-r1 (renamed from media-video/mplayer/files/digest-mplayer-0.90_rc1) | 0 | ||||
-rw-r--r-- | media-video/mplayer/files/mplayer-0.90_rc1-gtk2.patch | 205 | ||||
-rw-r--r-- | media-video/mplayer/mplayer-0.90_rc1-r1.ebuild (renamed from media-video/mplayer/mplayer-0.90_rc1.ebuild) | 19 |
4 files changed, 226 insertions, 6 deletions
diff --git a/media-video/mplayer/ChangeLog b/media-video/mplayer/ChangeLog index 407dac3e1a88..c80cba837872 100644 --- a/media-video/mplayer/ChangeLog +++ b/media-video/mplayer/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-video/mplayer # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.41 2002/12/08 22:08:40 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.42 2002/12/13 02:48:50 azarah Exp $ + +*mplayer-0.90_rc1-r1 (13 Dec 2002) + + 13 Dec 2002; Martin Schlemmer <azarah@gentoo.org> mplayer-0.90_rc1-r1.ebuild : + + Fix the xvid bork. Add gtk2 support :D *mplayer-0.90_rc1 (8 Dec 2002) diff --git a/media-video/mplayer/files/digest-mplayer-0.90_rc1 b/media-video/mplayer/files/digest-mplayer-0.90_rc1-r1 index 0105a37327fd..0105a37327fd 100644 --- a/media-video/mplayer/files/digest-mplayer-0.90_rc1 +++ b/media-video/mplayer/files/digest-mplayer-0.90_rc1-r1 diff --git a/media-video/mplayer/files/mplayer-0.90_rc1-gtk2.patch b/media-video/mplayer/files/mplayer-0.90_rc1-gtk2.patch new file mode 100644 index 000000000000..ae0846190684 --- /dev/null +++ b/media-video/mplayer/files/mplayer-0.90_rc1-gtk2.patch @@ -0,0 +1,205 @@ +diff -Naur Gui/mplayer/gtk/about.c Gui/mplayer/gtk/about.c +--- Gui/mplayer/gtk/about.c 2002-11-28 11:24:57.000000000 +0200 ++++ Gui/mplayer/gtk/about.c 2002-12-10 19:04:01.000000000 +0200 +@@ -25,6 +25,11 @@ + GtkWidget * AboutText; + GtkWidget * Ok; + ++#ifdef HAVE_GTK2_GUI ++ GtkTextBuffer * AboutTextBuffer; ++ GtkTextIter iter; ++#endif //HAVE_GTK2_GUI ++ + GtkStyle * pixmapstyle; + GdkPixmap * pixmapwid; + GdkBitmap * mask; +@@ -64,12 +69,25 @@ + gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 ); + gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); + +- AboutText=gtk_text_new( NULL,NULL ); ++#ifdef HAVE_GTK2_GUI ++ AboutText = gtk_text_view_new(); ++ AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText)); ++ gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0); ++#else ++ AboutText = gtk_text_new( NULL,NULL ); ++#endif //HAVE_GTK2_GUI ++ + gtk_widget_set_name( AboutText,"AboutText" ); + gtk_widget_show( AboutText ); + gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); ++ ++#ifdef HAVE_GTK2_GUI ++ gtk_text_buffer_insert (AboutTextBuffer, &iter, ++#else + gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, +- "\n" \ ++#endif //HAVE_GTK2_GUI ++ ++ "\n" \ + "GUI development sponsored by UHU Linux\n" \ + " (http://www.uhulinux.hu/)\n" \ + "\n" \ +@@ -139,7 +157,13 @@ + " * Attila Kinali\n" \ + " * Dirk Vornheder\n" \ + " * Bohdan Horst (Nexus)\n" \ +- "\n",1481 ); ++ "\n", ++ ++#ifdef HAVE_GTK2_GUI ++ -1); ++#else ++ 1481); ++#endif //HAVE_GTK2_GUI + + AddHSeparator( vbox ); + Ok=AddButton( MSGTR_Ok,AddHButtonBox( vbox ) ); +diff -Naur configure configure +--- configure 2002-12-09 14:44:30.000000000 +0200 ++++ configure 2002-12-10 19:06:50.000000000 +0200 +@@ -130,6 +130,7 @@ + Optional features: + --disable-mencoder disable mencoder (a/v encoder) compilation [enable] + --enable-gui enable gmplayer compilation (gtk-1.2 GUI) [disable] ++ --enable-gtk2 enable gtk2 port of the gui [disable] + --enable-largefiles enable support for files > 2 GBytes [disable] + --enable-linux-devfs set default devices to devfs ones [disable] + --enable-termcap use termcap database for key codes [autodetect] +@@ -1007,6 +1008,7 @@ + _opendivx=no + _lirc=auto + _gui=no ++_gtk2=no + _termcap=auto + _termios=auto + _3dfx=no +@@ -1174,6 +1176,8 @@ + --disable-lirc) _lirc=no ;; + --enable-gui) _gui=yes ;; + --disable-gui) _gui=no ;; ++ --enable-gtk2) _gtk2=yes ;; ++ --disable-gtk2) _gtk2=no ;; + --enable-termcap) _termcap=yes ;; + --disable-termcap) _termcap=no ;; + --enable-termios) _termios=yes ;; +@@ -4386,42 +4390,70 @@ + fi + echores "$_xshape" + ++ # Check for new GTK (2.x.x) ++ if test "$_gtk2" = yes ; then ++ ++ # Check for GTK: ++ echocheck "GTK+ version" + +- # Check for GTK: +- echocheck "gtk version" +- if test -z "$_gtkconfig" ; then +- if ( gtk-config --version ) >/dev/null 2>&1 ; then +- _gtkconfig="gtk-config" +- elif ( gtk12-config --version ) >/dev/null 2>&1 ; then +- _gtkconfig="gtk12-config" +- else +- die "the GUI requires GTK (which was not found)" ++ _gtk=`pkg-config gtk+-2.0 --modversion 2>&1` ++ _inc_gtk=`pkg-config gtk+-2.0 --cflags 2>&1` ++ _ld_gtk=`pkg-config gtk+-2.0 --libs 2>&1` ++ echores "$_gtk" ++ ++ # Check for GLIB ++ echocheck "glib version" ++ _glib=`pkg-config glib-2.0 --modversion 2>&1` ++ _inc_glib=`pkg-config glib-2.0 --cflags 2>&1` ++ _ld_glib=`pkg-config glib-2.0 --libs 2>&1` ++ echores "$_glib" ++ ++ _def_gui='#define HAVE_NEW_GUI 1' ++ _def_gtk2_gui='#define HAVE_GTK2_GUI 1' ++ _ld_gui='$(GTKLIB) $(GLIBLIB)' ++ ++ # Check for "old" GTK (1.2.x) ++ else ++ ++ # Check for GTK: ++ echocheck "GTK+ version" ++ if test -z "$_gtkconfig" ; then ++ if ( gtk-config --version ) >/dev/null 2>&1 ; then ++ _gtkconfig="gtk-config" ++ elif ( gtk12-config --version ) >/dev/null 2>&1 ; then ++ _gtkconfig="gtk12-config" ++ else ++ die "the GUI requires GTK+ (which was not found)" ++ fi + fi +- fi +- _gtk=`$_gtkconfig --version 2>&1` +- _inc_gtk=`$_gtkconfig --cflags 2>&1` +- _ld_gtk=`$_gtkconfig --libs 2>&1` +- echores "$_gtk (using $_gtkconfig)" +- +- # Check for GLIB +- echocheck "glib version" +- if test -z "$_glibconfig" ; then +- if ( glib-config --version ) >/dev/null 2>&1 ; then +- _glibconfig="glib-config" +- elif ( glib12-config --version ) >/dev/null 2>&1 ; then +- _glibconfig="glib12-config" +- else +- die "the GUI requires GLIB (which was not found)" ++ _gtk=`$_gtkconfig --version 2>&1` ++ _inc_gtk=`$_gtkconfig --cflags 2>&1` ++ _ld_gtk=`$_gtkconfig --libs 2>&1` ++ echores "$_gtk (using $_gtkconfig)" ++ ++ # Check for GLIB ++ echocheck "glib version" ++ if test -z "$_glibconfig" ; then ++ if ( glib-config --version ) >/dev/null 2>&1 ; then ++ _glibconfig="glib-config" ++ elif ( glib12-config --version ) >/dev/null 2>&1 ; then ++ _glibconfig="glib12-config" ++ else ++ die "the GUI requires GLIB (which was not found)" ++ fi + fi +- fi +- _glib=`$_glibconfig --version 2>&1` +- _inc_glib=`$_glibconfig --cflags 2>&1` +- _ld_glib=`$_glibconfig --libs 2>&1` +- echores "$_glib (using $_glibconfig)" +- +- _def_gui='#define HAVE_NEW_GUI 1' +- _ld_gui='$(GTKLIB) $(GLIBLIB)' + ++ _glib=`$_glibconfig --version 2>&1` ++ _inc_glib=`$_glibconfig --cflags 2>&1` ++ _ld_glib=`$_glibconfig --libs 2>&1` ++ echores "$_glib (using $_glibconfig)" ++ ++ _def_gui='#define HAVE_NEW_GUI 1' ++ _def_gtk2_gui='#undef HAVE_GTK2_GUI' ++ _ld_gui='$(GTKLIB) $(GLIBLIB)' ++ ++ fi ++ + echo "Creating Gui/config.mak" + cat > Gui/config.mak << EOF + # -------- Generated by configure ----------- +@@ -4435,6 +4467,7 @@ + + else + _def_gui='#undef HAVE_NEW_GUI' ++ _def_gtk2_gui='#undef HAVE_GTK2_GUI' + fi + # --------------- GUI specific tests end ------------------- + +@@ -4962,6 +4995,7 @@ + + /* gui support, please do not edit this option */ + $_def_gui ++$_def_gtk2_gui + + /* Audio output drivers */ + $_def_ossaudio diff --git a/media-video/mplayer/mplayer-0.90_rc1.ebuild b/media-video/mplayer/mplayer-0.90_rc1-r1.ebuild index a32a8f0fec33..34f4e4cf1820 100644 --- a/media-video/mplayer/mplayer-0.90_rc1.ebuild +++ b/media-video/mplayer/mplayer-0.90_rc1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-0.90_rc1.ebuild,v 1.1 2002/12/08 22:08:40 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-0.90_rc1-r1.ebuild,v 1.1 2002/12/13 02:48:50 azarah Exp $ IUSE="dga oss jpeg 3dfx sse matrox sdl X svga ggi oggvorbis 3dnow aalib gnome xv opengl truetype dvd gtk gif esd fbcon encode alsa directfb arts" @@ -27,11 +27,15 @@ HOMEPAGE="http://www.mplayerhq.hu/" # 'encode' in USE for MEncoder. # If 'dvd' in USE, only DEPEND on libdvdnav, as # we use libdvdkit that comes with. -RDEPEND=">=media-libs/xvid-0.9.0 - x86? ( >=media-libs/win32codecs-0.60 ) +RDEPEND="!x86? ( >=media-libs/xvid-0.9.0 ) + x86? ( >=media-libs/divx4linux-20020418 + >=media-libs/win32codecs-0.60 ) dvd? ( media-libs/libdvdnav ) - gtk? ( =x11-libs/gtk+-1.2* - media-libs/libpng ) + gtk? ( !gtk2 ( =x11-libs/gtk+-1.2* + =dev-libs/glib-1.2* ) + media-libs/libpng ) + gtk2? ( >=x11-libs/gtk+-2.0.6 + >=dev-libs/glib-2.0.6 ) jpeg? ( media-libs/jpeg ) gif? ( media-libs/giflib media-libs/libungif ) @@ -76,6 +80,8 @@ src_unpack() { cd ${WORKDIR}/default epatch ${FILESDIR}/default-skin.diff fi + + cd ${S}; epatch ${FILESDIR}/${P}-gtk2.patch } src_compile() { @@ -113,6 +119,9 @@ src_compile() { && myconf="${myconf} --enable-gui --enable-x11 \ --enable-xv --enable-vm --enable-png" + ( use gtk && use gtk2 ) \ + && myconf="${myconf} --enable-gtk2" + use truetype \ && myconf="${myconf} --enable-freetype" \ || myconf="${myconf} --disable-freetype" |