Re: pidgin-festival

[email protected]
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.general
Message-ID <[email protected]>
On Wed, Jun 10, 2009 at 03:38:08PM +0900, OBATA Akio wrote:
> Hi!

Hi, thanks for the reply on here and tech-pkg@ as well.
 
> On Wed, 10 Jun 2009 14:57:20 +0900, <[email protected]> wrote:
> 
> > I'm having a bit of trouble figuring this one out. I imported pidgin-festival
> > yesterday and upon testing it, noticed that the path to festival's voice
> > directory was incorrect. In $WRKSRC/src/festival.c, there's some logic that
> > defines FESTIVAL_VOICES_PATH if not previously defined. I tried setting this
> > value with CONFIGURE_ARGS and then MAKE_ARGS and neither worked. What would be
> > the best way to get this to happen?
> 
> Probably...something like following...
> 
> FESTIVAL_VOICES_PATH=	"${PREFIX}/share/festival/lib/voices"
> CFLAGS+=		-DFESTIVAL_VOICES_PATH=${FESTIVAL_VOICES_PATH:Q}

I started with this:

FESTIVAL_VOICES_PATH=   ${DESTDIR}${PREFIX}/share/festival/lib/voices  
CFLAGS+=                -DFESTIVAL_VOICES_PATH=${FESTIVAL_VOICES_PATH:Q}

and now get this on build:

festival.c: In function 'get_config_frame':
festival.c:629: error: expected expression before '/' token
*** Error code 1

> or replace the default value in source file with SUBST:
> 
> SUBST_CLASSES+=		vpath
> SUBST_STAGE.vpath=	post-configure
> SUBST_FILES.vpath=	src/festival.c
> SUBST_SED.vpath=	-e 's|/usr/lib/festival/voices|${PREFIX}/share/festival/lib/voices|'


The file actually has this:

#ifndef FESTIVAL_VOICES_PATH
//#define FESTIVAL_VOICES_PATH "/usr/lib/festival/voices" //for gentoo
#define FESTIVAL_VOICES_PATH "/usr/share/festival/voices" //for other distros
#endif

which seems could be made better with a patch, but i wanted to start with
getting it to work right on NetBSD first.

TY

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.