Package: libffi6 Version: 3.2.1 Revision: 1 Source: ftp://sourceware.org/pub/libffi/libffi-%v.tar.gz Source-MD5: 83b89587607e3eb65c70d361f13bab43 Depends: %N-shlibs (>= %v-%r) Conflicts: libffi, libffi6 Replaces: libffi, libffi6 BuildDependsOnly: true 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 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: << make install DESTDIR=%d << SplitOff: << Package: %N-shlibs Files: lib/libffi.6*.dylib Shlibs: %p/lib/libffi.6.dylib 7.0.0 %n (>= 3.0.13-1) << InfoDocs: %p/share/info/libffi.info DocFiles: ChangeLog* LICENSE README Description: Foreign Function Interface License: BSD HomePage: http://sourceware.org/libffi/ Maintainer: Daniel Johnson