Sync Mk with ports
[dports.git] / Mk / Uses / execinfo.mk
1 # $FreeBSD$
2 #
3 # handle dependency on libexecinfo
4 #
5 # Feature:      execinfo
6 # Usage:        USES=execinfo
7 #
8 # Takes no arguments
9 #
10 # Exported variables:
11 #
12 # EXECINFO_CPPFLAGS - preprocessor flags needed to correctly use
13 #                     execinfo library
14 # EXECINFO_LDFLAGS  - linker flags needed to correctly use
15 #                     execinfo library
16 #
17
18 .if !defined(_INCLUDE_USES_EXECINFO_MK)
19 _INCLUDE_USES_EXECINFO_MK=      yes
20
21 .if !exists(/usr/lib/libexecinfo.so)
22 LIB_DEPENDS+=   libexecinfo.so:devel/libexecinfo
23 EXECINFO_CPPFLAGS=      -I${LOCALBASE}/include
24 EXECINFO_LDFLAGS=       -L${LOCALBASE}/lib
25 .endif
26
27 .endif