summaryrefslogtreecommitdiff
path: root/misc/nut/Makefile
blob: a12365e0207d88cca532a216afe5820b2d04b45b (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
45
46
47
48
# New ports collection makefile for:  nut
# Date created:       	Tue Apr 29 12:45:30 GMT 2003
# Whom:                Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#

PORTNAME=	nut
PORTVERSION=	8.10
CATEGORIES=	misc
MASTER_SITES=	http://www.lafn.org/~av832/
PKGNAMEPREFIX=	health-

MAINTAINER=	ponomarew@oberon.net
COMMENT=	Nut is nutrition software to record what you eat

MAN1=		nut.1

USE_GMAKE=	yes
USE_REINPLACE=	yes

post-patch:
	@${REINPLACE_CMD} -e \
	's|%%PREFIX%%|${PREFIX}|g' \
		${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
	${MKDIR} ${PREFIX}/etc/${PORTNAME}
	${INSTALL_DATA}	${WRKSRC}/raw.data/FOOD_DES.txt \
		${PREFIX}/etc/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/raw.data/NUT_DATA.txt	\
		${PREFIX}/etc/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/raw.data/WEIGHT.txt \
		${PREFIX}/etc/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/raw.data/sr15.nut \
		${PREFIX}/etc/${PORTNAME}
	${INSTALL_MAN} ${WRKSRC}/nut.1 ${PREFIX}/man/man1

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in README sr15_doc.htm
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>