aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/runwhen/Makefile
blob: cf021e73b035e4d02fecfe1b301be44065aa685f (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
42
43
44
# New ports collection makefile for:    runwhen
# Date created:     2003-10-31
# Whom:         David Thiel <lx@redundancy.redundancy.org>
#
# $FreeBSD$
#

PORTNAME=   runwhen
PORTVERSION=    2003.10.31
CATEGORIES= sysutils
MASTER_SITES=   http://code.dogmap.org./${PORTNAME}/releases/

MAINTAINER= lx@redundancy.redundancy.org
COMMENT=    Tools for running commands at particular times

BUILD_DEPENDS=  ${LOCALBASE}/include/skalibs:${PORTSDIR}/devel/skalibs

USE_BZIP2=  yes
USE_REINPLACE=  yes

WRKSRC=     ${WRKDIR}/admin/${DISTNAME}
ALL_TARGET= default

DOCS=       src/CHANGES src/TODO package/README

post-patch:
    @${REINPLACE_CMD} -e 's!gcc -O2!${CC} ${CFLAGS}!' \
        ${WRKSRC}/conf-compile/host_compile.sh

do-configure:
    ${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-compile/package_home
    ${ECHO_CMD} ${LOCALBASE} > ${WRKSRC}/conf-compile/depend_skalibs

do-build:
    cd ${WRKSRC} && package/compile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>