freebsd-ports/misc/nut/Makefile

41 lines
1.1 KiB
Makefile
Raw Normal View History

# 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
2008-01-31 21:06:28 +01:00
PORTVERSION= 13.2
CATEGORIES= misc
2007-10-06 01:44:14 +02:00
MASTER_SITES= SF
PKGNAMEPREFIX= health-
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Nutrition software to record what you eat
USE_GMAKE= yes
2007-10-06 01:44:14 +02:00
PORTDOCS= CREDITS LICENSE README nut.html
DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
2004-08-07 09:05:51 +02:00
ALL_TARGET= ${PORTNAME}
2007-10-06 01:44:14 +02:00
PORTDATA= FOOD_DES.txt NUT_DATA.txt WEIGHT.lib WEIGHT.txt sr20.nut
2007-08-10 00:52:13 +02:00
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:
2007-08-10 00:52:13 +02:00
@${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>