Changeset View
Changeset View
Standalone View
Standalone View
lang/erlang/Makefile
PORTNAME= erlang | PORTNAME= erlang | ||||
DISTVERSIONPREFIX= OTP- | DISTVERSIONPREFIX= OTP- | ||||
DISTVERSION= 25.3.1 | DISTVERSION= 25.3.1 | ||||
PORTEPOCH= 4 | PORTEPOCH= 4 | ||||
PORTREVISION= 0 | PORTREVISION= 1 | ||||
CATEGORIES= lang parallel java | CATEGORIES= lang parallel java | ||||
DIST_SUBDIR= erlang | DIST_SUBDIR= erlang | ||||
MAINTAINER= erlang@FreeBSD.org | MAINTAINER= erlang@FreeBSD.org | ||||
COMMENT= Functional programming language from Ericsson | COMMENT= Functional programming language from Ericsson | ||||
WWW= https://www.erlang.org/ | WWW= https://www.erlang.org/ | ||||
LICENSE= APACHE20 | LICENSE= APACHE20 | ||||
Show All 10 Lines | |||||
USE_PERL5= build | USE_PERL5= build | ||||
USE_RC_SUBR= epmd | USE_RC_SUBR= epmd | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --enable-dirty-schedulers \ | CONFIGURE_ARGS= --enable-dirty-schedulers \ | ||||
--enable-kernel-poll \ | --enable-kernel-poll \ | ||||
--enable-smp-support \ | --enable-smp-support \ | ||||
--enable-threads | --enable-threads | ||||
MAKE_ARGS= all | MAKE_ARGS= DOC_TARGETS='chunks $(HTML_DOC_TARGET) $(PDF_DOC_TARGET)' | ||||
SUB_FILES= pkg-message | SUB_FILES= pkg-message | ||||
SUB_LIST= TOOLS_VSN=${TOOLS_VSN} | SUB_LIST= TOOLS_VSN=${TOOLS_VSN} | ||||
WRKSRC= ${WRKSRC_otp} | WRKSRC= ${WRKSRC_otp} | ||||
ERLANG_LIB= ${PORTNAME} | ERLANG_LIB= ${PORTNAME} | ||||
EI_VSN= 5.3.2 | EI_VSN= 5.3.2 | ||||
SNMP_VSN= 5.13.5 | SNMP_VSN= 5.13.5 | ||||
TOOLS_VSN= 3.5.3 | TOOLS_VSN= 3.5.3 | ||||
OPTIONS_DEFINE= CHUNKS CORBA DIRTY DTRACE FOP JAVA KQUEUE MANPAGES ODBC \ | OPTIONS_DEFINE= CORBA DIRTY DTRACE FOP JAVA KQUEUE MANPAGES ODBC \ | ||||
OPENSSL PDF SCTP SHARING WX | OPENSSL PDF SCTP SHARING WX | ||||
OPTIONS_DEFAULT= CHUNKS CORBA DIRTY DTRACE KQUEUE MANPAGES OPENSSL SCTP | OPTIONS_DEFAULT= CORBA DIRTY DTRACE KQUEUE MANPAGES OPENSSL SCTP | ||||
.if !exists(/usr/sbin/dtrace) | .if !exists(/usr/sbin/dtrace) | ||||
OPTIONS_EXCLUDE+= DTRACE | OPTIONS_EXCLUDE+= DTRACE | ||||
.endif | .endif | ||||
OPTIONS_EXCLUDE_DragonFly= SCTP | OPTIONS_EXCLUDE_DragonFly= SCTP | ||||
# ld(1) fails to link probes: missing __dtrace_erlang___* symbols | # ld(1) fails to link probes: missing __dtrace_erlang___* symbols | ||||
# see also https://reviews.freebsd.org/D22360 | # see also https://reviews.freebsd.org/D22360 | ||||
OPTIONS_EXCLUDE_aarch64= DTRACE | OPTIONS_EXCLUDE_aarch64= DTRACE | ||||
OPTIONS_EXCLUDE_armv6= DTRACE | OPTIONS_EXCLUDE_armv6= DTRACE | ||||
OPTIONS_EXCLUDE_armv7= DTRACE | OPTIONS_EXCLUDE_armv7= DTRACE | ||||
OPTIONS_EXCLUDE_i386= DTRACE | OPTIONS_EXCLUDE_i386= DTRACE | ||||
OPTIONS_EXCLUDE_riscv64= DTRACE | OPTIONS_EXCLUDE_riscv64= DTRACE | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
CHUNKS_DESC= Enable in-line documentation in Erlang console | |||||
CORBA_DESC= Enable Corba support | CORBA_DESC= Enable Corba support | ||||
DIRTY_DESC= Enable dirty schedulers | DIRTY_DESC= Enable dirty schedulers | ||||
FOP_DESC= Build full documentation with Apache FOP | FOP_DESC= Build full documentation with Apache FOP | ||||
KQUEUE_DESC= Enable Kernel Poll (kqueue) support | KQUEUE_DESC= Enable Kernel Poll (kqueue) support | ||||
PDF_DESC= Build PDF documentation | PDF_DESC= Build PDF documentation | ||||
SCTP_DESC= Enable SCTP support | SCTP_DESC= Enable SCTP support | ||||
SHARING_DESC= Enable term copy-and-share support | SHARING_DESC= Enable term copy-and-share support | ||||
WX_DESC= Enable WX application | WX_DESC= Enable WX application | ||||
# If you run Erlang and get a message resembling "WARNING: number of | # If you run Erlang and get a message resembling "WARNING: number of | ||||
# probes fixed does not match the number of defined probes (54 != 132, | # probes fixed does not match the number of defined probes (54 != 132, | ||||
# respectively)" you probably misconfigured DTrace in some way. | # respectively)" you probably misconfigured DTrace in some way. | ||||
CHUNKS_MAKE_ARGS+= DOC_TARGETS=chunks \ | |||||
docs | |||||
DIRTY_CONFIGURE_WITH= dirty-schedulers | DIRTY_CONFIGURE_WITH= dirty-schedulers | ||||
DTRACE_CONFIGURE_WITH= dynamic-trace=dtrace | DTRACE_CONFIGURE_WITH= dynamic-trace=dtrace | ||||
DTRACE_CFLAGS= -fno-omit-frame-pointer | DTRACE_CFLAGS= -fno-omit-frame-pointer | ||||
DTRACE_VARS= STRIP="" | DTRACE_VARS= STRIP="" | ||||
FOP_PREVENTS= MANPAGES | FOP_PREVENTS= MANPAGES | ||||
FOP_BUILD_DEPENDS= fop:textproc/fop \ | FOP_BUILD_DEPENDS= fop:textproc/fop \ | ||||
xsltproc:textproc/libxslt | xsltproc:textproc/libxslt | ||||
FOP_VARS= HTML_DOC_TARGET=html | |||||
JAVA_CONFIGURE_WITH= javac | JAVA_CONFIGURE_WITH= javac | ||||
JAVA_CONFIGURE_ENV= ac_cv_prog_JAVAC="${JAVAC}" | JAVA_CONFIGURE_ENV= ac_cv_prog_JAVAC="${JAVAC}" | ||||
JAVA_VARS= USE_JAVA=yes | JAVA_VARS= USE_JAVA=yes | ||||
KQUEUE_CONFIGURE_ENABLE= kernel-poll | KQUEUE_CONFIGURE_ENABLE= kernel-poll | ||||
MANPAGES_RUN_DEPENDS= ${LOCALBASE}/etc/man.d/erlang.conf:lang/erlang-man | MANPAGES_RUN_DEPENDS= ${LOCALBASE}/etc/man.d/erlang.conf:lang/erlang-man | ||||
ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC | ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC | ||||
ODBC_USES= localbase | ODBC_USES= localbase | ||||
ODBC_CONFIGURE_WITH= odbc | ODBC_CONFIGURE_WITH= odbc | ||||
ODBC_CFLAGS= -I/usr/local/include | ODBC_CFLAGS= -I/usr/local/include | ||||
ODBC_LDFLAGS= -L/usr/local/lib | ODBC_LDFLAGS= -L/usr/local/lib | ||||
OPENSSL_USES= ssl | OPENSSL_USES= ssl | ||||
OPENSSL_CONFIGURE_WITH= ssl=${OPENSSLBASE} | OPENSSL_CONFIGURE_WITH= ssl=${OPENSSLBASE} | ||||
PDF_IMPLIES= FOP | PDF_IMPLIES= FOP | ||||
PDF_VARS= PDF_DOC_TARGET=pdf | |||||
SCTP_CONFIGURE_ENABLE= sctp | SCTP_CONFIGURE_ENABLE= sctp | ||||
SHARING_CONFIGURE_ENABLE= sharing-preserving | SHARING_CONFIGURE_ENABLE= sharing-preserving | ||||
WX_USES= gl | WX_USES= gl | ||||
WX_CONFIGURE_WITH= wx-config=${WX_CONFIG} | WX_CONFIGURE_WITH= wx-config=${WX_CONFIG} | ||||
WX_VARS= USE_GL="gl glu" \ | WX_VARS= USE_GL="gl glu" \ | ||||
USE_WX=3.2+ \ | USE_WX=3.2+ \ | ||||
WX_COMPS="wx" | WX_COMPS="wx" | ||||
Show All 34 Lines | pre-configure-WX-off: | ||||
echo "disabled by port options" > ${WRKSRC}/lib/wx/SKIP | echo "disabled by port options" > ${WRKSRC}/lib/wx/SKIP | ||||
post-configure-ODBC-on: | post-configure-ODBC-on: | ||||
${RM} ${WRKSRC}/lib/odbc/SKIP | ${RM} ${WRKSRC}/lib/odbc/SKIP | ||||
post-configure-ODBC-off: | post-configure-ODBC-off: | ||||
echo "disabled by port options" > ${WRKSRC}/lib/odbc/SKIP | echo "disabled by port options" > ${WRKSRC}/lib/odbc/SKIP | ||||
do-build: | |||||
cd ${WRKSRC} && ${DO_MAKE_BUILD} ${ALL_TARGET} | |||||
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MFOP} || ${PORT_OPTIONS:MPDF} | |||||
cd ${WRKSRC} && ${DO_MAKE_BUILD} docs | |||||
.endif | |||||
post-build-CORBA-on: | post-build-CORBA-on: | ||||
cd ${WRKSRC_corba} && \ | cd ${WRKSRC_corba} && \ | ||||
${SETENV} OVERRIDE_TARGET=${CONFIGURE_TARGET} ERL_TOP=${WRKSRC_otp} \ | ${SETENV} OVERRIDE_TARGET=${CONFIGURE_TARGET} ERL_TOP=${WRKSRC_otp} \ | ||||
${MAKE_CMD} | ${MAKE_CMD} | ||||
.if ${PORT_OPTIONS:MFOP} | |||||
cd ${WRKSRC_corba} && \ | |||||
${SETENV} OVERRIDE_TARGET=${CONFIGURE_TARGET} ERL_TOP=${WRKSRC_otp} \ | |||||
${MAKE_CMD} docs | |||||
.endif | |||||
# The man-pages are put (in spite of FreeBSD's port convention) in a private | # The man-pages are put (in spite of FreeBSD's port convention) in a private | ||||
# subdir. This is to avoid cluttering up the man page name space. Also the | # subdir. This is to avoid cluttering up the man page name space. Also the | ||||
# Erlang man pages are more of internal documentation using the man format than | # Erlang man pages are more of internal documentation using the man format than | ||||
# actual system man pages. (erl.1 and epmd.1 perhaps being the exception). | # actual system man pages. (erl.1 and epmd.1 perhaps being the exception). | ||||
post-build-FOP-on: | do-install: | ||||
@cd ${WRKSRC} && \ | cd ${WRKSRC} && \ | ||||
${MAKE_CMD} docs | ${SETENV} ${MAKE_ENV} ${FAKEROOT} \ | ||||
.if ${PORT_OPTIONS:MCORBA} | ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} | ||||
cd ${WRKSRC_corba} && \ | .if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MFOP} || ${PORT_OPTIONS:MPDF} | ||||
${SETENV} OVERRIDE_TARGET=${CONFIGURE_TARGET} ERL_TOP=${WRKSRC_otp} \ | cd ${WRKSRC} && \ | ||||
${MAKE_CMD} docs | ${SETENV} ${MAKE_ENV} ${FAKEROOT} \ | ||||
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-docs | |||||
.endif | .endif | ||||
post-install: | post-install: | ||||
${LN} -sf ../lib/${ERLANG_LIB}/lib/erl_interface-${EI_VSN}/bin/erl_call \ | ${LN} -sf ../lib/${ERLANG_LIB}/lib/erl_interface-${EI_VSN}/bin/erl_call \ | ||||
${STAGEDIR}${PREFIX}/bin/erl_call | ${STAGEDIR}${PREFIX}/bin/erl_call | ||||
${LN} -sf ../lib/${ERLANG_LIB}/lib/snmp-${SNMP_VSN}/bin/snmpc \ | ${LN} -sf ../lib/${ERLANG_LIB}/lib/snmp-${SNMP_VSN}/bin/snmpc \ | ||||
${STAGEDIR}${PREFIX}/bin/snmpc | ${STAGEDIR}${PREFIX}/bin/snmpc | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |