SUMMARY="A portable, high level programming interface" DESCRIPTION="Libffi is a foreign function interface library which gives its \ user a C programming language interface used to call natively compiled \ functions. Libffi is typically used as a bridging technology between compiled \ and interpreted language implementations. It can also be used to implement \ plugins." HOMEPAGE="http://sourceware.org/libffi" COPYRIGHT="1996-2013 Anthony Green, Red Hat, Inc and others." LICENSE="MIT" REVISION="4" SOURCE_URI="ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz" CHECKSUM_SHA256="1dddde1400c3bcb7749d398071af88c3e4754058d2d4c0b3696c2f82dc5cf11c" PATCHES="libffi-$portVersion.patchset" ARCHITECTURES="all" SECONDARY_ARCHITECTURES="x86_gcc2 x86" PROVIDES=" libffi$secondaryArchSuffix = $portVersion compat >= 3 lib:libffi$secondaryArchSuffix = 6.0.1 compat >= 6 " REQUIRES=" haiku$secondaryArchSuffix " PROVIDES_devel=" libffi${secondaryArchSuffix}_devel = $portVersion devel:libffi$secondaryArchSuffix = 6.0.1 compat >= 6 " REQUIRES_devel=" libffi$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" cmd:awk cmd:gcc$secondaryArchSuffix cmd:make " BUILD() { runConfigure ./configure --disable-static make $jobArgs } INSTALL() { make install # remove libtool file rm $libDir/libffi.la mkdir -p $includeDir mv -f $libDir/libffi-$portVersion/include/*.h* $includeDir rm -rf $libDir/libffi-$portVersion prepareInstalledDevelLibs libffi fixPkgconfig # devel package packageEntries devel \ $developDir \ $documentationDir }