public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-dev] BitchX and esound
@ 2001-09-23  2:15 Martin Schlemmer
  2001-09-23  2:22 ` [gentoo-ebuild] " Martin Schlemmer
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Schlemmer @ 2001-09-23  2:15 UTC (permalink / raw
  To: Gentoo-Dev; +Cc: Gentoo-Ebuild

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]

On Sun, 2001-09-23 at 05:22, Bruce A. Locke wrote:
> 
> Hello... Enabling sound support in BitchX requires esound 0.2.5 or
better.
>  The only version of esound we have in portage is 0.2.22.  The problem
> with this is that 0.2.22 is _not_ newer then 0.2.5.  And with sound
> support enabled BitchX's configure script bombs horribly so for now
I've
> commented out such support from BitchX's ebuild.
> 
> So we have two issues, the first is the esound versioning problem.
The
> second was I couldn't get esound 0.2.8 to compile anyways after 15
minutes
> of playing with it. :(
> 
> Any comments? 

hi

ok, attached is esound-0.2.8.ebuild and esddsp.c.diff (which should go
in the files dir).

i had to patch esddsp because it needs RTLD_NEXT defined in #include
<dlfcn.h>.  only problem is, for it to get defined, __USE_GNU needs to
be defined.  but for some wierd reason even if defineing it in esddsp.d,
it does not get passed to #include <dlfcn.h> as being defined.  i am on
gcc-2.95.3-r5, if someone can trie with another version (gcc 3.01 ??),
it would be appreciated.

also there is problems with ALSA support, so i disabled it.  i dont use
ALSA so im assuming esd should work ok with ALSA OSS emolution ?!?
dont know what the problem is, but it seems the version of ALSA that
gentoo use dont have all the strucktures and functions esound-0.2.8
needs defined ... same with 0.2.7, so maybe we need to use a newer
version of ALSA (0.9 maybe ?).

greetings
MS

[-- Attachment #2: esound-0.2.8.ebuild --]
[-- Type: text/plain, Size: 1638 bytes --]

# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# /home/cvsroot/gentoo-x86/media-sound/esound/esound-0.2.22-r2.ebuild,v 1.2 2001/06/11 08:11:28 hallski Exp

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="esound"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/esound/${A}
           ftp://download.sourceforge.net/pub/mirrors/gnome/stable/sources/esound/${A}"
HOMEPAGE="http://www.tux.org/~ricdude/EsounD.html"

DEPEND="virtual/glibc
	alsa? ( >=media-libs/alsa-lib-0.5.9 )
	>=media-libs/audiofile-0.1.9
    tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )"

RDEPEND="virtual/glibc
	alsa? ( >=media-libs/alsa-lib-0.5.9 )
	>=media-libs/audiofile-0.1.9"

src_unpack() {

  unpack ${A}

  cd ${S}
  
  patch -p0 <${FILESDIR}/esddsp.c.diff || die

}

src_compile() {                           

  local myconf
  if [ "`use tcpd`" ]
  then
    myconf="--with-libwrap"
  else
    myconf="--without-libwrap"
  fi

# ALSA support broken ... need newer ALSA ?
#  if [ "`use alsa`" ]
#  then
#    myconf="$myconf --enable-alsa"
#  else
    myconf="$myconf --enable-alsa=no"
#  fi

  ./configure --host=${CHOST} --prefix=/usr \
		  --sysconfdir=/etc/esd $myconf || die
  pmake || die
}

src_install() {                               
  cd ${S}
  make prefix=${D}/usr sysconfdir=${D}/etc/esd install || die
  dodoc AUTHORS COPYING* ChangeLog README TODO
  dodoc NEWS TIPS
  dodoc docs/esound.ps
  docinto html
  dodoc docs/html/*.html docs/html/*.css
  docinto html/stylesheet-images
  dodoc docs/html/stylesheet-images/*.gif
}







[-- Attachment #3: esddsp.c.diff --]
[-- Type: text/x-patch, Size: 424 bytes --]

*** esddsp.c	Thu Feb 11 03:48:33 1999
--- esddsp.c.new	Sun Sep 23 08:47:46 2001
***************
*** 34,39 ****
--- 34,45 ----
  
  #include "config.h"
  
+ // Tempory hack to fix a wierd #define not passed to #includes problem
+ // Maybe someone with gcc 3.01 could try without .diff ?
+ #ifndef RTLD_NEXT
+ # define RTLD_NEXT      ((void *) -1l)
+ #endif
+ 
  #include <dlfcn.h>
  #include <stdarg.h>
  #include <stdlib.h>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-ebuild] Re: [gentoo-dev] BitchX and esound
  2001-09-23  2:15 [gentoo-dev] BitchX and esound Martin Schlemmer
@ 2001-09-23  2:22 ` Martin Schlemmer
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Schlemmer @ 2001-09-23  2:22 UTC (permalink / raw
  To: gentoo-ebuild; +Cc: Gentoo-Dev

On Sun, 2001-09-23 at 10:13, Martin Schlemmer wrote:

> be defined.  but for some wierd reason even if defineing it in esddsp.d,

esddsp.c not esddsp.d

> ALSA so im assuming esd should work ok with ALSA OSS emolution ?!?
emulation

sorry, spelling bad ;-)




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-23  8:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-23  2:15 [gentoo-dev] BitchX and esound Martin Schlemmer
2001-09-23  2:22 ` [gentoo-ebuild] " Martin Schlemmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox