#!/bin/bash # Build script for menhir on illumos # # menhir is a parser generator used by the Reef compiler set -e cd "$SRCDIR" # Ensure OCaml and dune are in PATH export PATH="$PREFIX/bin:$PATH" # Force 64-bit compilation export CC="gcc -m64" export CXX="g++ -m64" export CFLAGS="-m64" export CXXFLAGS="-m64" export LDFLAGS="-m64 $LDFLAGS" # libatomic is at /usr/lib (hammerhead BSD layout) export LD_LIBRARY_PATH="/usr/lib:${LD_LIBRARY_PATH:-}" export LIBRARY_PATH="/usr/lib:${LIBRARY_PATH:-}" # Build menhir using dune dune build @install # Install dune install --prefix=$PREFIX --destdir="$PKGDIR" # menhir - Parser generator for OCaml # http://gallium.inria.fr/~fpottier/menhir/ [package] name = "menhir" version = "20250912" release = 1 description = "LR(1) parser generator for OCaml" url = "http://gallium.inria.fr/~fpottier/menhir/" license = "GPL-2.0" maintainer = "Chris Tusa " arch = "x86_64" [dependencies] runtime = ["ocaml"] build = ["ocaml", "dune", "make"] [[source]] file = "menhir-20250912.tar.gz" urls = ["https://gitlab.inria.fr/fpottier/menhir/-/archive/20250912/menhir-20250912.tar.gz"] checksum = "26b1f44d6b4ed634631c50866e5535062591308a01a987f415411a9543965c9b" [build] parallel = true