Page 1 of 1

patches for libfpx to make it build on NetBSD

Posted: 2015-12-27T11:36:15-07:00
by nros
HI, I have been trying to build libfpx on NetBSD and made some patches to make it build.
One problem I came across was that NetBSD doesn't define __unix.
The build system defines _UNIX so I use that instead. Correct me if it is incorrectly used.
NetBSD does not have statfs but it has posix statvfs so the patches include fixes for this.
The library is not linked with c++ but with the c linker. Fix for this is included as well.
The automake manual mentions the method used.
The public header fpxlib.h includes the autoconfigurated config file. I think this should not be the case since it's definitions might conflict with
the config file used in packages that use libfpx. I can't see that any definitions in fpxlib-config.h is used in fpxlib.h.
The patches are available in the pkgsrc-wip repository. web interface to patches directory.

Regards,
Niclas

Re: patches for libfpx to make it build on NetBSD

Posted: 2015-12-27T14:27:42-07:00
by magick
Thanks for the patches. You will find them in libfpx-1.3.1-5 @ http://www.imagemagick.org/download/delegates/.

Re: patches for libfpx to make it build on NetBSD

Posted: 2015-12-28T04:40:31-07:00
by nros
I have looked at libfpx-1.3.1-5 and most of the patches are applied except removal of the inclusion of fpxlib-config.h in fpxlib.h. Now it references the file but does not install it.
I have checked where __unix is used in other places in the source and replaced it with _UNIX for more correct operation.
Patches are available in the same location as before.

Re: patches for libfpx to make it build on NetBSD

Posted: 2015-12-28T05:40:51-07:00
by magick
Thanks for the patches. You will find them in libfpx-1.3.1-6 @ http://www.imagemagick.org/download/delegates/.

Re: patches for libfpx to make it build on NetBSD

Posted: 2015-12-28T07:35:37-07:00
by nros
Thanks a lot.