Subject: graphics/librsvg2 build failed
To: None <pkgsrc-users@netbsd.org>
From: Tyler Mitchell <fission@ldx.ca>
List: pkgsrc-users
Date: 03/13/2006 09:33:50
Hi,

It seems that graphics/librsvg2 fails whenever I have:

 	PREFER_PKGSRC+=Xft2

in /etc/mk.conf.


checking for    gdk-pixbuf-2.0 >= 1.3.7         glib-2.0 >= 2.0.0
 	libxml-2.0 >= 2.4.7     pangoft2 >= 1.2.0       cairo >= 1.0.2
 	fontconfig >= 1.0.1
         freetype2... Package freetype2 was not found in the pkg-config 
search path. Perhaps you should add the directory containing 
`freetype2.pc' to the PKG_CONFIG_PATH environment variable No package 
'freetype2' found
configure: error: Library requirements (        gdk-pixbuf-2.0 >= 1.3.7 
glib-2.0 >= 2.0.0       libxml-2.0 >= 2.4.7     pangoft2 >= 1.2.0 
cairo >= 1.0.2  fontconfig >= 1.0.1
         freetype2) not met; consider adjusting the PKG_CONFIG_PATH 
environment variable if your libraries are in a nonstandard prefix so 
pkg-config can find them.
*** Error code 1



Sure enough, the pkg-config in .tools isn't finding it:

...graphics/librsvg2% work.i386/.tools/bin/pkg-config --cflags freetype2
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found


Whereas /usr/pkg/bin/pkg-config has no trouble:

...graphics/librsvg2% /usr/pkg/bin/pkg-config --cflags freetype2
-I/usr/pkg/include/freetype2 -I/usr/pkg/include


Can anyone see what's wrong?

Thanks,

-- 
Tyler Mitchell