Browse Source

add opam file

Andy Li 7 years ago
parent
commit
3f972f751e
1 changed files with 27 additions and 0 deletions
  1. 27 0
      opam

+ 27 - 0
opam

@@ -0,0 +1,27 @@
+
+opam-version: "1.2"
+name: "haxe"
+version: "3.4.4"
+maintainer: ["Haxe Foundation <[email protected]>" "Andy Li <[email protected]>"]
+author: "Haxe Foundation <[email protected]>"
+homepage: "https://haxe.org/"
+bug-reports: "https://github.com/HaxeFoundation/haxe/issues"
+license: ["GPL2+" "MIT"]
+dev-repo: "https://github.com/HaxeFoundation/haxe"
+build: [
+  [ "env" "OCAMLPARAM=safe-string=0,_" make ]
+]
+install: [
+  ["cp" "haxe" "haxelib" "%{bin}%"]
+  ["mkdir" "-p" "%{share}%/haxe"]
+  ["cp" "-r" "std" "%{share}%/haxe/std"]
+]
+remove: [
+  ["rm" "%{bin}%/haxe" "%{bin}%/haxelib"]
+  ["rm" "-r" "%{share}%/haxe"]
+]
+depends: [
+  "ocamlfind" {build}
+  "camlp4"    {build}
+]
+available: [ ocaml-version > "4.02" ]