Instead of hardcoding the BIND version, deduce it from ${BIND_DIR}/version.

This commit is contained in:
Dag-Erling Smørgrav 2004-09-23 07:52:51 +00:00
parent fcb61d9f95
commit b67acf67b2

View File

@ -1,7 +1,11 @@
# $FreeBSD$
# BIND version number
CFLAGS+= -DVERSION='"9.3.0"'
.if defined(BIND_DIR) && exists(${BIND_DIR}/version)
.include "${BIND_DIR}/version"
BIND_VERSION= ${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
CFLAGS+= -DVERSION='"${BIND_VERSION}"'
.endif
CFLAGS+= -DHAVE_CONFIG_H