Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bootstrap recipe for libffi 3.4.4 with (temporary) patch #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions dev-libs/libffi_bootstrap/libffi_bootstrap-3.4.4.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
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-2022 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="d66c56ad259a82cf2a9dfc408b32bf5da52371500b84745f7fb8b645712df676"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"

PATCHES="libffi_bootstrap-$portVersion.patchset"

PROVIDES="
libffi_bootstrap$secondaryArchSuffix = $portVersion compat >= 3
libffi$secondaryArchSuffix = $portVersion compat >= 3
lib:libffi$secondaryArchSuffix = $portVersion compat >= 3
"
REQUIRES="
haiku$secondaryArchSuffix
"

PROVIDES_devel="
libffi_bootstrap${secondaryArchSuffix}_devel = $portVersion compat >= 3
devel:libffi$secondaryArchSuffix = $portVersion compat >= 3
"

BUILD_REQUIRES="
"

BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
gcc_cross_$targetArchitecture
binutils_cross_$targetArchitecture
cmd:awk
cmd:make
"

SOURCE_DIR="libffi-$portVersion"

BUILD()
{
runConfigure ./configure --disable-docs --build=$buildMachineTriple --host=$targetMachineTriple --disable-static
make $jobArgs
}

INSTALL()
{
make DESTDIR=$installDestDir install
prepareInstalledDevelLibs libffi
fixPkgconfig
packageEntries devel \
$installDestDir$developDir
}
19 changes: 19 additions & 0 deletions dev-libs/libffi_bootstrap/patches/libffi_bootstrap-3.4.4.patchset
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
From: Yn0ga <[email protected]>
Date: Sat, 07 October 2023 22:48:10 +0200
Subject: Add PowerPC-haiku support in configure.host file

diff --git a/configure.host b/configure.host
index b291bd0..4cc69be 100644
--- a/configure.host
+++ b/configure.host
@@ -205,7 +205,7 @@ case "${host}" in
powerpc-*-eabi*)
TARGET=POWERPC; TARGETDIR=powerpc
;;
- powerpc-*-beos*)
+ powerpc-*-beos* | powerpc-*-haiku*)
TARGET=POWERPC; TARGETDIR=powerpc
;;
powerpc-*-darwin* | powerpc64-*-darwin*)
--
1.7.5