summaryrefslogtreecommitdiff
path: root/devel/libtai/Makefile
blob: c8eed1443534d80e7dc984054f26f6cb0f44e56a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $NetBSD: Makefile,v 1.1.1.1 2007/03/15 05:27:12 schmonz Exp $
#

DISTNAME=	libtai-0.60
CATEGORIES=	devel
MASTER_SITES=	${HOMEPAGE}

MAINTAINER=	schmonz@NetBSD.org
HOMEPAGE=	http://cr.yp.to/libtai/
COMMENT=	Library for storing and manipulating dates and times

DJB_RESTRICTED=	NO

USE_TOOLS+=	nroff

EGDIR=		share/doc/examples/${PKGBASE}
CONF_FILES+=	${EGDIR}/leapsecs.dat ${PKG_SYSCONFDIR}/leapsecs.dat

INSTALLATION_DIRS=	bin include lib ${EGDIR}
INSTALLATION_DIRS+=	${PKGMANDIR}/man3 ${PKGMANDIR}/cat3

do-install:
	cd ${WRKSRC};							\
	for f in *.3; do						\
		${INSTALL_MAN} $${f} ${PREFIX}/${PKGMANDIR}/man3;	\
	done;								\
	for f in *.0; do						\
		${INSTALL_MAN} $${f} ${PREFIX}/${PKGMANDIR}/cat3;	\
	done;								\
	for f in easter nowutc leapsecs yearcal; do			\
		${INSTALL_PROGRAM} $${f} ${PREFIX}/bin;			\
	done;								\
	for f in *.h; do						\
		${INSTALL_DATA} $${f} ${PREFIX}/include;		\
	done;								\
	for f in libtai.a; do						\
		${INSTALL_LIB} $${f} ${PREFIX}/lib;			\
	done;								\
	for f in leapsecs.dat leapsecs.txt; do				\
		${INSTALL_DATA} $${f} ${PREFIX}/${EGDIR};		\
	done;								\

.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"