Add support for native libraries to lang/erlang-runtime19, and fix
build on 11.x/HEAD.
This commit is contained in:
parent
1eb0858dbf
commit
ff979c85f7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420841
1 changed files with 20 additions and 2 deletions
|
@ -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} \
|
||||
|
|
Loading…
Reference in a new issue