1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/misc/nut/Makefile
Andrew Pantyukhin 946180661a - Update to 12.7
- Style nits
2007-08-09 22:52:13 +00:00

42 lines
1.1 KiB
Makefile

# 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= 12.7
CATEGORIES= misc
MASTER_SITES= http://www.lafn.org/~av832/ CENKES
PKGNAMEPREFIX= health-
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Nutrition software to record what you eat
USE_BZIP2= yes
USE_GMAKE= yes
PORTDOCS= CREDITS LICENSE README
DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
ALL_TARGET= ${PORTNAME}
PORTDATA= FOOD_DES.txt NUT_DATA.txt WEIGHT.lib WEIGHT.txt sr19.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>