svn commit: r245311 - head/tools/build
Brooks Davis
brooks at FreeBSD.org
Fri Jan 11 20:51:03 UTC 2013
Author: brooks
Date: Fri Jan 11 20:51:02 2013
New Revision: 245311
URL: http://svnweb.freebsd.org/changeset/base/245311
Log:
Add pwcache(3) and vis(3) to libegacy as install(1) is about to grow a
dependency on them.
Sponsored by: DARPA, AFRL
Modified:
head/tools/build/Makefile
Modified: head/tools/build/Makefile
==============================================================================
--- head/tools/build/Makefile Fri Jan 11 19:11:56 2013 (r245310)
+++ head/tools/build/Makefile Fri Jan 11 20:51:02 2013 (r245311)
@@ -21,6 +21,22 @@ config.h: ${.CURDIR}/../../lib/libmagic/
grep -v HAVE_GETLINE ${.ALLSRC} > ${.TARGET}
.endif
+_WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/pwd.h || true
+.if ${_WITH_PWCACHEDB} == 0
+.PATH: ${.CURDIR}/../../contrib/libc-pwcache
+CFLAGS+= -I${.CURDIR}/../../contrib/libc-pwcache \
+ -I${.CURDIR}/../../lib/libc/include
+SRCS+= pwcache.c
+.endif
+
+_WITH_STRSVIS!= grep -c strsvis /usr/include/vis.h || true
+.if ${_WITH_STRSVIS} == 0
+.PATH: ${.CURDIR}/../../contrib/libc-vis
+SRCS+= vis.c
+CFLAGS+= -I${.CURDIR}/../../contrib/libc-vis \
+ -I${.CURDIR}/../../lib/libc/include
+.endif
+
.if empty(SRCS)
SRCS= dummy.c
.endif
More information about the svn-src-head
mailing list