diff options
author | bapt <bapt@FreeBSD.org> | 2014-08-05 07:01:26 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-08-05 07:01:26 +0800 |
commit | 72dc6ca9be3ad647f1caeda62f9e5e604a0db82f (patch) | |
tree | 028c5566f5a6373953999cf6ca6af4f72218c337 /Mk | |
parent | 8519dee8e6fca19a8f98a93f7a3cba3eead6ffbd (diff) | |
download | freebsd-ports-gnome-72dc6ca9be3ad647f1caeda62f9e5e604a0db82f.tar.gz freebsd-ports-gnome-72dc6ca9be3ad647f1caeda62f9e5e604a0db82f.tar.zst freebsd-ports-gnome-72dc6ca9be3ad647f1caeda62f9e5e604a0db82f.zip |
Add USES=execinfo to handle dependency on libexecinfo avoiding pull a useless
libdependency on ports libexecinfo on freebsd 10+
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/execinfo.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Mk/Uses/execinfo.mk b/Mk/Uses/execinfo.mk new file mode 100644 index 000000000000..9468d92f6bfe --- /dev/null +++ b/Mk/Uses/execinfo.mk @@ -0,0 +1,17 @@ +# $FreeBSD$ +# +# handle dependency on libexecinfo +# +# Feature: execinfo +# Usage: USES=exexinfo +# +# Take no arguments + +.if !defined(_INCLUDE_USES_EXECINFO_MK) +_INCLUDE_USES_EXECINFO_MK= yes + +.if !exists(/usr/lib/libexecinfo.so) +LIB_DEPENDS+= libexecinfo.so:${PORTSDIR}/devel/libexecinfo +.endif + +.endif |