mms-1.1.0_pre1832.ebuild

Moderator: Moderator

User avatar
vitalogy
Posts: 39
Joined: Tue Sep 04, 2007 5:31 pm
Location: Germany

mms-1.1.0_pre1832.ebuild

Postby vitalogy » Mon Dec 24, 2007 4:22 pm

dvb and dxr3 is not tested
fancylook is enabled by default

update 03.02.08
svga is gone
include OpenglConfig.patch

update 04.02.08
added imms support (you need media-sound/imms from the joshuarich-gentoo-overlay - please use layman for this Howto Overlays & Layman)

update 07.02.08
mms-1.1.0_rc2 released
added "weather" use-flag + WeatherConfig.patch to locate right place of get_weather.sh
please set Weather.xml in /etc/mms/WeatherConfig to a writeble dir
removed stuff from rc1

update 08.02.08
mms-1.1.0_rc3 released
"emake -j1 || die" in the ebuild commented out

update 31.03.08
mms-1.1.0_rc5 released
added use-flags for clock & notify-area (so this will be enabled by default for the next ebuild i think)

update 04.05.08
mms-1.1.0_rc6 released
added ffmpeg-thumb use-flag (if not set mplayer will be installed)
removed boost use-flag (mms can use external boost)
removed clock use-flag (if notify-area is enable, clock is also enable)
added vbox use-flag (not tested)
added information that imms is not working
added patch for the Makefile in plugins, so that the scripts dir is not set outside the sandbox

update 27.08.08
mms-1.1.0_rc8 released - but we will use mms-bzr revno 1832 (there are a few minor bugfixes since rc8)
the ebuild must be called mms-1.1.0_pre1832.ebuild in /path/to/your/local/overlay/media-video/mms
removed imms use-flag
removed pyglets use-flag (all pygelts shipped with mms-package will be installed)



please add "cpudetection" to your use-flags

Code: Select all

echo "media-video/mms cpudetection" >> /etc/portage/package.use


media-video/mms-1.1.0_pre1832.ebuild

Code: Select all

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

MY_PV=${PV/_pre/-}
MY_P=${PN}-${MY_PV}
S=${WORKDIR}/${MY_P}

DESCRIPTION="Menu system for easy movie and audio playback and image viewing."
HOMEPAGE="http://mymediasystem.org"

SRC_URI="http://mms.mymediasystem.net/mms110/nightly-snapshot/${MY_P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="cpudetection debug dvb dxr3 epg ffmpeg game gstreamer input_devices_evdev lcd lirc mpeg notify-area opengl radio resolution sdl xine tv vbox weather X"

RDEPEND="sys-devel/gettext
   sys-devel/libtool
   media-libs/imlib2
   media-libs/taglib
   dev-cpp/commoncpp2
   dev-libs/libpcre
   dev-libs/glib
   =dev-db/sqlite-3*
   sys-libs/ncurses
   sys-apps/eject
   sys-fs/inotify-tools
   >=dev-libs/boost-1.34
   >=dev-lang/python-2.5
   xine? ( media-libs/xine-lib
         media-video/cxfe )
   !xine? ( gstreamer? ( >=media-libs/gstreamer-0.10 ) )
   !xine? ( !gstreamer? ( media-sound/alsaplayer ) )
   lcd? ( app-misc/lcdproc )
   lirc? ( app-misc/lirc )
   opengl? ( virtual/opengl )
   dxr3? ( media-video/em8300-libraries )
   ffmpeg? ( media-video/ffmpeg )
   sdl? ( media-libs/libsdl )
   X? ( x11-libs/libXext
      x11-libs/libX11
      x11-libs/libXau
      x11-libs/libXdmcp )
   epg? ( media-tv/xmltv dev-libs/libxml2 )"

DEPEND="${RDEPEND}"

src_unpack() {
        unpack ${A}
        cd "${S}"
}

src_compile() {

#   enabled by default: inotify, ffmpeg-thumb, pyglets and fancylook for audio,movie & game

   local myconf="--prefix=/usr --enable-python"

   if ! use epg; then
      myconf="${myconf} --disable-epg"
   fi         

   if use xine; then
      myconf="${myconf} --enable-xine-audio --disable-alsaplayer"
      einfo "Selecting xine instead of gstreamer or alsaplayer."
   elif use gstreamer; then
      myconf="${myconf} --enable-gst-audio --disable-alsaplayer"
      einfo "Selecting gstreamer instead of xine or alsaplayer."
   else
      einfo "Selecting alsaplayer instead of xine or gstreamer."
   fi

   use cpudetection || myconf="${myconf} --disable-optimization"
   use debug && myconf="${myconf} --enable-debug --enable-benchmark"
   use dvb && myconf="${myconf} --enable-dvb"
   use dxr3 && myconf="${myconf} --enable-dxr3"
   use ffmpeg || myconf="${myconf} --use-internal-ffmpeg"
   use game && myconf="${myconf} --enable-game"
   use input_devices_evdev && myconf="${myconf} --enable-evdev"
   use lcd && myconf="${myconf} --enable-lcd"
   use lirc && myconf="${myconf} --enable-lirc"
   use mpeg && myconf="${myconf} --enable-mpeg"
   use notify-area && myconf="${myconf} --enable-clock --enable-notify-area"
   use opengl && myconf="${myconf} --enable-opengl"
   use radio || myconf="${myconf} --disable-radio"
   use resolution && myconf="${myconf} --enable-res-switch"
   use sdl || myconf="${myconf} --disable-sdl"
   use X || myconf="${myconf} --disable-x11-sdl"
   use tv && myconf="${myconf} --enable-tv"
   use vbox && myconf="${myconf} --enable-vbox"
   use weather && myconf="${myconf} --enable-weather"

   ./configure ${myconf} || die "configure failed."
   einfo "./configure ${myconf}"

   sed -i 's/"tinyxml.h"/"..\/tinyxml\/tinyxml.h"/' plugins/feature/audio/lyrics.cpp
   sed -i 's/"tinystr.h"/"..\/tinyxml\/tinystr.h"/' plugins/feature/audio/lyrics.cpp
   sed -i 's/"tinyxml.h"/"..\/tinyxml\/tinyxml.h"/' plugins/feature/audio/shoutcast.cpp
   sed -i 's/"tinystr.h"/"..\/tinyxml\/tinystr.h"/' plugins/feature/audio/shoutcast.cpp

   emake || die "emake failed."

#   emake CXX="$(tc-getCXX)" C="$(tc-getCC)" CC="$(tc-getCC)" \
#      EXTRA_FLAGS="${CFLAGS}" OPTIMIZATION="" || die "emake failed."

}

src_install() {

   emake INSTALLSTRIP="" DESTDIR="${D}" install || die "emake install failed."

   dodoc doc/LICENSE doc/README
}

pkg_postinst() {
   einfo "Be sure to change Configs in /etc/mms to your needs"
   einfo "You also need to place a TV.xml file in /etc/mms for epg to work"
   einfo
   einfo "Documentation is available online: http://wiki.mymediasystem.org"
   einfo

   if ! use xine; then
      ewarn "Be sure you have installed mplayer separately to view videos"
      ewarn
   fi

   if use evdev ; then
      ewarn "Be sure you have enable INPUT_EVDEV in your kernel to use EVDEV!"
      ewarn
      ewarn " Device Drivers"
      ewarn "   Input device support"
      ewarn "     <*>/<M> Event interface"
      ewarn
   fi

   if use game ; then
      einfo "You have enabled the game Use-Flag"
      einfo "You can choose from the following Game-Emulators:"
      einfo "    games-emulation/xmame - Multiple Arcade Machine Emulator"
      einfo "    games-emulation/zsnes - SNES (Super Nintendo) emulator"
      einfo "    games-emulation/epsxe - ePSXe PlayStation Emulator"
      einfo
   fi
}


the ftp-server is not ready
or
for all who want do not copy & paste or it does not function:
HOWTO Installing 3rd Party Ebuilds

so here the short version
    cd /your/local/overlay
    mkdir -p media-video/mms
    cd media-video/mms
    wget ftp://83.142.84.214/gentoo-ebuild/mms/m ... rc6.ebuild
    ebuild /your/local/overlay/media-video/mms/mms-1.1.0_rc6.ebuild digest
    echo "=media-video/mms-1.1.0_rc6" >> /etc/portage/package.keywords
    emerge -av =media-video/mms-1.1.0_rc6
Last edited by vitalogy on Wed Aug 27, 2008 4:33 pm, edited 16 times in total.

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Re: mms-1.1.0_rc1.ebuild

Postby acmelabs » Mon Dec 24, 2007 5:32 pm

vitalogy wrote:...

I don't have Gentoo running, but I'd like to thank you very much for your work.

Merry X-Mas to you too.

Regards,
Andreas

ps: I've set it to "Announcement" and set a few links from our wiki.

User avatar
vitalogy
Posts: 39
Joined: Tue Sep 04, 2007 5:31 pm
Location: Germany

Postby vitalogy » Mon Dec 24, 2007 8:32 pm

be careful - this ebuild is not perfect, so there will be some failures
so it works on my two pc's

note: you should activate cpudetection to build mms for your host-cpu, so if not activate it will be build for i386

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Mon Dec 24, 2007 11:05 pm

vitalogy wrote:be careful - this ebuild is not perfect, so there will be some failures
so it works on my two pc's

note: you should activate cpudetection to build mms for your host-cpu, so if not activate it will be build for i386

All new stuff isn't perfect - So I think it isn't a real big surprise ;-)
But if you don't mind, you could update this thread, if you have any news. I mean always updating the very first post, so people can see at once the latest state of development, since a few links are pointing now straight at it.

Your work is very much appreciated. Thanks again.

Regards,
Andreas

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: mms-1.1.0_rc1.ebuild

Postby Uatschitchun » Tue Dec 25, 2007 8:26 am

vitalogy wrote:known problems: the OpenglConfig is not copied in /etc/mms/ (so i don't know why)


That's because it was missing in Makefile! The part in Makefile should look (and does in revno 1299) like this:

Code: Select all

ifeq ($(VO_OPENGL),yes)
        @if test ! -f $(DESTDIR)$(CONFIGDIR)/Config ; then $(INSTALL) -c -m 644 cfg/Config-opengl $(DESTDIR)$(CONFIGDIR)/Config && $(ETC_PATCH); fi
        @if test ! -f $(DESTDIR)$(CONFIGDIR)/MovieConfig ; then $(INSTALL) -c -m 644 cfg/MovieConfig-sdl $(DESTDIR)$(CONFIGDIR)/MovieConfig ; fi
        @if test ! -f $(DESTDIR)$(CONFIGDIR)/XineConfig ; then $(INSTALL) -c -m 644 cfg/XineConfig-sdl $(DESTDIR)$(CONFIGDIR)/XineConfig ; fi
        @if test ! -f $(DESTDIR)$(CONFIGDIR)/MplayerConfig ; then $(INSTALL) -c -m 644 cfg/Mplayer-sdl $(DESTDIR)$(CONFIGDIR)/MplayerConfig ; fi
        @if test ! -f $(DESTDIR)$(CONFIGDIR)/OpenglConfig ; then $(INSTALL) -c -m 644 cfg/OpenglConfig $(DESTDIR)$(CONFIGDIR)/OpenglConfig ; fi
endif


Nice work!!

If you stumble across more like this, feel free to open up a bug-report on it! If we have fixed main installation/packaging issues, we should convince Anders to do a rc2 ;)
Lg
Roman

audiotrainer
Posts: 1
Joined: Thu Jan 03, 2008 12:09 pm

lyrics.cpp: Can't find headers at compile time

Postby audiotrainer » Thu Jan 03, 2008 12:37 pm

Hi,

I've tested the ebuild - thanks so far for your work.

I've found out that there seems to be an unmet dependency which seems to belong to an audio (lyrics) plugin.

When compiling:

Code: Select all

# ebuild /usr/local/portage/media-video/mms/mms-1.1.0_rc1.ebuild compile

>>> Unpacking source...
>>> Unpacking mms-1.1.0-rc1.tar.bz2 to /var/tmp/portage/media-video/mms-1.1.0_rc1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1 ...
Checking for external boost library
- test failed, using internal boost version

Checking for correct version of sqlite
- test ok

Checking for presence of taglib
- test ok

Checking for alsaplayer
- test ok

Checking for sdl
- test ok

Checking for sdl
- test ok

Checking for openGL
- test ok

Checking namespace compatibility for libfs++
- test ok

Checking for commoncpp2
- test ok


Configuring mms

Checking for CPU vendor ...
GenuineIntel (6:8:6)
Checking for CPU type ...
 Pentium III (Coppermine)

Checking your c++ compiler version... 4.1

done configuring mms

Creating config.h

Creating config.mak

Done configuring!

mms configured with:
====================
prefix: "/usr"

Options:
--------
music: no radio
 - fancy audio: yes
 - imms: no
 - Player: Alsaplayer
movie: all
picture: all
epg: no
 - epg picture: no
python: no
tv: disabled
game: disabled

Input:
------
keyboard: yes
lirc: yes
evdev: yes

Output:
-------
dxr3: no
sdl: yes
opengl: yes
dvb: no
vga: yes
lcd: no
mpeg: no

Misc:
-----
inotify: no
gettext: yes
benchmark: no
external boost: no
debug: no
optimizing for architecture: pentium3
optimizing for size: no
======================

./version.sh
make clean
make[1]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1'
make[2]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins'
make[3]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature'
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio'
make[5]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio/po'
make[5]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio/po'
make[5]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio/players'
make[6]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio/players/alsaplayer'
make[6]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio/players/alsaplayer'
make[5]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio/players'
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio'
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie'
make[5]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/po'
make[5]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/po'
make[5]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players'
make[6]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players/mplayer'
make[7]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players/mplayer/po'
make[7]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players/mplayer/po'
make[6]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players/mplayer'
make[6]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players/xine'
make[6]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players/xine'
make[6]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players/genericplayer'
make[7]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players/genericplayer/po'
make[7]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players/genericplayer/po'
make[6]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players/genericplayer'
make[5]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie/players'
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/movie'
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/picture'
make[5]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/picture/po'
make[5]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/picture/po'
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/picture'
make[3]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature'
make[3]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/output'
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/output/sdl'
make[5]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/output/sdl/po'
make[5]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/output/sdl/po'
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/output/sdl'
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/output/opengl'
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/output/opengl'
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/output/vgagl'
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/output/vgagl'
make[3]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/output'
make[3]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input'
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/keyboard'
make[5]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/keyboard/termio'
make[5]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/keyboard/termio'
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/keyboard'
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/replay'
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/replay'
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/lirc'
make[5]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/lirc/po'
make[5]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/lirc/po'
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/lirc'
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/evdev'
make[5]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/evdev/po'
make[5]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/evdev/po'
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input/evdev'
make[3]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/input'
make[2]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins'
make[2]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/po'
make[2]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/po'
make[2]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/audio-library'
make[2]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/audio-library'
make[2]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/movie-library'
make[2]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/movie-library'
make[2]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/pic-library'
make[2]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/pic-library'
make[1]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1'
make depend
make[1]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1'
./version.sh
make -C plugins depend
make[2]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins'
make -C feature depend
make[3]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature'
make -C audio depend
make[4]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio'
make -C players depend
make[5]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio/players'
make -C alsaplayer depend
make[6]: Entering directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio/players/alsaplayer'
g++ -MM -I/usr/local/include -I/usr/include/ -I. -pthread -pipe -O3 -march=pentium3 -ffast-math -funroll-loops -fomit-frame-pointer -D_GNU_SOURCE   -I/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/libs -I../ -I../../ -I../../../ -I../../../../ -I../../../../ -I../../../../../ -I../../../../output/ -I../../../../input/ -fPIC -shared alsaplayer_config.cpp alsaplayer.cpp alsaplayer_plugin.cpp 1> .depend
make[6]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio/players/alsaplayer'
g++ -MM -I/usr/local/include -I/usr/include/ -I. -pthread -pipe -O3 -march=pentium3 -ffast-math -funroll-loops -fomit-frame-pointer -D_GNU_SOURCE   -I/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/libs -I../ -I../../ -I../../../ -I../../../../ -I../../../output/ -I../../../input/ -fPIC -shared audio_player.cpp 1> .depend
make[5]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio/players'
g++ -MM -I/usr/local/include -I/usr/include/ -I. -pthread -pipe -O3 -march=pentium3 -ffast-math -funroll-loops -fomit-frame-pointer -D_GNU_SOURCE   -I/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/libs -I. -I../ -I../../ -I../../../ -I../../output/ -I../../input/    -I./players/ -fPIC -shared `pkg-config --cflags taglib` audio_config.cpp audio_s.cpp audio.cpp shuffle_list.cpp audio_opts.cpp audio_plugin.cpp simple_audio.cpp lastfm.cpp CD_Tag.cpp sha1.c base64.c lyrics.cpp dbaudiofile.cpp graphical_audio.cpp 1> .depend
lyrics.cpp:17:21: error: tinyxml.h: No such file or directory
lyrics.cpp:18:21: error: tinystr.h: No such file or directory
make[4]: *** [depend] Error 1
make[4]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature/audio'
make[3]: *** [depend] Error 2
make[3]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins/feature'
make[2]: *** [depend] Error 2
make[2]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1/plugins'
make[1]: *** [depend] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-video/mms-1.1.0_rc1/work/mms-1.1.0-rc1'
make: *** [version.h] Error 2
 *
 * ERROR: media-video/mms-1.1.0_rc1 failed.
 * Call stack:
 *              ebuild.sh, line 1701:  Called dyn_compile
 *              ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *              ebuild.sh, line   44:  Called src_compile
 *   mms-1.1.0_rc1.ebuild, line  143:  Called die
 * The specific snippet of code:
 *      emake -j1 || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-video/mms-1.1.0_rc1/temp/build.log'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 *


Trying to find out what could be wrong with lyrics.cpp:

Code: Select all

# cd /var/tmp/portage/media-video/mms-1.1.0_rc1/work/

# find . -name "lyrics.cpp"
./mms-1.1.0-rc1/plugins/feature/audio/lyrics.cpp

# find . -name "tinyxml.h"
./mms-1.1.0-rc1/plugins/feature/tinyxml/tinyxml.h

# find . -name "tinystr.h"
./mms-1.1.0-rc1/plugins/feature/tinyxml/tinystr.h


=> Though the headers exist in the build, they can't be found at compile time.

Anyway, I don't need this lyrics feature (whatever it is ...) :roll:

How can I disable it? Do I have to path the local (default) config? Would be very ugly ...

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Jan 03, 2008 6:31 pm

This is how the line should look:
g++ -MM -I/usr/local/include -I/usr/include/ -I. -pthread -pipe -O3 -march=pentium-m -ffast-math -funroll-loops -fomit-frame-pointer -D_GNU_SOURCE -isystem/usr/local/src/mms/mms-1.1.0.work/libs -I. -I../ -I../../ -I../../../ -I../../output/ -I../../input/ -I../tinyxml/ -I./players/ -fPIC -shared `pkg-config --cflags taglib` audio_config.cpp audio_s.cpp audio.cpp shuffle_list.cpp audio_opts.cpp audio_plugin.cpp simple_audio.cpp lastfm.cpp CD_Tag.cpp sha1.c base64.c lyrics.cpp dbaudiofile.cpp graphical_audio.cpp 1> .depend

The bold part is missing in your "make depend" ... ?! :roll:

I don't know how gentoo handles depends (RDEPEND?), but it should include that dir, which is normally done by "make depend" automatically ...
Maybe it should be handled like dependency to "boost"? Something like:
tinyxml? ( >=dev-libs/tinyxml-??? )

to tell emake to use the included lib?

Does an ebuild disrespect "make depend"?

Anyway, you can't disable lyrics as it is no single plugin, but part of audio-plugin. For to disable it, you'll have to patch the source :?
Lg

Roman

Tratonis
Posts: 3
Joined: Sun Jan 06, 2008 1:32 pm

Postby Tratonis » Sun Jan 06, 2008 1:37 pm

this ebuild will fix the tinyxml problem:

Code: Select all

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

MY_PV=${PV/_/-}
MY_P=${PN}-${MY_PV}
S=${WORKDIR}/${MY_P}

DESCRIPTION="Menu system for easy movie and audio playback and image viewing."
HOMEPAGE="http://mymediasystem.org"

#SRC_URI="http://mms.sunsite.dk/${PN}-1.1.0-rc1.tar.bz2"
SRC_URI="http://mms.sunsite.dk/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="boost cpudetection debug dvb dxr3 epg evdev game gstreamer imms inotify lcd lirc opengl plugins radio svga sdl xine tv X"

RDEPEND="sys-devel/gettext
   sys-devel/libtool
   media-libs/imlib2
   media-libs/taglib
   dev-cpp/commoncpp2
   dev-libs/libpcre
   dev-libs/glib
   dev-db/sqlite
   sys-libs/ncurses
   sys-apps/eject
   boost? ( >=dev-libs/boost-1.34 )
   gstreamer? ( media-plugins/gst-plugins-alsa )
   xine? ( media-video/xine-ui )
   !xine? ( media-video/mplayer )
   !gstreamer? ( !xine? ( media-sound/alsaplayer) )
   evdev? ( x11-drivers/xf86-input-evdev )
   plugins? ( dev-lang/python )
   inotify? ( sys-fs/inotify-tools )
   lirc? ( app-misc/lirc )
   lcd? ( app-misc/lcdproc )
   svga? ( media-libs/svgalib )
   sdl? ( media-libs/libsdl )
   opengl? ( virtual/opengl )
   dxr3? ( media-video/em8300-libraries )
   X? ( x11-base/xorg-x11 )
   epg? ( media-tv/xmltv dev-libs/libxml2 )"

DEPEND="${RDEPEND}
   sys-devel/autoconf
   sys-devel/automake"

src_unpack() {
        unpack ${A}
        cd "${S}"
}

src_compile() {

#   enabled by default: fancylook for audio,movie & game

   local myconf

   if ! use epg
   then
      myconf="${myconf} --disable-epg"
   else
      myconf="${myconf} --enable-picture-epg"
   fi         

   if use xine
   then
      myconf="${myconf} --enable-xine-audio --disable-alsaplayer"
   elif use gstreamer
   then
      myconf="${myconf} --enable-gst-audio --disable-alsaplayer"
   fi

   ( ! use cpudetection ) \
   && myconf="${myconf} --disable-optimization"

   ( use debug ) \
   && myconf="${myconf} --enable-debug"

   ( use dvb ) \
   && myconf="${myconf} --enable-dvb"

   ( use dxr3 ) \
   && myconf="${myconf} --enable-dxr3"

   ( use evdev ) \
   && myconf="${myconf} --enable-evdev"

   ( ! use inotify) \
   && myconf="${myconf} --disable-inotify"

   ( use game) \
   && myconf="${myconf} --enable-game"

   ( ! use imms ) \
   && myconf="${myconf} --disable-imms"

   ( use lcd ) \
   && myconf="${myconf} --enable-lcd"

   ( use lirc ) \
   && myconf="${myconf} --enable-lirc"

   ( use opengl ) \
   && myconf="${myconf} --enable-opengl"

   ( use plugins ) \
   && myconf="${myconf} --enable-python"

   ( ! use radio) \
   && myconf="${myconf} --disable-radio"

   ( ! use sdl ) \
   && myconf="${myconf} --disable-sdl"

   ( ! use X ) \
   && myconf="${myconf} --disable-x11-sdl"

   ( use svga ) \
   && myconf="${myconf} --enable-vgagl"

   ( use tv) \
   && myconf="${myconf} --enable-tv"

#   ( use gstreamer) \
#   && myconf="${myconf} --enable-gst-audio"

#   ( use xine) \
#   && myconf="${myconf} --enable-xine-audio"

#   if use xine use gstreamer; then
#      myconf="${myconf} --disable-alsaplayer"
echo $myconf
   ./configure --prefix=/usr \
      ${myconf} || die
   sed -i 's/"tinyxml.h"/"..\/tinyxml\/tinyxml.h"/' plugins/feature/audio/lyrics.cpp
   sed -i 's/"tinystr.h"/"..\/tinyxml\/tinystr.h"/' plugins/feature/audio/lyrics.cpp
   sed -i 's/"tinyxml.h"/"..\/tinyxml\/tinyxml.h"/' plugins/feature/audio/shoutcast.cpp
   sed -i 's/"tinystr.h"/"..\/tinyxml\/tinystr.h"/' plugins/feature/audio/shoutcast.cpp

   emake -j1 || die
}

src_install() {
   emake DESTDIR="${D}" install || die "Failed to install mms!"

   dodoc doc/LICENSE doc/README
}

pkg_postinst() {
   einfo "Be sure to change Configs in /etc/mms to your needs"
   einfo "You also need to place a TV.xml file in /etc/mms for epg to work"
   einfo
   einfo "Documentation is available online: http://wiki.mymediasystem.org"
   einfo

#   if use evdev && ! linux_chkconfig_present INPUT_EVDEV ; then
#      ewarn "You must enable INPUT_EVDEV in your kernel to use EVDEV!"
#      ewarn
#      ewarn " Device Drivers"
#      ewarn " Input device support"
#      ewarn " <*>/<M> Event interface"
#      ewarn
#   fi

   if use game ; then
      einfo "You have enabled the game Use-Flag"
      einfo "You can choose from the following Emulators:"
      einfo "    games-emulation/xmame - Multiple Arcade Machine Emulator"
      einfo "    games-emulation/zsnes - SNES (Super Nintendo) emulator"
      einfo "    games-emulation/epsxe - ePSXe PlayStation Emulator"
      einfo
   fi
}

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Sun Jan 06, 2008 4:20 pm

You could add this link to 1.post ...

http://www.prodeia.de/mms/mms-1.1.0.ebuild
Lg

Roman

SK
Posts: 5
Joined: Tue Dec 06, 2005 11:01 am
Location: Germany

Postby SK » Wed Jan 09, 2008 4:46 pm

Hi,

Uatschitchun wrote:You could add this link to 1.post ...

http://www.prodeia.de/mms/mms-1.1.0.ebuild


how can i use it?

Stefan Kuhne

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Jan 10, 2008 6:59 am

SK wrote:how can i use it?

Don't ask me, I'm no gentoorian :twisted:

Just thought it would be more simple to download the ebuild, than to c&p ..
Lg

Roman

Tratonis
Posts: 3
Joined: Sun Jan 06, 2008 1:32 pm

Postby Tratonis » Thu Jan 10, 2008 12:45 pm

SK wrote:Hi,

how can i use it?

Stefan Kuhne


Hi Sk,

see here: http://gentoo-wiki.com/HOWTO_Installing ... ty_Ebuilds

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Jan 10, 2008 2:13 pm

I've moved this thread ...

Would be nice if 1st post could be adapted for to make it easier to find propper information.
Lg

Roman

Telexen
Posts: 1
Joined: Wed Jan 23, 2008 6:02 am

Postby Telexen » Wed Jan 23, 2008 6:04 am

I would like to install MMS on Gentoo, but I get this error when I've added the ebuild (the 1.1.0 one linked to just above) and attempt to create a digest:

Code: Select all

# ebuild mms-1.1.0.ebuild digest
/usr/portage/local/my/media-video/mms/mms-1.1.0.ebuild: line 79: syntax error near unexpected token `\ '
/usr/portage/local/my/media-video/mms/mms-1.1.0.ebuild: line 79: `   ( ! use cpudetection ) \ '
 *
 * ERROR: media-video/mms-1.1.0 failed.
 * Call stack:
 *   ebuild.sh, line 1590:  Called die
 * The specific snippet of code:
 * QA Notice: 'sed' called in global scope: media-video/mms-1.1.0
 * QA Notice: 'sed' called in global scope: media-video/mms-1.1.0
 *   source ${EBUILD} || die "error sourcing ebuild"
 *  The die message:
 *   error sourcing ebuild
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 *


I've edited a few ebuilds in my day, but this is above my head.

Lake-end
Posts: 42
Joined: Fri Nov 30, 2007 3:06 pm
Location: Tampere, Finland
Contact:

Corrected (?) Ebuild

Postby Lake-end » Fri Feb 01, 2008 8:54 am

With these changes I am at least able to "digest" the ebuild. With the previous given ebuilds there are few errors. Changed lines in BOLD

EDIT: No (code) tags or else the bold does not show.


EDIT: Please see the first post for the correct ebuild script.
Last edited by Lake-end on Wed Feb 06, 2008 7:37 am, edited 3 times in total.


Return to “announcements”

Who is online

Users browsing this forum: No registered users and 2 guests