From owner-svn-ports-head@FreeBSD.ORG Fri Aug 17 13:16:43 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD2641065688; Fri, 17 Aug 2012 13:16:43 +0000 (UTC) (envelope-from olgeni@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A7B7B8FC0A; Fri, 17 Aug 2012 13:16:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q7HDGhEm074066; Fri, 17 Aug 2012 13:16:43 GMT (envelope-from olgeni@svn.freebsd.org) Received: (from olgeni@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7HDGhoO074064; Fri, 17 Aug 2012 13:16:43 GMT (envelope-from olgeni@svn.freebsd.org) Message-Id: <201208171316.q7HDGhoO074064@svn.freebsd.org> From: Jimmy Olgeni Date: Fri, 17 Aug 2012 13:16:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r302681 - head/lang/erlang X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2012 13:16:43 -0000 Author: olgeni Date: Fri Aug 17 13:16:43 2012 New Revision: 302681 URL: http://svn.freebsd.org/changeset/ports/302681 Log: Add experimental DTrace support. Obtained from: Kenji Rikitake's Erlang port on github https://github.com/jj1bdx/erlang-freebsd-port Modified: head/lang/erlang/Makefile Modified: head/lang/erlang/Makefile ============================================================================== --- head/lang/erlang/Makefile Fri Aug 17 12:12:52 2012 (r302680) +++ head/lang/erlang/Makefile Fri Aug 17 13:16:43 2012 (r302681) @@ -44,7 +44,7 @@ SUB_LIST= TOOLS_VSN=${TOOLS_VSN} MAKE_JOBS_UNSAFE=yes -OPTIONS_DEFINE= DOCS GS HIPE JAVA KQUEUE ODBC OPENSSL SCTP SMP THREADS WX +OPTIONS_DEFINE= DOCS GS HIPE JAVA KQUEUE ODBC OPENSSL SCTP SMP THREADS WX DTRACE OPTIONS_SINGLE= ODBC OPTIONS_SINGLE_ODBC= IODBC UNIXODBC @@ -54,11 +54,26 @@ SCTP_DESC= Enable SCTP support SMP_DESC= Enable SMP support WX_DESC= Enable WX application GS_DESC= Enable GS application (deprecated) +DTRACE_DESC= Enable DTrace support (experimental) OPTIONS_DEFAULT=SMP OPENSSL THREADS SCTP KQUEUE .include +# See http://wiki.freebsd.org/DTrace to learn how to enable DTrace +# on your system. You will need to configure STRIP, WITH_CTF and +# CFLAGS in your make.conf before building. + +# If you run Erlang and get a message resembling "WARNING: number of +# probes fixed does not match the number of defined probes (54 != 132, +# respectively)" you probably misconfigured DTrace in some way. + +.if ${PORT_OPTIONS:MDTRACE} +CONFIGURE_ARGS+=--with-dynamic-trace=dtrace +.else +CONFIGURE_ARGS+=--without-dynamic-trace +.endif + .if ${PORT_OPTIONS:MOPENSSL} USE_OPENSSL= yes CONFIGURE_ARGS+=--with-ssl=${OPENSSLBASE}