Patch to make XMMS InfoPipe to compile for Beep Media Player instead By Urpo Lankinen (Weyfour WWWWolf), 2004-08-26 This patch will make InfoPipe plugin to work in Beep Media Player as well. Some notes: - Do not attempt to run XMMS and BMP at the same time. This is a "drop-in replacement"; the infopipe will still be called /tmp/xmms-info and so on and so forth, and while XMMS keeps track of XMMS sessions, I'm guessing it won't track BMP sessions, so you're likely to clobber the pipes and stuff. Who wants to run two media players anyway? - This patch is against InfoPipe 1.3 distribution. Since all of the changes affect autoconf/automake stuff, you NEED the autotools to build this thing! And believe me, it still isn't easy! - Also removed the comment from configure.in, because seems to me m4 dies on it. - Installation, as usual, may be messy. You may want to rename /usr/lib/bmp/General/libinfopipe-1.3.so.1.0.1 to libinfopipe.so and nuke everything else. - There's no warranty for GPL'd proggies anyway, but it goes doubly for this patch. This is "it compiles, it runs - ship it!" kind of deal. =) Building this thing: - Untar. $ tar -zxvf xmms-infopipe-1.3.tar.gz $ cd xmms-infopipe-1.3 - Apply this patch. $ gunzip ../xmms-infopipe-1.3-for-beepmp.patch.gz $ patch -p1 < ../xmms-infopipe-1.3-for-beepmp.patch - Rebuild configurator. $ automake --add-missing --copy $ aclocal $ autoconf $ ./configure - You MAY need to do the following: $ make maintainer-clean $ automake --add-missing --copy $ aclocal $ autoconf $ ./configure (Yes, again!) ...depending on how stubborn automake and autoconf are to retain the XMMS and old-GTK+ stuff. - Then, just build and install. $ make $ su # make install # cd /usr/lib/beep/General # (massive global delete deleting everything but libinfopipe-1.3.so.1.0.1) # mv libinfopipe-1.3.so.1.0.1 libinfopipe.so - (Re)start BMP and enjoy. ---------------------------------------------------------------------- diff -u -r xmms-infopipe-1.3.orig/configure.in xmms-infopipe-1.3/configure.in --- xmms-infopipe-1.3.orig/configure.in Wed Feb 20 17:06:37 2002 +++ xmms-infopipe-1.3/configure.in Thu Aug 26 23:43:51 2004 @@ -1,12 +1,3 @@ -divert(-1) - -The configurescriptbuilding kewl fewl for xmms-webinfo plugin... -Copyright (c) Weyfour WWWWolf Dec 9 2000 - -$Id: configure.in,v 1.5 2002/02/20 15:06:37 wwwwolf Exp $ - - -divert AC_INIT(src/infopipe.c) AM_INIT_AUTOMAKE(xmms-infopipe, 1.3) @@ -25,22 +16,9 @@ dnl *** checks for libraries -AM_PATH_GLIB(1.2.0, - [LIBS="$LIBS $GLIB_LIBS" - CFLAGS="$CFLAGS $GLIB_CFLAGS"], - AC_MSG_ERROR(You need glib 1.2 or later to build this plug-in.)) - -dnl *** This mostly in anticipation of next release, but it *may* be needed -dnl now, too... -AM_PATH_GTK(1.2.0, - [LIBS="$LIBS $GTK_LIBS" - CFLAGS="$CFLAGS $GTK_CFLAGS"], - AC_MSG_ERROR(You need GTK+ 1.2 or later to build this plug-in.)) - -AM_PATH_XMMS(1.0.0, - [LIBS="$LIBS $XMMS_LIBS" - CFLAGS="$CFLAGS $XMMS_CFLAGS"], - AC_MSG_ERROR(You need XMMS version >= 1.0.0, naturally.)) +PKG_CHECK_MODULES(MYLIBS, bmp >= 0.9.6 glib-2.0 >= 2.4, + [LIBS="$LIBS $MYLIBS_LIBS" CFLAGS="$CFLAGS $MYLIBS_CFLAGS"], + AC_MSG_ERROR(You need BMP dev files, as well as GLib dev files.)) dnl *** checks for header files diff -u -r xmms-infopipe-1.3.orig/src/Makefile.am xmms-infopipe-1.3/src/Makefile.am --- xmms-infopipe-1.3.orig/src/Makefile.am Sun May 19 14:25:23 2002 +++ xmms-infopipe-1.3/src/Makefile.am Thu Aug 26 23:43:58 2004 @@ -6,7 +6,7 @@ INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) lib_LTLIBRARIES = libinfopipe.la -libdir = $(XMMS_GENERAL_PLUGIN_DIR) +libdir = `pkg-config bmp --variable general_plugin_dir` # Somehow, infopipe.h wasn't included... EXTRA_DIST = infopipe.h infopipe_config.h