2006-05-08 16:03:37 +02:00
|
|
|
# New ports collection makefile for: nut
|
|
|
|
# Date created: Tue Apr 29 12:45:30 GMT 2003
|
|
|
|
# Whom: Kirill Ponomarew <ponomarew@oberon.net>
|
2003-05-04 00:03:10 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nut
|
2008-01-31 21:06:28 +01:00
|
|
|
PORTVERSION= 13.2
|
2003-05-04 00:03:10 +02:00
|
|
|
CATEGORIES= misc
|
2007-10-06 01:44:14 +02:00
|
|
|
MASTER_SITES= SF
|
2003-05-04 00:43:52 +02:00
|
|
|
PKGNAMEPREFIX= health-
|
2003-05-04 00:03:10 +02:00
|
|
|
|
2006-12-29 13:25:57 +01:00
|
|
|
MAINTAINER= infofarmer@FreeBSD.org
|
2005-10-11 15:33:09 +02:00
|
|
|
COMMENT= Nutrition software to record what you eat
|
2003-05-04 00:03:10 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2007-10-06 01:44:14 +02:00
|
|
|
PORTDOCS= CREDITS LICENSE README nut.html
|
2007-07-21 12:48:59 +02:00
|
|
|
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
|
2003-05-04 00:03:10 +02:00
|
|
|
|
|
|
|
post-patch:
|
2006-05-08 16:03:37 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr/local/lib/nut|${DATADIR}|" \
|
2007-07-21 12:48:59 +02:00
|
|
|
-e 's|^CFLAGS=|CFLAGS+=|g;s|-Os||;s|gcc|$${CC}|' ${WRKSRC}/Makefile
|
2003-05-04 00:03:10 +02:00
|
|
|
|
|
|
|
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}/
|
2003-06-04 11:02:15 +02:00
|
|
|
.endif
|
2003-05-04 00:03:10 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|