Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Aqualung (audio player) svn ebuild
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
madman2003
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 178

PostPosted: Sun Aug 06, 2006 6:57 pm    Post subject: Aqualung (audio player) svn ebuild Reply with quote

Here is an ebuild for aqualung, a media player i have been using for a while now. It's pretty unknown, but nevertheless pretty nice.
It's focus lies with high quality and gapless playback. It has good jack support.

http://aqualung.sourceforge.net

Hopefully the ebuild is of use to some. It's not a flawless player, but what is :-)

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

inherit subversion eutils autotools

IUSE="sndfile mod mad vorbis speex flac musepack wavpack ffmpeg taglib ladspa cddb cdda jack alsa oss loop-playback systray debug"

DESCRIPTION="Aqualung"
HOMEPAGE="http://aqualung.sourceforge.net"
SRC_URI=""

ESVN_REPO_URI="https://svn.sourceforge.net/svnroot/aqualung/trunk"
ESVN_PROJECT="aqualung"
ESVN_PATCHES=""

LICENSE="GPL-2"
SLOT="0"

KEYWORDS="-*"

RDEPEND="vorbis? ( >=media-libs/libvorbis-1.0 )
   libsndfile? ( >=media-libs/libsndfile-1.0.12 )
   flac? ( media-libs/flac )
   mod? ( media-libs/libmodplug )
   alsa? ( virtual/alsa )
   mp3? ( media-libs/libmad )
   musepack? ( media-libs/libmpcdec )
   ffmpeg? ( media-video/ffmpeg )
   speex? ( media-libs/speex media-libs/liboggz )
   wavpack? ( >=media-sound/wavpack-4.40.0 )
   cddb? ( !amd64? ( >=media-libs/libcddb-1.2.1 ) )
   cddb? ( amd64? ( >=media-libs/libcddb-1.3.0 ) )
   jack? ( media-sound/jack-audio-connection-kit )
   taglib? ( >=media-libs/taglib-1.4 )
   cdda? ( dev-libs/libcdio )
   systray? ( >=x11-libs/gtk+-2.10 )
   loop-playback? ( >=x11-libs/gtk+-2.8 )
   media-libs/libsamplerate
   >=x11-libs/gtk+-2.6"

DEPEND="ladspa? ( >=media-libs/liblrdf-0.4.0 )
   >=dev-util/pkgconfig-0.9.0
   dev-libs/libxml2
   media-libs/raptor
   ${RDEPEND}"

src_unpack() {
   subversion_src_unpack
   cd "${S}"
   # subversion.eclass strips the .svn folder, so i'm injecting a version.h
   echo "#define AQUALUNG_VERSION \"R-$(cd "${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}" ; svn info | grep '^Revision' | awk '{print $2}')\"" > src/version.h
}

src_compile() {
   eautoreconf || die
   econf \
      `use_with flac` \
      `use_with vorbis ogg` \
      `use_with sndfile` \
      `use_with alsa` \
      `use_with mad mpeg` \
      `use_with oss` \
      `use_with jack` \
      `use_with mod` \
      `use_with musepack mpc` \
      `use_with ffmpeg lavc` \
      `use_with speex` \
      `use_with wavpack` \
      `use_with cddb` \
      `use_with systray` \
      `use_with ladspa` \
      `use_with taglib metadata` \
      `use_with cdda` \
      `use_with loop-playback loop` \
      `use_enable debug` \
      || die "econf failed"
   
   emake || die "make failed"
}

src_install() {
   emake install DESTDIR="${D}" || die "make install failed"
}


Last edited by madman2003 on Sat May 26, 2007 8:28 pm; edited 17 times in total
Back to top
View user's profile Send private message
madman2003
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 178

PostPosted: Sat Aug 12, 2006 7:53 pm    Post subject: Reply with quote

Updated ebuild with new use flags:

jack (previously required for the ringbuffer aqualung used)
ladspa (can now be turned off)
Back to top
View user's profile Send private message
evermind
Guru
Guru


Joined: 10 Jan 2004
Posts: 322

PostPosted: Mon Aug 14, 2006 9:22 pm    Post subject: Reply with quote

updated to the proaudio overlay

btw is the dependency libxml correct? don't we need libxml2?
Back to top
View user's profile Send private message
madman2003
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 178

PostPosted: Tue Aug 15, 2006 8:53 am    Post subject: Reply with quote

You're right.
Back to top
View user's profile Send private message
SPY_jmr1
n00b
n00b


Joined: 02 Jan 2004
Posts: 62

PostPosted: Wed Aug 16, 2006 11:10 pm    Post subject: Reply with quote

On my setup, line five
Code:

inherit cvs eutils autotool
needed to be changed to
Code:

inherit cvs eutils autotools
to get the ebuild to digest... But then i'm dying when it goes to build.

What are the deps on this ebuild?

Spy
Back to top
View user's profile Send private message
madman2003
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 178

PostPosted: Thu Aug 17, 2006 8:00 am    Post subject: Reply with quote

SPY_jmr1 wrote:
On my setup, line five
Code:

inherit cvs eutils autotool
needed to be changed to
Code:

inherit cvs eutils autotools
to get the ebuild to digest... But then i'm dying when it goes to build.

What are the deps on this ebuild?

Spy


I had a autotool.eclass in an overlay, fixed ebuild now.
Back to top
View user's profile Send private message
SPY_jmr1
n00b
n00b


Joined: 02 Jan 2004
Posts: 62

PostPosted: Thu Aug 17, 2006 7:07 pm    Post subject: Reply with quote

Thanks for the update, testing now.

Spy
Back to top
View user's profile Send private message
evermind
Guru
Guru


Joined: 10 Jan 2004
Posts: 322

PostPosted: Fri Aug 18, 2006 8:38 am    Post subject: Reply with quote

thx added but I've changed it a bit
Code:
--- aqualung-forums.ebuild   2006-08-18 10:32:37.000000000 +0200
+++ aqualung-9999.ebuild   2006-08-18 10:30:06.000000000 +0200
 --snip-- --> fixed


Last edited by evermind on Wed Aug 23, 2006 8:03 am; edited 1 time in total
Back to top
View user's profile Send private message
madman2003
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 178

PostPosted: Fri Aug 18, 2006 7:29 pm    Post subject: Reply with quote

I can understand most changes (and i will change them as well), but why gtk+-2.4 and the libsamplefile-1.0.12?
Back to top
View user's profile Send private message
evermind
Guru
Guru


Joined: 10 Jan 2004
Posts: 322

PostPosted: Fri Aug 18, 2006 8:28 pm    Post subject: Reply with quote

madman2003 wrote:
I can understand most changes (and i will change them as well), but why gtk+-2.4 and the libsamplefile-1.0.12?

during configuration I saw this version printed so I changed them accordingly
Back to top
View user's profile Send private message
madman2003
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 178

PostPosted: Fri Aug 18, 2006 9:15 pm    Post subject: Reply with quote

All changes except the -* keyword have been made.
Back to top
View user's profile Send private message
evermind
Guru
Guru


Joined: 10 Jan 2004
Posts: 322

PostPosted: Fri Aug 18, 2006 11:46 pm    Post subject: Reply with quote

madman2003 wrote:
All changes except the -* keyword have been made.

this thing is just for the standard rule for snapshots ebuilds in the overlay cause you never know if a snapshot builds/run
Back to top
View user's profile Send private message
madman2003
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 178

PostPosted: Sat Aug 19, 2006 3:54 pm    Post subject: Reply with quote

Fixed a minor bug in the ebuild (forgot >= on one of the deps) and changed keywords.
Back to top
View user's profile Send private message
madman2003
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 178

PostPosted: Mon Sep 11, 2006 8:20 am    Post subject: Reply with quote

Bumped gtk+ to 2.6 as listed on mailinglist. Dependency on id3lib removed. Taglib use flag added for tag support (now also tag support for musepack).
Back to top
View user's profile Send private message
evermind
Guru
Guru


Joined: 10 Jan 2004
Posts: 322

PostPosted: Mon Sep 11, 2006 10:33 am    Post subject: Reply with quote

madman2003 wrote:
Bumped gtk+ to 2.6 as listed on mailinglist. Dependency on id3lib removed. Taglib use flag added for tag support (now also tag support for musepack).


also updated in the overlay
Back to top
View user's profile Send private message
dongle
n00b
n00b


Joined: 17 Feb 2006
Posts: 17

PostPosted: Thu Sep 14, 2006 9:48 pm    Post subject: Reply with quote

hey, pretty cool. replaygain + gapless is nice.

i still wish mr. pawlowski would let fb2k be ported, though.
Back to top
View user's profile Send private message
madman2003
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 178

PostPosted: Sun Sep 17, 2006 9:02 am    Post subject: Reply with quote

Debug flag was added recently, so i added it too.
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Sun Sep 17, 2006 10:30 am    Post subject: Reply with quote

The einstall line should be changed to:
Code:
make DESTDIR=${D} install || die "Instalation failed"

einstall is only used by portage as a fallback and should not be called directly in the ebuild. See the delelopers handbook for more info (functions section).

Also there is a bug 88532 open in b.g.o so you might want to breathe some life into it with a new ebuild.
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Sun Sep 17, 2006 10:52 am    Post subject: Reply with quote

3 updates:

1: The oggvorbis use flag has been removed in portage in favor of ogg or vorbis. In your case it should just be vorbis
2: Speex does not use the ogg container afaik so oggspeex is not correct. Also the same applies as above, it should just be speex
3: You should use the mad use flag as it uses libmad as there is already a global mad useflag.
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
smlgbl
Guru
Guru


Joined: 10 Feb 2005
Posts: 305

PostPosted: Sun Sep 17, 2006 10:03 pm    Post subject: Reply with quote

What is this s***! Sorry, but i've given every possible rights to anyone and it still gives me this!

Code:
for i in hu.mo de.mo uk.mo; do \
        lang=`echo $i | sed 's/\.mo$//'`; \
        /bin/sh ../../mkinstalldirs /usr/share/locale/$lang/LC_MESSAGES; \
        /bin/install -c -m 644 $i /usr/share/locale/$lang/LC_MESSAGES/aqualung.mo; \
done
ACCESS DENIED  unlink:    /usr/share/locale/hu/LC_MESSAGES/aqualung.mo
/bin/install: cannot remove `/usr/share/locale/hu/LC_MESSAGES/aqualung.mo': Permission denied
ACCESS DENIED  open_wr:   /usr/share/locale/de/LC_MESSAGES/aqualung.mo
/bin/install: cannot create regular file `/usr/share/locale/de/LC_MESSAGES/aqualung.mo': Permission denied
ACCESS DENIED  unlink:    /usr/share/locale/uk/LC_MESSAGES/aqualung.mo
/bin/install: cannot remove `/usr/share/locale/uk/LC_MESSAGES/aqualung.mo': Permission denied
make[2]: *** [install] Error 1
make[2]: Leaving directory `/var/tmp/portage/aqualung-9999/work/aqualung/src/po'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/aqualung-9999/work/aqualung/src'
make: *** [install-recursive] Error 1

!!! ERROR: media-sound/aqualung-9999 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_install
  ebuild.sh, line 1020:   Called src_install
  aqualung-9999.ebuild, line 71:   Called die

!!! Instalation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-media-sound_-_aqualung-9999-18464.log"

unlink:    /usr/share/locale/hu/LC_MESSAGES/aqualung.mo
open_wr:   /usr/share/locale/de/LC_MESSAGES/aqualung.mo
unlink:    /usr/share/locale/uk/LC_MESSAGES/aqualung.mo
--------------------------------------------------------------------------------
!!! This ebuild is from an overlay: '/usr/local/portage'


Any help is appreciated, though i am going to bed now!
_________________
samuel.
'Do not let one girding on boast about himself like one unfastening'
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Sun Sep 17, 2006 10:09 pm    Post subject: Reply with quote

Basically, make install is not using DESTDIR and install outside of the sandbox. Either a broken makefile or DESTDIR is not set correctly used in the ebuild.

Try and replace einstall line as i suggested above.
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
smlgbl
Guru
Guru


Joined: 10 Feb 2005
Posts: 305

PostPosted: Mon Sep 18, 2006 11:30 am    Post subject: Reply with quote

Hi,

i actually already did change that einstall line. Still doesn't work.
More suggestions anyone?

EDIT: When i used the original install line from the original post, it worked. Thanks a lot.
_________________
samuel.
'Do not let one girding on boast about himself like one unfastening'
Back to top
View user's profile Send private message
madman2003
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 178

PostPosted: Mon Sep 18, 2006 10:43 pm    Post subject: Reply with quote

Fixed the ebuild. The reason it's not in that bug is that cvs ebuilds are not something that will get into portage.
Back to top
View user's profile Send private message
smlgbl
Guru
Guru


Joined: 10 Feb 2005
Posts: 305

PostPosted: Tue Sep 19, 2006 6:49 am    Post subject: Reply with quote

Yet that install line is what gave me the access violation errors!
_________________
samuel.
'Do not let one girding on boast about himself like one unfastening'
Back to top
View user's profile Send private message
infirit
l33t
l33t


Joined: 11 Jan 2003
Posts: 778
Location: Hoofddorp / The Netherlands

PostPosted: Tue Sep 19, 2006 8:26 am    Post subject: Reply with quote

haader wrote:
Yet that install line is what gave me the access violation errors!
Then the makefile is broken and should be fixed.
_________________
EASY TO INSTALL = Difficult to install, but instruction manual has pictures.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum