# $Id$ PortSystem 1.0 name calc version 2.12.4.13 categories math license LGPL-2.1 maintainers nomaintainer description Arbitrary precision calculator long_description \ Calc is an interactive calculator which provides for easy large numeric \ calculations, but which also can be easily programmed for difficult or \ long calculations. It can accept a command line argument, in which case \ it executes that single command and exits. Otherwise, it enters \ interactive mode. There are a great number of pre-defined functions. The \ calculator can calculate transcendental functions, and accept and display \ numbers in real or exponential format. The calculator also knows about \ complex numbers. platforms darwin homepage http://www.isthe.com/chongo/tech/comp/calc/ master_sites sourceforge:project/calc/calc/${version} use_bzip2 yes checksums rmd160 c04d995a500ad7b0be27afbb6edaa6978c42437e \ sha256 1e6fd3256bd7bf738fcfe6e2d6a9d8a6bb0f37393aba6020b01d96274419a92c depends_lib port:readline port:ncurses patchfiles patch-Makefile.diff post-patch { reinplace "s|___PREFIX___|${prefix}|" ${worksrcpath}/Makefile reinplace "s|___DESTROOT___|${destroot}|" ${worksrcpath}/Makefile reinplace "s|___CC___|${configure.cc}|" ${worksrcpath}/Makefile } use_configure no use_parallel_build no variant universal {} build.args-append DARWIN_ARCH="[get_canonical_archflags]" \ MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target} test.run yes test.target check destroot.destdir