pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pidgin-festival



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, <othyro%freeshell.org@localhost> 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
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index