Ruslan has educated me both on the wisdom of why this approach is
better than mine, and why to wait for review. Submitted by: ru
This commit is contained in:
parent
360048a7ef
commit
0279b4a104
@ -5,6 +5,11 @@ LIB_BIND_REL= ..
|
||||
LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL}
|
||||
SRCDIR= ${BIND_DIR}/lib/lwres
|
||||
|
||||
# Unlike other BIND libs, this should be installed unless the user says NO.
|
||||
.if !defined(NO_BIND_LIBS_LWRES)
|
||||
WITH_BIND_LIBS= YES
|
||||
.endif
|
||||
|
||||
.include "${LIB_BIND_DIR}/config.mk"
|
||||
|
||||
LIB= lwres
|
||||
@ -22,14 +27,7 @@ CFLAGS+= -I${.CURDIR}
|
||||
DPADD= ${PTHREAD_DPADD}
|
||||
LDADD= ${PTHREAD_LDADD}
|
||||
|
||||
# Unlike other BIND libs, this should be installed unless the user says NO.
|
||||
.if !defined(NO_BIND)
|
||||
.if !defined(NO_BIND_LIBS_LWRES)
|
||||
.undef INTERNALLIB
|
||||
|
||||
SHLIB_MAJOR= ${LIBINTERFACE}
|
||||
SHLIB_MINOR= ${LIBINTERFACE}
|
||||
|
||||
.if defined(WITH_BIND_LIBS)
|
||||
INCS= ${SRCDIR}/include/lwres/context.h \
|
||||
${SRCDIR}/include/lwres/int.h \
|
||||
${SRCDIR}/include/lwres/ipv6.h \
|
||||
@ -46,6 +44,5 @@ INCS= ${SRCDIR}/include/lwres/context.h \
|
||||
|
||||
INCSDIR= ${INCLUDEDIR}/lwres
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user