Re: [Haskell-cafe] help needed packaging curl bindings

2007-10-31 Thread Ian Lynagh

Hi Brad,

On Tue, Oct 30, 2007 at 10:10:17PM -0700, brad clawsie wrote:
 i have decided to take on the task of packaging-up (for hackage) and
 documenting the curl bindings as available here:
 
 http://code.haskell.org/curl/
 
 if the originators of this code are reading this and do not wish me to
 proceed please say so, i won't be offended

I am CCing [EMAIL PROTECTED], the maintainer listed in the Cabal file.

 otherwise i was wondering if people had good examples to point me to
 for providing the cross-platform support needed for a FFI-based module
 such as this. i have made the necessary changes to compile the code on
 freebsd, but for other platforms i am not sure at all, particularly
 non-unix style platforms like windows.

What sort of changes do you mean?

 my guess is that providing cross-platform support requires autoconf
 etc prior to the hackage build process (?)
 
 any info/references appreciated


Thanks
Ian

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] help needed packaging curl bindings

2007-10-31 Thread brad clawsie
On Wed, Oct 31, 2007 at 01:36:40PM +, Ian Lynagh wrote:
  otherwise i was wondering if people had good examples to point me to
  for providing the cross-platform support needed for a FFI-based module
  such as this. i have made the necessary changes to compile the code on
  freebsd, but for other platforms i am not sure at all, particularly
  non-unix style platforms like windows.
 
 What sort of changes do you mean?

the need to locate the curl library and headers in different places on 
different platforms. the defaults used (for linux i presume) do not
work for freebsd for example. 

my guess is i need autotools to do this, but i am not sure


pgpEydM7nKXLn.pgp
Description: PGP signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] help needed packaging curl bindings

2007-10-31 Thread Ian Lynagh
On Wed, Oct 31, 2007 at 08:35:42AM -0700, brad clawsie wrote:
 On Wed, Oct 31, 2007 at 01:36:40PM +, Ian Lynagh wrote:
   otherwise i was wondering if people had good examples to point me to
   for providing the cross-platform support needed for a FFI-based module
   such as this. i have made the necessary changes to compile the code on
   freebsd, but for other platforms i am not sure at all, particularly
   non-unix style platforms like windows.
  
  What sort of changes do you mean?
 
 the need to locate the curl library and headers in different places on 
 different platforms. the defaults used (for linux i presume) do not
 work for freebsd for example. 
 
 my guess is i need autotools to do this, but i am not sure

Oh, you mean adding library/include paths to the Cabal file? Right, that
will either need to use the new pkg-config support in Cabal 1.2 (if curl
uses pkg-config), or autotools (substituting into a .buildinfo file is
probably the easiest way).


Thanks
Ian

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] help needed packaging curl bindings

2007-10-30 Thread brad clawsie
i have decided to take on the task of packaging-up (for hackage) and
documenting the curl bindings as available here:

http://code.haskell.org/curl/

if the originators of this code are reading this and do not wish me to
proceed please say so, i won't be offended

otherwise i was wondering if people had good examples to point me to
for providing the cross-platform support needed for a FFI-based module
such as this. i have made the necessary changes to compile the code on
freebsd, but for other platforms i am not sure at all, particularly
non-unix style platforms like windows.

my guess is that providing cross-platform support requires autoconf
etc prior to the hackage build process (?)

any info/references appreciated
thanks
brad


pgpgos8fJXkpz.pgp
Description: PGP signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe