mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
67 lines
1.6 KiB
Bash
67 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="https://sourceware.org/libffi"
|
|
COPYRIGHT="1996-2021 Anthony Green, Red Hat, Inc and others."
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/libffi/libffi/releases/download/v$portVersion/libffi-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="b0dea9df23c863a7a50e825440f3ebffabd65df1497108e5d437747843895a4e"
|
|
PATCHES="libffi-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
libVersion="8.1.4"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libffi$secondaryArchSuffix = $portVersion compat >= 3
|
|
lib:libffi$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libffi${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libffi$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
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 fille
|
|
rm $libDir/libffi.la
|
|
|
|
prepareInstalledDevelLibs libffi
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$documentationDir
|
|
}
|