aboutsummaryrefslogtreecommitdiff
path: root/sysutils/extipl/Makefile
blob: 1f79c8476247aa659d673ebba5bbbbe25b9c93a6 (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
# New ports collection makefile for:	extipl
# Date created:		8 January 2001
# Whom:			KIMURA Takamichi <takamiti@tsden.org>
#
# $FreeBSD$
#

PORTNAME=	extipl
PORTVERSION=	5.04
CATEGORIES=	sysutils
MASTER_SITES=	SFJP/${PORTNAME}/2166

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Partition-selectable boot loader for IBM-PC/AT compatibles

BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm

ONLY_FOR_ARCHS=	i386 amd64

WRKSRC=		${WRKDIR}/${DISTNAME}/src

MAN8=		${PORTNAME}.8
PORTDOCS=	*
PLIST_FILES=	sbin/${PORTNAME}

post-patch:
	cd ${WRKSRC}; \
	${SED} -e 's|!!DOCDIR!!|${DOCSDIR}|g' \
		${PORTNAME}.8.in > ${PORTNAME}.8; \
	${REINPLACE_CMD} -e 's/^(CC)\t=/$$1?=/;' \
		-e 's/(DIR)[\t]*[?]=/$$1=/;' Makefile

do-install:
	${INSTALL_PROGRAM} -m 700 ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MAN8PREFIX}/man/man8
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}/English
	${INSTALL_DATA} ${WRKSRC}/../doc/English/*.txt ${DOCSDIR}/English
	@${MKDIR} ${DOCSDIR}/Japanese
	${INSTALL_DATA} ${WRKSRC}/../doc/Japanese/*.txt ${DOCSDIR}/Japanese
.endif

.include <bsd.port.mk>