pkgsrc-Users archive

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

Re: Newbie package creation question

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/ 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 
Check mk/ for details and also read also the pkgsrc 
developers manual (in case you missed it). [1]



Home | Main Index | Thread Index | Old Index