freebsd-ports/math/physcalc/Makefile
Ying-Chieh Liao 161b751262 Replace ${PERL} with ${REINPLACE_CMD}
PR:		39656
Submitted by:	Oliver Braun <obraun@informatik.unibw-muenchen.de>
2002-06-22 17:06:27 +00:00

39 lines
896 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
CATEGORIES= math
MASTER_SITES= ftp://ftp.lightlink.com/pub/vulcan/
DISTNAME= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
EXTRACT_BEFORE_ARGS= -aq
EXTRACT_AFTER_ARGS= -x physcalc -d ${WRKDIR}
NO_WRKSUBDIR= yes
USE_REINPLACE= 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>