Re: [Mono-dev] Where should I install my pkg-config files on OS X?

2010-10-19 Thread Jackson Harper
On Mon, 2010-10-18 at 18:04 -0400, Michael Hutchinson wrote:
 On Mon, Oct 18, 2010 at 10:58 AM, Jackson Harper jack...@novell.com wrote:
  For libev-sharp I'm trying to follow the developer guidelines for
  unstable API.  Basically I create install my dll in
  prefix/lib/libev-sharp/
 
  Then to use libev-sharp projects should do:
 
  cp `pkg-config --variable=Libraries Thing` build/.
 
  The problem is on OS X I have no idea where libev-sharp should install
  the libev-sharp.pc file. Using
 
  pkg-config --variable=pc_path pkg-config |  awk -F: '{print $1}'
 
  doesn't really help, I get a garbage directory like /tmp/pkg-config
 
  Should I just hardcode it to
  '/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/'
 
 Beware that this whole directory will get replaced when you upgrade Mono.
 
 For this reason, MonoDevelop 2.4.1 (and master) looks in
 /Library/Frameworks/Mono.framework/External/pkgconfig and I'd like to
 fix a future version of Mono to have its pkgconfig look there too.
 I've added similar directories for MSBuild  extensions and MonoDoc
 docs called xbuild and monodoc, unsurprisingly. A gac would
 probably be useful too.
 

Awesome! But just so I am clear, xbuild in mono 2.8 does not support
this feature yet, right?

Thanks!
Jackson



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Where should I install my pkg-config files on OS X?

2010-10-19 Thread Michael Hutchinson
On Tue, Oct 19, 2010 at 11:31 AM, Jackson Harper jack...@novell.com wrote:
 On Mon, 2010-10-18 at 18:04 -0400, Michael Hutchinson wrote:
 On Mon, Oct 18, 2010 at 10:58 AM, Jackson Harper jack...@novell.com wrote:
  For libev-sharp I'm trying to follow the developer guidelines for
  unstable API.  Basically I create install my dll in
  prefix/lib/libev-sharp/
 
  Then to use libev-sharp projects should do:
 
  cp `pkg-config --variable=Libraries Thing` build/.
 
  The problem is on OS X I have no idea where libev-sharp should install
  the libev-sharp.pc file. Using
 
  pkg-config --variable=pc_path pkg-config |  awk -F: '{print $1}'
 
  doesn't really help, I get a garbage directory like /tmp/pkg-config
 
  Should I just hardcode it to
  '/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/'

 Beware that this whole directory will get replaced when you upgrade Mono.

 For this reason, MonoDevelop 2.4.1 (and master) looks in
 /Library/Frameworks/Mono.framework/External/pkgconfig and I'd like to
 fix a future version of Mono to have its pkgconfig look there too.
 I've added similar directories for MSBuild  extensions and MonoDoc
 docs called xbuild and monodoc, unsurprisingly. A gac would
 probably be useful too.


 Awesome! But just so I am clear, xbuild in mono 2.8 does not support
 this feature yet, right?

Correct, not unless you do as MD does:
export 
PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/External/pkgconfig:$PKG_CONFIG_PATH

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Where should I install my pkg-config files on OS X?

2010-10-18 Thread Jackson Harper

For libev-sharp I'm trying to follow the developer guidelines for
unstable API.  Basically I create install my dll in
prefix/lib/libev-sharp/

Then to use libev-sharp projects should do:

cp `pkg-config --variable=Libraries Thing` build/.

The problem is on OS X I have no idea where libev-sharp should install
the libev-sharp.pc file. Using 

pkg-config --variable=pc_path pkg-config |  awk -F: '{print $1}'

doesn't really help, I get a garbage directory like /tmp/pkg-config 

Should I just hardcode it to
'/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/'

Or is there something better I can do?


Jackson



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Where should I install my pkg-config files on OS X?

2010-10-18 Thread Bojan Rajkovic
On Oct 18, 2010, at 10:58 AM, Jackson Harper wrote:

 
 For libev-sharp I'm trying to follow the developer guidelines for
 unstable API.  Basically I create install my dll in
 prefix/lib/libev-sharp/
 
 Then to use libev-sharp projects should do:
 
 cp `pkg-config --variable=Libraries Thing` build/.
 
 The problem is on OS X I have no idea where libev-sharp should install
 the libev-sharp.pc file. Using 
 
 pkg-config --variable=pc_path pkg-config |  awk -F: '{print $1}'
 
 doesn't really help, I get a garbage directory like /tmp/pkg-config 
 
 Should I just hardcode it to
 '/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/'
 
 Or is there something better I can do?
 
 
 Jackson

IIRC, pkg-config is hard-coded to look into /usr/lib/pkgconfig and 
/usr/local/lib/pkgconfig—I don't know if this holds true on OS X or if it's 
appropriate for libev-sharp, but it may be worth a shot.

—Bojan
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Where should I install my pkg-config files on OS X?

2010-10-18 Thread Michael Hutchinson
On Mon, Oct 18, 2010 at 10:58 AM, Jackson Harper jack...@novell.com wrote:
 For libev-sharp I'm trying to follow the developer guidelines for
 unstable API.  Basically I create install my dll in
 prefix/lib/libev-sharp/

 Then to use libev-sharp projects should do:

 cp `pkg-config --variable=Libraries Thing` build/.

 The problem is on OS X I have no idea where libev-sharp should install
 the libev-sharp.pc file. Using

 pkg-config --variable=pc_path pkg-config |  awk -F: '{print $1}'

 doesn't really help, I get a garbage directory like /tmp/pkg-config

 Should I just hardcode it to
 '/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/'

Beware that this whole directory will get replaced when you upgrade Mono.

For this reason, MonoDevelop 2.4.1 (and master) looks in
/Library/Frameworks/Mono.framework/External/pkgconfig and I'd like to
fix a future version of Mono to have its pkgconfig look there too.
I've added similar directories for MSBuild  extensions and MonoDoc
docs called xbuild and monodoc, unsurprisingly. A gac would
probably be useful too.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list