summaryrefslogtreecommitdiff
path: root/sysutils/raincoat/Makefile
blob: a776c2ae1534d2d64bb049e26888f2960b0a679e (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
# Created by: Ed Schouten <ed@fxq.nl>
# $FreeBSD$

PORTNAME=		raincoat
PORTVERSION=		0.11
CATEGORIES=		sysutils
MASTER_SITES=		SF/xbox-linux/Other/Raincoat
EXTRACT_SUFX=		.tbz2

MAINTAINER=		ed@FreeBSD.org
COMMENT=		BIOS flash utility for the Microsoft Xbox

# Xbox is i386
ONLY_FOR_ARCHS=		i386

USE_BZIP2=		yes

PORTDOCS=		README

NO_STAGE=	yes
post-patch:
.for f in docs/README src/${PORTNAME}.c
	@${REINPLACE_CMD} -e 's|/etc/raincoat\.conf|${PREFIX}&|g' \
		${WRKSRC}/${f}
.endfor

do-build:
	${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/src/${PORTNAME}.c ${WRKSRC}/src/BootFlash.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.default
.if !exists(${PREFIX}/etc/${PORTNAME}.conf)
	${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.conf ${PREFIX}/etc
.endif

.if !defined (NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>