ocaml (626B)
1 {%- set pkg_version="5.4.0" -%} 2 {%- set pkg_source="tar.xz" -%} 3 {% extends "autotools_static" %} 4 {% do setitem(env_template, "OCAMLPATH", "@ENVROOT@/library.ocaml") %} 5 {%- block configure_args %}--enable-native-compiler --disable-native-toplevel --enable-installing-bytecode-programs --libdir="$prefix/library.ocaml"{% endblock %} 6 {% block check -%} 7 check_static command/ocamlopt 8 9 {% endblock check %} 10 {% block genlinks_begin %} 11 x["./command/ocamlopt"]=1 12 {% endblock genlinks_begin %} 13 {% block genlinks_rules %} 14 $2 == "library.ocaml" { link($0); next } 15 $2 == ".env-template" { link($0); next } 16 {% endblock genlinks_rules -%}