aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/clockspeed/Makefile
blob: c11ccdadfb2e2c331665ebf5872be5cf885dd5e4 (plain) (blame)
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
# New ports collection makefile for: clockspeed
# Date created:     16 June 2000
# Whom:         Mario S F Ferreira <lioux@linf.unb.br> et al.
#
# $FreeBSD$
#

PORTNAME=   clockspeed
PORTVERSION=    0.62
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   http://cr.yp.to/clockspeed/ \
        ftp://mirror.pipex.net/pub/qmail/ \
        ftp://ftp.rifkin.technion.ac.il/pub/qmail/

MAINTAINER= lioux@FreeBSD.org

LIB_DEPENDS=    tai.1:${PORTSDIR}/devel/libtai

ALL_TARGET= it
INSTALL_TARGET= setup check

MAN1=       clockadd.1 clockspeed.1 clockview.1 sntpclock.1 \
        taiclock.1 taiclockd.1

do-configure:
    @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/INSTALL
    @${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
    @${ECHO} ${CC} -s -L${LOCALBASE}/lib > ${WRKSRC}/conf-ld
    @${ECHO} ${PREFIX} > ${WRKSRC}/conf-home

post-install:
.if !defined(NOPORTDOCS)
    @${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 \
        ${PREFIX}/share/doc/clockspeed
    @${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/clockspeed
.endif
    @${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 \
        ${PREFIX}/etc/clockspeed

.include <bsd.port.mk>