Package: libffi Epoch: 1 # 3.0.9 fails self-tests on 10.4 Version: 3.0.9 Distribution: 10.5, 10.6 Revision: 3 Source: ftp://sourceware.org/pub/%N/%N-%v.tar.gz Source-MD5: 1f300a7a7f975d4046f51c3022fa5ff1 Depends: %N-shlibs (>= %v-%r) BuildDependsOnly: true PatchScript: << #!/bin/sh -ev perl -pi -e 's;-dynamiclib;$& -single_module -Wl,-x -dead_strip;' 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 TestScript: make -k check || exit 2 << InstallScript: << make install DESTDIR=%d cd %I/share/man/man3; for f in *; do mv $f %N_$f; done << 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 PostInstScript: << update-alternatives --install %p/share/man/man3/ffi.3 ffi %p/share/man/man3/%N_ffi.3 60 \ --slave %p/share/man/man3/ffi_call.3 ffi_call %p/share/man/man3/%N_ffi_call.3 \ --slave %p/share/man/man3/ffi_prep_cif.3 ffi_prep_cif %p/share/man/man3/%N_ffi_prep_cif.3 << PreRmScript: << if [ $1 != "upgrade" ]; then update-alternatives --remove ffi %p/share/man/man3/%N_ffi.3 fi << Description: Foreign Function Interface License: Public Domain HomePage: http://sourceware.org/libffi/ Maintainer: None