Subject: Re: CVS commit: pkgsrc
To: Nick Hudson <skrll@netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: pkgsrc-changes
Date: 05/09/2001 17:07:14
On Wed, 9 May 2001, Nick Hudson wrote:

> > > > > I think the reason is that different versions of X may come with shared
> > > > > libary versions of Xdpms. The two dynamic objects that you have add will
> > > > > only get built when a shared version exists.
> > > > >
> > > > > My stock XFree 3.3.6 system doesn't have a shared Xdpms.
> > > >
> > > > yikes!  My alpha which has a totally vanilla NetBSD-1.5 install produced
> > > > those files....
> > > >
> > > > So whats the right fix here?
> > > >
> > > > -Dan
> > > >
> > > >
> > >
> > > Use PLIST_SRC, and add the dynamic objects where necessary.
> > 
> > how do i know when its neccessary?  Nick?
> 
> The best way I can think of ATM is do a simple test in Makefile for the
> files existance.


so there would be a post-build: target which adds to PLIST?

or would it be something like

.if exists(${X11BSE}/lib/libwhateveritis.so)
# the shared objs will be built
PLIST_SRC=	${FILES_DIR}/PLIST ${FILES_DIR}/PLIST.so
.endif