blob: 7e23a02742ecc4f4f4e6121937025bd23a0a4263 (
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
|
# Created by: David Thiel <lx@redundancy.redundancy.org>
# $FreeBSD$
PORTNAME= runwhen
PORTVERSION= 2003.10.31
CATEGORIES= sysutils
MASTER_SITES= http://code.dogmap.org./${PORTNAME}/releases/
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools for running commands at particular times
BUILD_DEPENDS= ${LOCALBASE}/include/skalibs:${PORTSDIR}/devel/skalibs
USES= tar:bzip2
WRKSRC= ${WRKDIR}/admin/${DISTNAME}
ALL_TARGET= default
DOCS= src/CHANGES src/TODO package/README
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's!gcc -O2!${CC} ${CFLAGS}!' \
${WRKSRC}/conf-compile/host_compile.sh
@${REINPLACE_CMD} 's!gcc!${CC} ${LDFLAGS} ${LIBS}!' \
${WRKSRC}/conf-compile/host_link.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/* ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|