Package: libffi Epoch: 1 # 3.0.9 fails self-tests on 10.4 Version: 3.0.9 Distribution: 10.6, 10.7, 10.8 Revision: 7 Source: ftp://sourceware.org/pub/%N/%N-%v.tar.gz Source-MD5: 1f300a7a7f975d4046f51c3022fa5ff1 Depends: %N-shlibs (>= %v-%r) Conflicts: libffi, libffi6 Replaces: libffi, libffi6 BuildDependsOnly: true PatchFile: %n.patch PatchFile-MD5: 4941e5a587c6c7926827647c0e48f337 PatchScript: << #!/bin/sh -ev %{default_script} perl -pi -e 's;-dynamiclib;$& -single_module -Wl,-x -dead_strip;' configure perl -pi -e 's;darwin10;darwin1[0-9]*;' configure # 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},' %N.pc.in # CFLAGS not sufficient to get rid of '-g' flag sed -i.bak -e 's,Wall -g,Wall,' Makefile.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.5*.dylib Shlibs: %p/lib/libffi.5.dylib 6.0.0 %n (>= 3.0.5-1) << InfoDocs: %p/share/info/libffi.info DocFiles: ChangeLog* LICENSE README Description: Foreign Function Interface License: Public Domain HomePage: http://sourceware.org/libffi/ Maintainer: None