mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
e6809a37d4
- Move docsdir to avoid conflicts with sysutils/nut - Respect CC and don't do -Os
43 lines
1.1 KiB
Makefile
43 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.6
|
|
CATEGORIES= misc
|
|
MASTER_SITES= http://www.lafn.org/~av832/ CENKES
|
|
PKGNAMEPREFIX= health-
|
|
|
|
MAINTAINER= infofarmer@FreeBSD.org
|
|
COMMENT= Nutrition software to record what you eat
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
PORTDOCS= CREDITS LICENSE README
|
|
DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
|
|
ALL_TARGET= ${PORTNAME}
|
|
RAW= FOOD_DES.txt NUT_DATA.txt WEIGHT.lib WEIGHT.txt sr19.nut
|
|
PLIST_FILES= bin/${PORTNAME} ${RAW:S,^,%%DATADIR%%/,}
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
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} ${TARGETDIR}/bin/
|
|
${INSTALL} -d ${DATADIR}
|
|
${INSTALL_DATA} ${RAW:S,^,${WRKSRC}/raw.data/,} ${DATADIR}/
|
|
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1/
|
|
.if !defined(NOPORTDOCS)
|
|
${INSTALL} -d ${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|