diff options
Diffstat (limited to 'lang/erlang-runtime19/Makefile')
-rw-r--r-- | lang/erlang-runtime19/Makefile | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/lang/erlang-runtime19/Makefile b/lang/erlang-runtime19/Makefile index e64b8b06110c..7414eef37fb3 100644 --- a/lang/erlang-runtime19/Makefile +++ b/lang/erlang-runtime19/Makefile @@ -33,19 +33,22 @@ SUB_LIST= ERLANG_LIB=${ERLANG_LIB} MAKE_JOBS_UNSAFE=yes -OPTIONS_DEFINE= DOCS DTRACE GCC GS HIPE JAVA KQUEUE ODBC OPENSSL SCTP SMP THREADS WX DIRTY +OPTIONS_DEFINE= DIRTY DOCS DTRACE GCC GS HIPE JAVA KQUEUE NATIVE ODBC OPENSSL SCTP SMP THREADS WX DIRTY_DESC= Enable Dirty schedulers (experimental) DTRACE_DESC= Enable DTrace support GS_DESC= Enable GS application (deprecated) HIPE_DESC= Build native HiPE compiler KQUEUE_DESC= Enable Kernel Poll (kqueue) support +NATIVE_DESC= Enable native libraries SCTP_DESC= Enable SCTP support SMP_DESC= Enable SMP support WX_DESC= Enable WX application +NATIVE_IMPLIES= HIPE + OPTIONS_DEFAULT=HIPE KQUEUE OPENSSL SCTP SMP THREADS -OPTIONS_EXCLUDE_DragonFly= HIPE SCTP +OPTIONS_EXCLUDE_DragonFly= HIPE NATIVE SCTP ERL_RELEASE= 19.0 @@ -70,6 +73,10 @@ IGNORE= support for DTrace on amd64 requires GCC option .endif .endif +.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1100000 +CFLAGS+= -DMAP_NORESERVE=0 +.endif + .if ${PORT_OPTIONS:MGCC} USE_GCC?= yes .endif @@ -103,6 +110,12 @@ CONFIGURE_ARGS+=--enable-hipe CONFIGURE_ARGS+=--disable-hipe .endif +.if ${PORT_OPTIONS:MNATIVE} +CONFIGURE_ARGS+=--enable-native-libs +.else +CONFIGURE_ARGS+=--disable-native-libs +.endif + .if ${PORT_OPTIONS:MKQUEUE} CONFIGURE_ARGS+=--enable-kernel-poll .else @@ -191,6 +204,11 @@ post-configure: ${RM} ${WRKSRC}/lib/odbc/SKIP .endif +.if ${PORT_OPTIONS:MNATIVE} +pre-build: + @cd ${WRKSRC} && ${MAKE_CMD} clean +.endif + post-install: for SECTION in 1 3 4 6 7; do \ ${TAR} --unlink -xzpf ${DISTDIR}/${DIST_SUBDIR}/${ERLANG_MAN} \ |