blob: dd2f75184fbf278df832ffc35592093df9df794f (
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
|
# 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= 13.6
CATEGORIES= misc
MASTER_SITES= SF
PKGNAMEPREFIX= health-
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Nutrition software to record what you eat
USE_GMAKE= yes
PORTDOCS= CREDITS LICENSE README nut.html
DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
ALL_TARGET= ${PORTNAME}
PORTDATA= FOOD_DES.txt NUT_DATA.txt WEIGHT.lib WEIGHT.txt sr20.nut
PLIST_FILES= bin/${PORTNAME}
MAN1= ${PORTNAME}.1
.undef NOPORTDATA
post-patch:
@${REINPLACE_CMD} -e "s|/usr/local/lib/nut|${DATADIR}|" \
-e 's|^CFLAGS=|CFLAGS+=|g;s|-Os||;s|gcc|$${CC}|' ${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
@${INSTALL} -d ${DATADIR}/
@cd ${WRKSRC}/raw.data/&&${INSTALL_DATA} ${PORTDATA} ${DATADIR}/
@${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1/
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
.include <bsd.port.mk>
|