pkgsrc-Users archive

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

Re: Newbie package creation question



On Mon, Apr 21, 2008 at 02:01:16PM +0200, Adam Hoka wrote:
> Hi Zachary!
> 
> Zachary Kline wrote:
> 
> > Hi,
> > I'm quite new to all this, so apologize if this is the wrong place to ask 
> > this .
> > I've begun creating packages for some programs I enjoy using, and they work.
> > I'm not sure they're as efficient as they could be, however.
> > In one case, the author provides a custom shell script in place of autoconf.
> > It's used to test for the installation of various flavors of curses.  
> > Unfortunately, it looks for them in hard-coded places, NetBSD's default 
> > /usr/pkg not among them.
> > I ended up simply adding another test to look for the library in 
> > /usr/pkg/lib/libncursesw.so in this case.
> > This doesn't seem portable to me, though.  I'm wondering if there's another 
> > way to get at the value of LOCALBASE or whatever in a shell script like 
> > this?
> > Ideally, I'd like to be able to give these patches back to the author in 
> > future.
> > 
> > Any help with this would be appreciated.
> > Best,
> > Zack.
> > 
> 
> BUILDLINK_PREFIX.curses could be what you need, but make sure it honours 
> CURSES_DEFAULT.
> Check mk/curses.buildlink3.mk for details and also read also the pkgsrc 
> developers manual (in case you missed it). [1]
> Hi,
I've been slowly trying to read through the manual over the past few days.
As for variables like CURSES_DEFAULT, to ask a more user-level question, I'm 
not sure when I should set them.  
I can't seem to find them documented in mk.conf(5), for instance.
As for this package, it was designed to work with Ncursesw in particular.
Trying to compile it with the normal NetBSD Curses gave me some Terminfo 
errors. 
I don't really understand that: I thought Curses would use either Termcap or 
Terminfo without being prodded?
I did email the author as far as that went, and he advised including term.h.  
I guess I don't know enough about Curses and such to comment.
Thanks,
Zack.



Home | Main Index | Thread Index | Old Index