Re: how to limit to a certain directory only to look for includes

Jan Šmydke <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.general
Message-ID <[email protected]>
Thank you!

I have tried "-nostdinc" as suggested, but the problem may be somewhere
else, because obviously, I need also other includes like stdarg.h...

Chapter 14 of the pkgsrc guide seems promising, however, I am not
sure. I feel the best way is to show what is going on exactly.

I am trying to update wip/calcurse. I hope I don't offend the good
manners of wip users much as I have just imported the non-ready package
to wip/calcurse-2.8 - so that experts can see what happens.

The problem is described in a TODO file, but in brief:

calcurse defines ``UP`` for an arrow key, which clashes with ``UP`` in
*termcap*. I don't know, why ``/usr/include/termcap.h`` is included.
Maybe it should be ``/usr/pkg/include/ncurses/termcap.h`` instead? But
there is also ``UP`` defined...

The strange point is that if I build calcurse-2.8 on my own, it works:

cd calcurse-2.8
./configure CPPFLAGS="-I/usr/pkg/include -I/usr/pkg/include/ncurses"
LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib"
gmake


I am still confused and a bit lost. Could anyone help to see to it?

Thank you,

JS


> I don't know where "-I/something" actually point to,
> but "the pkgsrc guide 14.1." may help you.
> 
> On Thu, 10 Jun 2010 22:59:13 +0900, Jan Šmydke
> <[email protected]> wrote:
> 
> > Hello,
> >
> > is there any possibility to tell pkgsrc to look to a specific
> > directory for includes while building a package?
> >
> > When I build an app by myself, I tell configure to use
> > just "-I/something" and it works nice.
> >
> > But when trying to port it for pkgsrc-wip, configure looks also to
> > other places like /usr/include which leads to name clashes and the
> > build fails...
> >
> > I tried CONFIGURE_ARGS, but it did not help.
> >
> > Thanks a lot for any clue,
> >
> > JS
> >
> > ------------------------------------------------------------------------------
> > ThinkGeek and WIRED's GeekDad team up for the Ultimate
> > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> > lucky parental unit.  See the prize list and enter to win:
> > http://p.sf.net/sfu/thinkgeek-promo
> > _______________________________________________
> > pkgsrc-wip-discuss mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss
> >
> 
> 


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
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.