mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
66 lines
1.6 KiB
Bash
66 lines
1.6 KiB
Bash
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-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37"
|
|
PATCHES="libffi-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libffi$secondaryArchSuffix = $portVersion compat >= 3
|
|
lib:libffi$secondaryArchSuffix = 6.0.4 compat >= 6
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libffi${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libffi$secondaryArchSuffix = 6.0.4 compat >= 6
|
|
"
|
|
REQUIRES_devel="
|
|
libffi$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:awk
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
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
|
|
}
|