1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/misc/nut/Makefile
Martin Wilke a1b4db3216 - Update to 15.4
PR:		145145
Submitted by:	Sahil Tandon <sahil@tandon.net>
2010-04-02 16:47:37 +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= 15.4
CATEGORIES= misc
MASTER_SITES= SF
PKGNAMEPREFIX= health-
MAINTAINER= miwi@FreeBSD.org
COMMENT= Nutrition software to record what you eat
USE_GMAKE= yes
PORTDOCS= CREDITS LICENSE README nut.html README.DOS
DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/FOOD_DES.txt \
%%DATADIR%%/NUT_DATA.txt %%DATADIR%%/WEIGHT.lib \
%%DATADIR%%/WEIGHT.txt %%DATADIR%%/sr22.nut
PLIST_DIRS= %%DATADIR%%
MAN1= ${PORTNAME}.1
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/ && ${COPYTREE_SHARE} . ${DATADIR}/
@${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1/
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
.include <bsd.port.mk>