blob: 5d2fb87b614dd6cd311093bcf7502584171ead16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Created by: 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
CFLAGS+= -Wno-return-type
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>
|