diff --git a/dev-build/muon/muon-0.2.0.recipe b/dev-build/muon/muon-0.2.0.recipe new file mode 100644 index 000000000..9405b7308 --- /dev/null +++ b/dev-build/muon/muon-0.2.0.recipe @@ -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 " +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 +} diff --git a/dev-build/muon/patches/muon-0.2.0.patchset b/dev-build/muon/patches/muon-0.2.0.patchset new file mode 100644 index 000000000..82ddca0eb --- /dev/null +++ b/dev-build/muon/patches/muon-0.2.0.patchset @@ -0,0 +1,24 @@ +From 5a643d304767a91a1bdb2dff91dc55e288b767d3 Mon Sep 17 00:00:00 2001 +From: Alexander von Gluck IV +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 +