diff options
author | fhajny <fhajny@pkgsrc.org> | 2012-04-16 07:28:14 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2012-04-16 07:28:14 +0000 |
commit | 5cb8d1254303fa40623fb271f170b6077a449666 (patch) | |
tree | fbe7dd985fda3146822346ee72a38cb7d0b119ce /lang/erlang/options.mk | |
parent | 01da6dc29f358beb4ad6f8a9713badd9a7bf4e56 (diff) | |
download | pkgsrc-5cb8d1254303fa40623fb271f170b6077a449666.tar.gz |
Add DTrace (SystemTap resp.) support for relevant platforms
Diffstat (limited to 'lang/erlang/options.mk')
-rw-r--r-- | lang/erlang/options.mk | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/lang/erlang/options.mk b/lang/erlang/options.mk index 4fbcbebc7bb..0cf0ef094f1 100644 --- a/lang/erlang/options.mk +++ b/lang/erlang/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.4 2011/04/14 19:34:07 asau Exp $ +# $NetBSD: options.mk,v 1.5 2012/04/16 07:28:14 fhajny Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.erlang PKG_SUPPORTED_OPTIONS= java erlang-hipe @@ -16,9 +16,14 @@ PKG_SUGGESTED_OPTIONS= # empty PKG_SUGGESTED_OPTIONS+= erlang-hipe .endif +.if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" || \ + ${OPSYS} == "Linux" +PKG_SUPPORTED_OPTIONS+= dtrace +.endif + .include "../../mk/bsd.options.mk" -PLIST_VARS+= odbc +PLIST_VARS+= odbc dtrace .if !empty(PKG_OPTIONS:Mjava) USE_JAVA= yes @@ -51,6 +56,18 @@ CONFIGURE_ARGS+= --with-odbc=${BUILDLINK_PREFIX.unixodbc} PLIST.odbc= yes .endif +### +### DTrace support +### +.if !empty(PKG_OPTIONS:Mdtrace) +. if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" +CONFIGURE_ARGS+= --with-dynamic-trace=dtrace +. elif ${OPSYS} == "Linux" +CONFIGURE_ARGS+= --with-dynamic-trace=systemtap +. endif +PLIST.dtrace= yes +.endif + # Help generate optional PLIST parts: PRINT_PLIST_AWK+= {if ($$0 ~ /\/erlang\/lib\/hipe-${VERSION.hipe}\//) {$$0 = "$${PLIST.hipe}" $$0;}} PRINT_PLIST_AWK+= {if ($$0 ~ /\/erlang\/lib\/odbc-${VERSION.odbc}\//) {$$0 = "$${PLIST.odbc}" $$0;}} |