# -*- coding: ascii; tab-width: 4 -*- Package: libffi6-shlibs Version: 3.2.1 Revision: 3 Architecture: x86_64 Conflicts: libffi6 (<< 3.2.1-3) Replaces: libffi6 (<< 3.2.1-3) Description: Foreign Function Interface License: BSD Maintainer: Daniel Johnson Source: ftp://sourceware.org/pub/libffi/libffi-%v.tar.gz Source-Checksum: SHA256(d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37) PatchScript: << #!/bin/sh -ev perl -pi -e 's;-dynamiclib -Wl,-single_module;$& -Wl,-x -dead_strip;' configure # This option doesn't exist on clang and causes tests to fail. perl -pi -e 's/ -Wno-psabi//' testsuite/lib/libffi.exp # Install headers in %p/include (and deal with Apple's stupid sed ..) sed -i.bak -e '/^includesdir/,0{ s,/.*,, s,libdir,includedir, }' include/Makefile.in sed -i.bak -e 's,libdir.*VERSION@,exec_prefix},' libffi.pc.in << # pure precaution : NoSetCPPFLAGS: true # If only to remove useless (and harmful) -L%p/lib flag in the .la file : NoSetLDFLAGS: true SetCFLAGS: -Os -fstrict-aliasing ConfigureParams: --disable-static # Tests currently broken, due at least in part to dejagnu choking on clang: # https://github.com/fink/fink-distributions/issues/134 # http://lists.gnu.org/archive/html/bug-dejagnu/2016-12/msg00000.html # https://lists.gnu.org/archive/html/bug-dejagnu/2020-11/msg00009.html #InfoTest: << # TestDepends: dejagnu # TestSuiteSize: medium ## clang correctly builds libffi but clang/llvm-gcc cause make check failures. ## The clang build will pass make check against gcc-4.2. # TestScript: make -k check || exit 2 #<< InstallScript: << #!/bin/sh -ev make install DESTDIR=%d pushd %i rm -r include rm lib/libffi.{dylib,la} rm -r lib/pkgconfig rm -r share/info rm -r share/man << Shlibs: %p/lib/libffi.6.dylib 7.0.0 %n (>= 3.0.13-1) DocFiles: ChangeLog* LICENSE README HomePage: https://sourceware.org/libffi/