help needed packaging curl bindings

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

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:
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 emertens@galois.com, 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

On Wed, Oct 31, 2007 at 01:36:40PM +0000, 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

On Wed, Oct 31, 2007 at 08:35:42AM -0700, brad clawsie wrote:
On Wed, Oct 31, 2007 at 01:36:40PM +0000, 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
participants (2)
-
brad clawsie
-
Ian Lynagh