Index: math/Makefile =================================================================== --- math/Makefile +++ math/Makefile @@ -79,6 +79,7 @@ SUBDIR += algae SUBDIR += algotutor SUBDIR += alt-ergo + SUBDIR += amath SUBDIR += analitza SUBDIR += ann SUBDIR += apc Index: math/amath/Makefile =================================================================== --- /dev/null +++ math/amath/Makefile @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= amath +PORTVERSION= 1.6.0 +CATEGORIES= math +MASTER_SITES= http://suyai.innolan.net/ + +MAINTAINER= cs@innolan.dk +COMMENT= Simple command line calculator + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +NO_ARCH= yes +HAS_CONFIGURE= yes +USE_GCC= yes +PLIST_FILES= bin/amath +AMATH_CMD= ${PORTNAME} + +post-configure: + @${REINPLACE_CMD} -e \ + "s/^CC = gcc/CC = ${CC}/" ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/amath ${STAGEDIR}${PREFIX}/bin/amath + +regression-test: build + @cd ${WRKSRC} && ${AMATH_CMD} test + +.include Index: math/amath/distinfo =================================================================== --- /dev/null +++ math/amath/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1468439952 +SHA256 (amath-1.6.0.tar.gz) = 82caf96dd59a72bf165892c9b8ec429c8f1bf6cecbaa4e9bbfc33b31537f3dbb +SIZE (amath-1.6.0.tar.gz) = 1073583 Index: math/amath/pkg-descr =================================================================== --- /dev/null +++ math/amath/pkg-descr @@ -0,0 +1,5 @@ +Features a case sensitive command line interface, internal IEEE 754 +calculations with 15 significant digits, calculations with real and +complex numbers, variables and user defined functions, logarithmic +and exponential functions, trigonometric and hyperbolic function +and selected mathematical constants and rounding functions.