summaryrefslogtreecommitdiff
path: root/share/zoneinfo
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-07-06 04:19:33 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-07-06 04:19:33 +0000
commitc5cba0607997688e78928c6844e8f902f336af27 (patch)
tree4276ff0296435bb43eadc15513a0cb04360ab716 /share/zoneinfo
parent01df7d10a5af251d6f03fcd04bf84142b9282000 (diff)
downloadsrc-test2-c5cba0607997688e78928c6844e8f902f336af27.tar.gz
src-test2-c5cba0607997688e78928c6844e8f902f336af27.zip
Notes
Diffstat (limited to 'share/zoneinfo')
-rw-r--r--share/zoneinfo/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/share/zoneinfo/Makefile b/share/zoneinfo/Makefile
index b83bbb6a7303..f018fff120ff 100644
--- a/share/zoneinfo/Makefile
+++ b/share/zoneinfo/Makefile
@@ -28,12 +28,24 @@
# $ svn commit # Commit message: "MFV of tzdata2008X"
#
+.include <src.opts.mk>
+
CLEANFILES+= yearistype
CLEANDIRS+= builddir
CONTRIBDIR= ${SRCTOP}/contrib/tzdata/
.PATH: ${CONTRIBDIR}
.if defined(LEAPSECONDS)
+.warning "Using backwards compatibility variable for LEAPSECONDS; please use WITH_ZONEINFO_LEAPSECONDS_SUPPORT instead"
+MK_ZONEINFO_LEAPSECONDS_SUPPORT= yes
+.endif
+
+.if defined(OLDTIMEZONES)
+.warning "Using backwards compatibility variable for OLDTIMEZONES; please use WITH_ZONEINFO_OLD_TIMEZONES_SUPPORT instead"
+MK_ZONEINFO_OLD_TIMEZONES_SUPPORT= yes
+.endif
+
+.if ${MK_ZONEINFO_LEAPSECONDS_SUPPORT} != "no"
LEAPFILE= -L ${CONTRIBDIR}leapseconds
.else
LEAPFILE=
@@ -43,7 +55,7 @@ TZFILES= africa antarctica asia australasia etcetera europe \
factory northamerica southamerica
POSIXRULES= America/New_York
-.if defined(OLDTIMEZONES)
+.if ${MK_ZONEINFO_OLD_TIMEZONES_SUPPORT} != "no"
TZFILES+= backward systemv
.endif
@@ -67,7 +79,7 @@ TZBUILDSUBDIRS= \
Pacific \
SystemV
-.if defined(OLDTIMEZONES)
+.if ${MK_ZONEINFO_OLD_TIMEZONES_SUPPORT} != "no"
TZBUILDSUBDIRS+= US Mexico Chile Canada Brazil
.endif