From b67acf67b2cb6cacea992e66daa55633eec36c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Thu, 23 Sep 2004 07:52:51 +0000 Subject: [PATCH] Instead of hardcoding the BIND version, deduce it from ${BIND_DIR}/version. --- lib/bind/config.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/bind/config.mk b/lib/bind/config.mk index 1ca8a27e0ca3..23ba65e7a2b5 100644 --- a/lib/bind/config.mk +++ b/lib/bind/config.mk @@ -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