dev-build/muon: add initial port + haiku patches. Needs more work

This commit is contained in:
Alexander von Gluck IV
2024-03-16 16:11:24 -05:00
parent db8b3b6412
commit dfe156d94c
2 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
SUMMARY="A meson implementation in C"
DESCRIPTION="Muon is a meson implementation in c99 with minimal dependencies"
HOMEPAGE="https://sr.ht/~lattis/muon"
COPYRIGHT="2022-2024 Stone Tickle <lattis@mochiro.moe>"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://git.sr.ht/~lattis/muon/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="d73db1be5388821179a25a15ba76fd59a8bf7c8709347a4ec2cb91755203f36c"
PATCHES="muon-$portVersion.patchset"
ARCHITECTURES="!all"
PROVIDES="
muon = $portVersion
cmd:muon = $portVersion
"
REQUIRES="
haiku
lib:libarchive$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libpkgconf$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku_devel
devel:libarchive$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
devel:libpkgconf$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:sed
cmd:gcc
cmd:ninja
"
BUILD()
{
export CC=gcc
# Stage 1
./bootstrap.sh build-stage1
# Stage 2
build-stage1/muon setup build-stage2
ninja -C build-stage2
# Stage 3
build-stage2/muon setup \
-D prefix=$prefix \
build
ninja -C build
}
INSTALL()
{
cd build
DESTDIR="$prefix" ./muon install
}

View File

@@ -0,0 +1,24 @@
From 5a643d304767a91a1bdb2dff91dc55e288b767d3 Mon Sep 17 00:00:00 2001
From: Alexander von Gluck IV <kallisti5@unixzen.com>
Date: Sat, 16 Mar 2024 15:38:54 -0500
Subject: [PATCH] build: Add haiku to posix operating systems
---
meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/meson.build b/meson.build
index 80ac7ea..455f402 100644
--- a/meson.build
+++ b/meson.build
@@ -41,6 +41,7 @@ if (
'cygwin',
'darwin',
'freebsd',
+ 'haiku',
'linux',
'msys2',
'netbsd',
--
2.43.2