Package: ffcall Version: 1.10 Revision: 6 Description: Foreign function call libraries License: GPL # Please take it over. Maintainer: Hanspeter Niederstrasser Source: http://www.haible.de/bruno/gnu/%n-%v.tar.gz Source-MD5: 2db95007e901f3bc2ae7e5a9fe9ebea4 BuildDepends: fink (>= 0.30.0) PatchFile: %n.patch PatchFile-MD5: 80c4bc67de2ff2b919d048c98598115e PatchFile2: %n_assembly.patch PatchFile2-MD5: 58bcb8a523362770c5da460fe7a56a04 PatchScript: << %{default_script} # The C files should not #include .in headers sed -i'' -e 's,avcall.h.in,avcall.h,' avcall/avcall-x86_64.c sed -i'' -e 's,vacall.h.in,vacall.h,' -e 's,vacall_r.h.in,vacall_r.h,' {vacall,callback/vacall_r}/vacall-x86_64.c perl -pi -e 's|vacall_function|_$&|g' vacall/vacall-x86_64.s << UseMaxBuildJobs: false SetLDFLAGS: -Wl,-no_pie ConfigureParams: --build=%m-apple-darwin`uname -r|cut -f1 -d.` --host=%m-apple-darwin`uname -r|cut -f1 -d.` CompileScript: << #!/bin/sh -ev ./configure %c # Conditional is currently (2015-08-15) no-op/disabled to preserve # history. But not needed as of this date because PatchFile2 fixes # the bad assembly code for x86_64. if [ "%m" == "x86_64x" ] ; then \ CFLAGS="-O2" # Regenerate the .s files from the cd avcall; gcc-5 $CFLAGS -S avcall-x86_64.c; cd - cd vacall; gcc-5 $CFLAGS -S vacall-x86_64.c; cd - cd callback/vacall_r; gcc-5 $CFLAGS -DREENTRANT -S vacall-x86_64.c; cd - fi make -w << InstallScript: << install -d -m 755 %i/share/man/man3 make install prefix=%i mandir=%i/share/man << ## On i386, make check succeeds, but extracheck fails in avcall, and seg-faults in vacall and on callback/tests.c ## On x86_64. make check and extracheck seg-fault in avcall, make check succeeds elsewhere; ## extracheck fails also in vacall, and for callback/tests.c (but succeeds in trampoline and trampoline_r) InfoTest: << TestScript: make -w -k -i check extracheck || exit 2 << DocFiles: COPYING NEWS README DescPackaging: << Patch fixes common symbols problem and disables a regression test that failed on a harmless situation. Previously maintained by Jorge Acereda << DescPort: << From JFM (Thank you for all you did for Fink): https://sourceforge.net/p/fink/package-submissions/3869/ Fix for .s files in x86_64 from upstream bug report http://savannah.gnu.org/bugs/?36323 << Homepage: http://www.haible.de/bruno/packages-ffcall.html