1f583dbce3
This is a long-overdue update, so there are many changes. Details are in the Changes file in the distribution. The mk/ocaml file will be moved to lang/ocaml and the logic for selecting whether to use the native-code compiler will be factored out into native.mk to avoid duplications. This is the final version before OCaml 5.0 arrives, which has multicore support and should be a major change from the 4.x versions.
20 lines
445 B
Makefile
20 lines
445 B
Makefile
# $NetBSD: options.mk,v 1.6 2022/05/24 18:25:38 jaapb Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.ocaml
|
|
PKG_SUPPORTED_OPTIONS= pic flambda
|
|
PKG_SUGGESTED_OPTIONS= pic
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mpic)
|
|
CONFIGURE_ARGS+= --with-pic
|
|
.else
|
|
CONFIGURE_ARGS+= --without-pic
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mflambda)
|
|
CONFIGURE_ARGS+= --enable-flambda
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-flambda
|
|
.endif
|