|
root / lang / menhir
menhir Plain Text 52 lines 1.2 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/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 <chris.tusa@leafscale.com>"
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