-
Notifications
You must be signed in to change notification settings - Fork 18
/
coqprime-generator.opam
41 lines (41 loc) · 1.65 KB
/
coqprime-generator.opam
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
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/thery/coqprime"
bug-reports: "https://github.com/thery/coqprime/issues"
dev-repo: "git+https://github.com/thery/coqprime.git"
license: "LGPL-2.1-only"
authors: ["Laurent Théry"]
build: [
# cd to a subfolder in opam is tricky, so just move gencertif to the root folder
[ "find" "gencertif" "-type" "f" "-exec" "mv" "{}" "." ";" ]
[ "autoreconf" "-i" "-s" ]
[ "./configure" "--prefix" prefix
# Optiosn for finding opam local gmp-ecm
"CPPFLAGS=-I%{prefix}%/include"
"LDFLAGS=-L%{lib}%"
# Options for homebrew on Intel silicon (overwriting the above)
"CPPFLAGS=-I%{prefix}%/include -I/opt/local/include" { os-distribution = "macports" & os = "macos" }
"LDFLAGS=-L%{lib}% -L/opt/local/lib" { os-distribution = "macports" & os = "macos" }
# Options for homebrew on Apple silicon (overwriting the above)
"CPPFLAGS=-I%{prefix}%/include -I/opt/homebrew/include" { os-distribution = "homebrew" & os = "macos" & arch = "arm64"}
"LDFLAGS=-L%{lib}% -L/opt/homebrew/lib" { os-distribution = "homebrew" & os = "macos" & arch = "arm64"}
# Options for Windows cygwin
"--build=%{arch}%-pc-cygwin" { os = "win32" & os-distribution = "cygwinports" }
"--host=%{arch}%-w64-mingw32" { os = "win32" & os-distribution = "cygwinports" }
"--target=%{arch}%-w64-mingw32" { os = "win32" & os-distribution = "cygwinports" }
]
[ make "-j" "%{jobs}%" ]
]
install: [
[make "install"]
]
depends: [
"ocaml"
"num"
"conf-gmp"
"gmp-ecm"
]
synopsis: "Certificate generator for prime numbers in Coq"
url {
src: "git+https://github.com/thery/coqprime.git#master"
}