3 .PATH: ${.CURDIR}/../../include
12 _WITH_GETLINE!= grep -c _WITH_GETLINE /usr/include/stdio.h || true
13 .if ${_WITH_GETLINE} == 0
14 .PATH: ${.CURDIR}/../../contrib/file ${.CURDIR}/../../lib/libmagic
15 SRCS= getline.c config.h
16 CFLAGS+= -DHAVE_CONFIG_H -I.
19 ${SRCS:N*.h:R:S/$/.o/}: config.h
20 config.h: ${.CURDIR}/../../lib/libmagic/config.h
21 grep -v HAVE_GETLINE ${.ALLSRC} > ${.TARGET}
24 _WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/pwd.h || true
25 .if ${_WITH_PWCACHEDB} == 0
26 .PATH: ${.CURDIR}/../../contrib/libc-pwcache
27 CFLAGS+= -I${.CURDIR}/../../contrib/libc-pwcache \
28 -I${.CURDIR}/../../lib/libc/include
32 _WITH_STRSVIS!= grep -c strsvis /usr/include/vis.h || true
33 .if ${_WITH_STRSVIS} == 0
34 .PATH: ${.CURDIR}/../../contrib/libc-vis
36 CFLAGS+= -I${.CURDIR}/../../contrib/libc-vis \
37 -I${.CURDIR}/../../lib/libc/include
44 .if defined(CROSS_BUILD_TESTING)