1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/math/physcalc/Makefile
Pav Lucistnik 73aa4fd5f4 - The path to the .phy files was built up using un-zero'd memory, so it could
(and did, for me) break in strange and unexpected ways.

- EOF on input (e.g., ^D) would cause it to loop forever.

PR:		ports/136060
Submitted by:	Matthew D. Fuller <fullermd@over-yonder.net>
2009-06-26 11:25:37 +00:00

40 lines
964 B
Makefile

# New ports collection makefile for: physcalc
# Date created: Sun 27 Aug 2000
# Whom: Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#
PORTNAME= physcalc
PORTVERSION= 2.4
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ftp://ftp.lightlink.com/pub/vulcan/
DISTNAME= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Extremely flexible calculator that behaves much like units(1)
EXTRACT_BEFORE_ARGS= -aq
EXTRACT_AFTER_ARGS= -x physcalc -d ${WRKDIR}
NO_WRKSUBDIR= yes
USE_ZIP= yes
DEFS= -DSHAREDIR="\"${PREFIX}/share/physcalc/\""
SRCS= physconv.c physmain.c physmlib.c physnode.c physoper.c \
physsolv.c
pre-build:
${REINPLACE_CMD} -e "s@void main@int main@g" ${WRKSRC}/physmain.c
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEFS} ${SRCS} -lm -o physcalc)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/physcalc ${PREFIX}/bin
${MKDIR} ${PREFIX}/share/physcalc
${INSTALL_DATA} ${WRKSRC}/*.phy ${PREFIX}/share/physcalc
.include <bsd.port.mk>