Subject: Re: devel/nspr on MacOSX
To: grant beattie <grant@NetBSD.org>
From: Lars Nordlund <lars.nordlund@hem.utfors.se>
List: tech-pkg
Date: 08/19/2005 10:58:24
On Fri, 19 Aug 2005 12:01:40 +1000
grant beattie <grant@NetBSD.org> wrote:

> On Thu, Aug 18, 2005 at 10:39:47PM +0200, Lars Nordlund wrote:
> 
> > Hello
> > 
> > I am building some packages on Mac OS X Tigger.
> > 
> > I think the main problem is that:
> > 
> >  -I/Developer/Headers/FlatCarbon  
> > 
> > is transformed into 'nothing'. What do you think is the best way to fix
> > this?
> 
> try BUILDLINK_PASSTHRU_DIRS+=/Developer

Ah! Thanks!

How about the following fix for devel/nspr then:

Index: Makefile
===================================================================
RCS file: /home/cvs/cvsup/netbsd/pkgsrc/devel/nspr/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile    16 Jun 2005 06:57:47 -0000      1.8
+++ Makefile    19 Aug 2005 08:55:20 -0000
@@ -22,6 +22,10 @@ CONFIGURE_ENV=               LIBRUNPATH=${PREFIX}/lib
 
 .include               "../../mk/bsd.prefs.mk"
 
+.if ${OPSYS} == "Darwin"
+BUILDLINK_PASSTHRU_DIRS+=/Developer
+.endif
+
 .if ${OBJECT_FMT} == "ELF"
 SO_SUFFIX=             so
 .elif ${OBJECT_FMT} == "Mach-O"


Not the cleanest fix, perhaps, but for the moment it solves the
problem. Well, the package builds, but I do not yet know if it works.
My goal is to get gaim to build and devel/nss is the next hurdle.

-- 

Best regards
	Lars Nordlund