diff options
Diffstat (limited to 'test-ports/ports-dep-args/Mk/Uses/execinfo.mk')
-rw-r--r-- | test-ports/ports-dep-args/Mk/Uses/execinfo.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test-ports/ports-dep-args/Mk/Uses/execinfo.mk b/test-ports/ports-dep-args/Mk/Uses/execinfo.mk new file mode 100644 index 00000000..70204126 --- /dev/null +++ b/test-ports/ports-dep-args/Mk/Uses/execinfo.mk @@ -0,0 +1,27 @@ +# $FreeBSD: head/Mk/Uses/execinfo.mk 411970 2016-03-27 01:23:25Z bapt $ +# +# handle dependency on libexecinfo +# +# Feature: execinfo +# Usage: USES=execinfo +# +# Takes no arguments +# +# Exported variables: +# +# EXECINFO_CPPFLAGS - preprocessor flags needed to correctly use +# execinfo library +# EXECINFO_LDFLAGS - linker flags needed to correctly use +# execinfo library +# + +.if !defined(_INCLUDE_USES_EXECINFO_MK) +_INCLUDE_USES_EXECINFO_MK= yes + +.if !exists(/usr/lib/libexecinfo.so) +LIB_DEPENDS+= libexecinfo.so:devel/libexecinfo +EXECINFO_CPPFLAGS= -I${LOCALBASE}/include +EXECINFO_LDFLAGS= -L${LOCALBASE}/lib +.endif + +.endif |