summaryrefslogtreecommitdiff
path: root/time/cal/Makefile
blob: 79e7cf478f7f3c0eb90e19a0b3c6653fdd53a07a (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
# $NetBSD: Makefile,v 1.3 2001/02/25 04:18:19 hubertf Exp $
# FreeBSD Id: Makefile,v 1.5 1997/05/12 06:33:23 max Exp
#

DISTNAME=		cal-3.5
CATEGORIES=		time
MASTER_SITES=		${MASTER_SITE_SUNSITE:=utils/shell/}

MAINTAINER=		packages@netbsd.org
COMMENT=		Enhanced color version of standard calendar utility

WRKSRC=			${WRKDIR}/cal-3.5/source
MAKEFILE=		makefile.unx
ALL_TARGET=		cal

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/cal ${PREFIX}/bin/cal
	${INSTALL_MAN}  ${WRKSRC}/cal.1 ${PREFIX}/man/man1/cal.1
	@${INSTALL_DATA_DIR} ${PREFIX}/etc/cal
	@${CHMOD} 0755  ${PREFIX}/etc/cal
	if [ ! -f ${PREFIX}/etc/cal/calcol ]; then ${INSTALL_DATA} ${WRKDIR}/cal-3.5/cal.col ${PREFIX}/etc/cal/calcol; fi
	if [ ! -f ${PREFIX}/etc/cal/caldat ]; then ${INSTALL_DATA} ${WRKDIR}/cal-3.5/cal.dat ${PREFIX}/etc/cal/caldat; fi

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