head 1.23; access; symbols pkgsrc-2023Q4:1.23.0.26 pkgsrc-2023Q4-base:1.23 pkgsrc-2023Q3:1.23.0.24 pkgsrc-2023Q3-base:1.23 pkgsrc-2023Q2:1.23.0.22 pkgsrc-2023Q2-base:1.23 pkgsrc-2023Q1:1.23.0.20 pkgsrc-2023Q1-base:1.23 pkgsrc-2022Q4:1.23.0.18 pkgsrc-2022Q4-base:1.23 pkgsrc-2022Q3:1.23.0.16 pkgsrc-2022Q3-base:1.23 pkgsrc-2022Q2:1.23.0.14 pkgsrc-2022Q2-base:1.23 pkgsrc-2022Q1:1.23.0.12 pkgsrc-2022Q1-base:1.23 pkgsrc-2021Q4:1.23.0.10 pkgsrc-2021Q4-base:1.23 pkgsrc-2021Q3:1.23.0.8 pkgsrc-2021Q3-base:1.23 pkgsrc-2021Q2:1.23.0.6 pkgsrc-2021Q2-base:1.23 pkgsrc-2021Q1:1.23.0.4 pkgsrc-2021Q1-base:1.23 pkgsrc-2020Q4:1.23.0.2 pkgsrc-2020Q4-base:1.23 pkgsrc-2020Q3:1.22.0.4 pkgsrc-2020Q3-base:1.22 pkgsrc-2020Q2:1.22.0.2 pkgsrc-2020Q2-base:1.22 pkgsrc-2020Q1:1.19.0.2 pkgsrc-2020Q1-base:1.19 pkgsrc-2019Q4:1.17.0.6 pkgsrc-2019Q4-base:1.17 pkgsrc-2019Q3:1.17.0.2 pkgsrc-2019Q3-base:1.17 pkgsrc-2019Q2:1.16.0.4 pkgsrc-2019Q2-base:1.16 pkgsrc-2019Q1:1.16.0.2 pkgsrc-2019Q1-base:1.16 pkgsrc-2018Q4:1.14.0.14 pkgsrc-2018Q4-base:1.14 pkgsrc-2018Q3:1.14.0.12 pkgsrc-2018Q3-base:1.14 pkgsrc-2018Q2:1.14.0.10 pkgsrc-2018Q2-base:1.14 pkgsrc-2018Q1:1.14.0.8 pkgsrc-2018Q1-base:1.14 pkgsrc-2017Q4:1.14.0.6 pkgsrc-2017Q4-base:1.14 pkgsrc-2017Q3:1.14.0.4 pkgsrc-2017Q3-base:1.14 pkgsrc-2017Q2:1.13.0.2 pkgsrc-2017Q2-base:1.13 pkgsrc-2017Q1:1.11.0.36 pkgsrc-2017Q1-base:1.11 pkgsrc-2016Q4:1.11.0.34 pkgsrc-2016Q4-base:1.11 pkgsrc-2016Q3:1.11.0.32 pkgsrc-2016Q3-base:1.11 pkgsrc-2016Q2:1.11.0.30 pkgsrc-2016Q2-base:1.11 pkgsrc-2016Q1:1.11.0.28 pkgsrc-2016Q1-base:1.11 pkgsrc-2015Q4:1.11.0.26 pkgsrc-2015Q4-base:1.11 pkgsrc-2015Q3:1.11.0.24 pkgsrc-2015Q3-base:1.11 pkgsrc-2015Q2:1.11.0.22 pkgsrc-2015Q2-base:1.11 pkgsrc-2015Q1:1.11.0.20 pkgsrc-2015Q1-base:1.11 pkgsrc-2014Q4:1.11.0.18 pkgsrc-2014Q4-base:1.11 pkgsrc-2014Q3:1.11.0.16 pkgsrc-2014Q3-base:1.11 pkgsrc-2014Q2:1.11.0.14 pkgsrc-2014Q2-base:1.11 pkgsrc-2014Q1:1.11.0.12 pkgsrc-2014Q1-base:1.11 pkgsrc-2013Q4:1.11.0.10 pkgsrc-2013Q4-base:1.11 pkgsrc-2013Q3:1.11.0.8 pkgsrc-2013Q3-base:1.11 pkgsrc-2013Q2:1.11.0.6 pkgsrc-2013Q2-base:1.11 pkgsrc-2013Q1:1.11.0.4 pkgsrc-2013Q1-base:1.11 pkgsrc-2012Q4:1.11.0.2 pkgsrc-2012Q4-base:1.11 pkgsrc-2012Q3:1.6.0.6 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.4 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.2 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.5.0.4 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.2 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.4.0.26 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.24 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.22 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.20 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.18 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.16 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.14 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.12 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.10 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.8 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.6 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.4 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.2 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.3.0.6 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.4 pkgsrc-2008Q1:1.3.0.2 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.2.0.8 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.6 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.4 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.2 pkgsrc-2007Q1-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.23 date 2020.11.19.09.35.38; author schmonz; state Exp; branches; next 1.22; commitid iAKfOyec2NWiNtwC; 1.22 date 2020.06.26.16.37.22; author schmonz; state Exp; branches; next 1.21; commitid afOsQpPiuxYHOKdC; 1.21 date 2020.06.25.05.42.36; author schmonz; state Exp; branches; next 1.20; commitid xPBN1QptNF4rezdC; 1.20 date 2020.05.23.21.32.14; author schmonz; state Exp; branches; next 1.19; commitid HAtQUXEGce5Txp9C; 1.19 date 2020.03.22.13.24.00; author rillig; state Exp; branches; next 1.18; commitid rSWT681mx2qXPo1C; 1.18 date 2020.01.26.17.31.00; author rillig; state Exp; branches; next 1.17; commitid 4fBBvoSLJaGd0eUB; 1.17 date 2019.07.16.21.38.15; author schmonz; state Exp; branches; next 1.16; commitid dLWaTmYajBJNBjvB; 1.16 date 2019.01.10.03.12.46; author schmonz; state Exp; branches; next 1.15; commitid Cxuu1eJmX1Jgvb7B; 1.15 date 2019.01.08.03.57.11; author schmonz; state Exp; branches; next 1.14; commitid jKLlibqnKOyuOV6B; 1.14 date 2017.07.26.00.29.53; author schmonz; state Exp; branches; next 1.13; commitid YxvFZOIX28YqJF0A; 1.13 date 2017.06.26.01.06.07; author schmonz; state Exp; branches; next 1.12; commitid IeB4LYkU08VITOWz; 1.12 date 2017.06.26.00.45.54; author schmonz; state Exp; branches; next 1.11; commitid HX4L4mxY4ugTMOWz; 1.11 date 2012.10.31.11.17.22; author asau; state Exp; branches; next 1.10; 1.10 date 2012.10.21.13.37.12; author schmonz; state Exp; branches; next 1.9; 1.9 date 2012.10.21.13.36.19; author schmonz; state Exp; branches; next 1.8; 1.8 date 2012.10.21.11.26.50; author cheusov; state Exp; branches; next 1.7; 1.7 date 2012.10.21.11.20.20; author cheusov; state Exp; branches; next 1.6; 1.6 date 2012.03.06.23.25.18; author joerg; state Exp; branches; next 1.5; 1.5 date 2011.08.01.05.37.12; author dholland; state Exp; branches; next 1.4; 1.4 date 2008.07.30.10.36.27; author schmonz; state Exp; branches; next 1.3; 1.3 date 2008.03.03.17.45.36; author jlam; state Exp; branches; next 1.2; 1.2 date 2007.03.15.05.30.45; author schmonz; state Exp; branches; next 1.1; 1.1 date 2007.03.15.05.27.12; author schmonz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.03.15.05.27.12; author schmonz; state Exp; branches; next ; desc @@ 1.23 log @Remove DJB_RESTRICTED, no longer used. @ text @# $NetBSD: Makefile,v 1.22 2020/06/26 16:37:22 schmonz Exp $ # DISTNAME= libtai-0.60 PKGREVISION= 8 CATEGORIES= devel MASTER_SITES= http://cr.yp.to/libtai/ MAINTAINER= schmonz@@NetBSD.org HOMEPAGE= https://cr.yp.to/libtai.html COMMENT= Library for storing and manipulating dates and times LICENSE= public-domain CONFLICTS= libowfat<0.32nb1 EGDIR= share/examples/${PKGBASE} SUBST_CLASSES+= djberrno SUBST_FILES.djberrno= leapsecs_read.c SUBST_CLASSES+= paths SUBST_STAGE.paths= do-configure SUBST_FILES.paths= leapsecs.3 leapsecs_read.c SUBST_VARS.paths= PKG_SYSCONFDIR INSTALLATION_DIRS= bin include lib ${EGDIR} INSTALLATION_DIRS+= ${PKGMANDIR}/man3 .include "options.mk" post-build: cd ${WRKSRC} && ./leapsecs < leapsecs.txt > leapsecs.dat do-install: set -e; cd ${WRKSRC}; \ for f in *.3; do \ ${INSTALL_MAN} "$${f}" ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3; \ done; \ for f in easter nowutc leapsecs yearcal; do \ ${INSTALL_PROGRAM} "$${f}" ${DESTDIR}${PREFIX}/bin; \ done; \ for f in *.h; do \ ${INSTALL_DATA} "$${f}" ${DESTDIR}${PREFIX}/include; \ done; \ for f in libtai.a; do \ ${INSTALL_DATA} "$${f}" ${DESTDIR}${PREFIX}/lib; \ done; \ for f in leapsecs.dat leapsecs.txt; do \ ${INSTALL_DATA} "$${f}" ${DESTDIR}${PREFIX}/${EGDIR}; \ done .include "../../mk/djbware.mk" .include "../../mk/bsd.pkg.mk" @ 1.22 log @Assign non-default SUBST_FILES.djberrno with =, not += (because it doesn't actually append). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2020/06/25 05:42:36 schmonz Exp $ a15 2 DJB_RESTRICTED= NO @ 1.21 log @Retire 'djbware-errno-hack' and associated options.mk cleverness. Instead: 1. Package makefiles including their own options.mk 2. Packages say "SUBST_CLASSES+=djberrno" to get the hack, if needed 3. Packages adjust SUBST_FILES.djberrno, if needed Should fix bulk build failures due to multiple inclusions of options.mk and/or incorrect definitions of DJB_ERRNO_HACK. Approved during the freeze by wiz@@. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2020/05/23 21:32:14 schmonz Exp $ d21 1 a21 1 SUBST_FILES.djberrno+= leapsecs_read.c @ 1.20 log @Restore missing .include of options.mk. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2020/03/22 13:24:00 rillig Exp $ a16 1 DJB_ERRNO_HACK= no d20 2 a21 1 SUBST_FILES.djbware+= leapsecs_read.c @ 1.19 log @devel/libtai: remove unnecessary errno hack option @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2020/01/26 17:31:00 rillig Exp $ d31 2 @ 1.18 log @all: migrate homepages from http to https pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2019/07/16 21:38:15 schmonz Exp $ d17 1 @ 1.17 log @Don't conflict with sufficiently new libowfat. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2019/01/10 03:12:46 schmonz Exp $ d10 1 a10 1 HOMEPAGE= http://cr.yp.to/libtai.html @ 1.16 log @Having leapsecs.dat is helpful for accuracy iff /etc/localtime is TAI, which is not true of most systems. Add 'tai-system-clock' option, off by default, that installs leapsecs.dat in ${PKG_SYSCONFDIR} and also depends on leapsunpack for easy updating by the sysadmin. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2019/01/08 03:57:11 schmonz Exp $ d5 1 a5 1 PKGREVISION= 7 d14 1 a14 1 CONFLICTS= libowfat-[0-9]* @ 1.15 log @Add the latest leap second. Generate leapsecs.dat during build. Install static library with sensible permissions. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2017/07/26 00:29:53 schmonz Exp $ d5 1 a5 1 PKGREVISION= 6 a18 1 CONF_FILES+= ${EGDIR}/leapsecs.dat ${PKG_SYSCONFDIR}/leapsecs.dat d25 1 a25 1 SUBST_SED.paths= -e 's,@@PKG_SYSCONFDIR@@,${PKG_SYSCONFDIR:Q},g' @ 1.14 log @Don't bother building catpages, and stop needing nroff. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2017/06/26 01:06:07 schmonz Exp $ d5 1 a5 1 PKGREVISION= 5 d31 3 d46 1 a46 1 ${INSTALL_LIB} "$${f}" ${DESTDIR}${PREFIX}/lib; \ @ 1.13 log @Actually, this code is public-domain. Respect PKG_SYSCONFDIR. Ride previous PKGREVISION bump. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2017/06/26 00:45:54 schmonz Exp $ a17 2 USE_TOOLS+= nroff @ 1.12 log @Remove patches that seem unnecessary with present-day clang. Add patch with new leap seconds since this software was written. Specify LICENSE explicitly. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2012/10/31 11:17:22 asau Exp $ d12 1 a12 1 LICENSE= djb-nonlicense d25 5 @ 1.11 log @Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2012/10/21 13:37:12 schmonz Exp $ d5 1 a5 1 PKGREVISION= 4 d12 1 d23 2 @ 1.10 log @Indent (no functional change). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2012/10/21 13:36:19 schmonz Exp $ a16 2 PKG_DESTDIR_SUPPORT= user-destdir @ 1.9 log @Fix HOMEPAGE. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2012/10/21 11:26:50 cheusov Exp $ d4 8 a11 8 DISTNAME= libtai-0.60 PKGREVISION= 4 CATEGORIES= devel MASTER_SITES= http://cr.yp.to/libtai/ MAINTAINER= schmonz@@NetBSD.org HOMEPAGE= http://cr.yp.to/libtai.html COMMENT= Library for storing and manipulating dates and times d13 1 a13 1 CONFLICTS= libowfat-[0-9]* d15 1 a15 1 DJB_RESTRICTED= NO d19 1 a19 1 USE_TOOLS+= nroff d21 2 a22 2 EGDIR= share/examples/${PKGBASE} CONF_FILES+= ${EGDIR}/leapsecs.dat ${PKG_SYSCONFDIR}/leapsecs.dat @ 1.8 log @CONFLICTS between libtai and libowfat @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2012/10/21 11:20:20 cheusov Exp $ d7 1 a7 1 MASTER_SITES= ${HOMEPAGE:Q} d10 1 a10 1 HOMEPAGE= http://cr.yp.to/libtai/ @ 1.7 log @Fix pkglint warnings @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2012/03/06 23:25:18 joerg Exp $ d5 1 a5 1 PKGREVISION= 3 d13 2 @ 1.6 log @Don't bother with catpages. Bump revision. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2011/08/01 05:37:12 dholland Exp $ d7 1 a7 1 MASTER_SITES= ${HOMEPAGE} d26 1 a26 1 cd ${WRKSRC}; \ d28 1 a28 1 ${INSTALL_MAN} $${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3; \ d31 1 a31 1 ${INSTALL_PROGRAM} $${f} ${DESTDIR}${PREFIX}/bin; \ d34 1 a34 1 ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/include; \ d37 1 a37 1 ${INSTALL_LIB} $${f} ${DESTDIR}${PREFIX}/lib; \ d40 2 a41 2 ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/${EGDIR}; \ done; \ @ 1.5 log @Fix void main, which clang won't accept. While here, fix an LP64 issue caught by gcc (malloc without stdlib.h) so bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2008/07/30 10:36:27 schmonz Exp $ d5 1 a5 1 PKGREVISION= 2 d23 1 a23 1 INSTALLATION_DIRS+= ${PKGMANDIR}/man3 ${PKGMANDIR}/cat3 a29 3 for f in *.0; do \ ${INSTALL_MAN} $${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat3; \ done; \ @ 1.4 log @#include in leapsecs_read.c so we can read leapsecs.dat. Add a buildlink3.mk file. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2008/03/03 17:45:36 jlam Exp $ d5 1 a5 1 PKGREVISION= 1 @ 1.3 log @Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2007/03/15 05:30:45 schmonz Exp $ d5 1 @ 1.2 log @Fix path to examples. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2007/03/15 05:27:12 schmonz Exp $ d14 2 d27 1 a27 1 ${INSTALL_MAN} $${f} ${PREFIX}/${PKGMANDIR}/man3; \ d30 1 a30 1 ${INSTALL_MAN} $${f} ${PREFIX}/${PKGMANDIR}/cat3; \ d33 1 a33 1 ${INSTALL_PROGRAM} $${f} ${PREFIX}/bin; \ d36 1 a36 1 ${INSTALL_DATA} $${f} ${PREFIX}/include; \ d39 1 a39 1 ${INSTALL_LIB} $${f} ${PREFIX}/lib; \ d42 1 a42 1 ${INSTALL_DATA} $${f} ${PREFIX}/${EGDIR}; \ @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD$ d16 1 a16 1 EGDIR= share/doc/examples/${PKGBASE} @ 1.1.1.1 log @Initial import of libtai 0.60, a public-domain library for storing and manipulating dates and times. libtai supports two time scales: (1) TAI64, covering a few hundred billion years with 1-second precision; (2) TAI64NA, covering the same period with 1-attosecond precision. Both scales are defined in terms of TAI, the current international real time standard. libtai provides an internal format for TAI64, struct tai, designed for fast time manipulations. The tai_pack() and tai_unpack() routines convert between struct tai and a portable 8-byte TAI64 storage format. libtai provides similar internal and external formats for TAI64NA. This version of libtai requires a UNIX system with gettimeofday(). It will be easy to port to other operating systems with compilers supporting 64-bit arithmetic. @ text @@