head 1.48; access; symbols pkgsrc-2023Q4:1.48.0.40 pkgsrc-2023Q4-base:1.48 pkgsrc-2023Q3:1.48.0.38 pkgsrc-2023Q3-base:1.48 pkgsrc-2023Q2:1.48.0.36 pkgsrc-2023Q2-base:1.48 pkgsrc-2023Q1:1.48.0.34 pkgsrc-2023Q1-base:1.48 pkgsrc-2022Q4:1.48.0.32 pkgsrc-2022Q4-base:1.48 pkgsrc-2022Q3:1.48.0.30 pkgsrc-2022Q3-base:1.48 pkgsrc-2022Q2:1.48.0.28 pkgsrc-2022Q2-base:1.48 pkgsrc-2022Q1:1.48.0.26 pkgsrc-2022Q1-base:1.48 pkgsrc-2021Q4:1.48.0.24 pkgsrc-2021Q4-base:1.48 pkgsrc-2021Q3:1.48.0.22 pkgsrc-2021Q3-base:1.48 pkgsrc-2021Q2:1.48.0.20 pkgsrc-2021Q2-base:1.48 pkgsrc-2021Q1:1.48.0.18 pkgsrc-2021Q1-base:1.48 pkgsrc-2020Q4:1.48.0.16 pkgsrc-2020Q4-base:1.48 pkgsrc-2020Q3:1.48.0.14 pkgsrc-2020Q3-base:1.48 pkgsrc-2020Q2:1.48.0.12 pkgsrc-2020Q2-base:1.48 pkgsrc-2020Q1:1.48.0.8 pkgsrc-2020Q1-base:1.48 pkgsrc-2019Q4:1.48.0.10 pkgsrc-2019Q4-base:1.48 pkgsrc-2019Q3:1.48.0.6 pkgsrc-2019Q3-base:1.48 pkgsrc-2019Q2:1.48.0.4 pkgsrc-2019Q2-base:1.48 pkgsrc-2019Q1:1.48.0.2 pkgsrc-2019Q1-base:1.48 pkgsrc-2018Q4:1.47.0.18 pkgsrc-2018Q4-base:1.47 pkgsrc-2018Q3:1.47.0.16 pkgsrc-2018Q3-base:1.47 pkgsrc-2018Q2:1.47.0.14 pkgsrc-2018Q2-base:1.47 pkgsrc-2018Q1:1.47.0.12 pkgsrc-2018Q1-base:1.47 pkgsrc-2017Q4:1.47.0.10 pkgsrc-2017Q4-base:1.47 pkgsrc-2017Q3:1.47.0.8 pkgsrc-2017Q3-base:1.47 pkgsrc-2017Q2:1.47.0.4 pkgsrc-2017Q2-base:1.47 pkgsrc-2017Q1:1.47.0.2 pkgsrc-2017Q1-base:1.47 pkgsrc-2016Q4:1.46.0.12 pkgsrc-2016Q4-base:1.46 pkgsrc-2016Q3:1.46.0.10 pkgsrc-2016Q3-base:1.46 pkgsrc-2016Q2:1.46.0.8 pkgsrc-2016Q2-base:1.46 pkgsrc-2016Q1:1.46.0.6 pkgsrc-2016Q1-base:1.46 pkgsrc-2015Q4:1.46.0.4 pkgsrc-2015Q4-base:1.46 pkgsrc-2015Q3:1.46.0.2 pkgsrc-2015Q3-base:1.46 pkgsrc-2015Q2:1.44.0.12 pkgsrc-2015Q2-base:1.44 pkgsrc-2015Q1:1.44.0.10 pkgsrc-2015Q1-base:1.44 pkgsrc-2014Q4:1.44.0.8 pkgsrc-2014Q4-base:1.44 pkgsrc-2014Q3:1.44.0.6 pkgsrc-2014Q3-base:1.44 pkgsrc-2014Q2:1.44.0.4 pkgsrc-2014Q2-base:1.44 pkgsrc-2014Q1:1.44.0.2 pkgsrc-2014Q1-base:1.44 pkgsrc-2013Q4:1.43.0.4 pkgsrc-2013Q4-base:1.43 pkgsrc-2013Q3:1.43.0.2 pkgsrc-2013Q3-base:1.43 pkgsrc-2013Q2:1.42.0.8 pkgsrc-2013Q2-base:1.42 pkgsrc-2013Q1:1.42.0.6 pkgsrc-2013Q1-base:1.42 pkgsrc-2012Q4:1.42.0.4 pkgsrc-2012Q4-base:1.42 pkgsrc-2012Q3:1.42.0.2 pkgsrc-2012Q3-base:1.42 pkgsrc-2012Q2:1.41.0.10 pkgsrc-2012Q2-base:1.41 pkgsrc-2012Q1:1.41.0.8 pkgsrc-2012Q1-base:1.41 pkgsrc-2011Q4:1.41.0.6 pkgsrc-2011Q4-base:1.41 pkgsrc-2011Q3:1.41.0.4 pkgsrc-2011Q3-base:1.41 pkgsrc-2011Q2:1.41.0.2 pkgsrc-2011Q2-base:1.41 pkgsrc-2011Q1:1.40.0.14 pkgsrc-2011Q1-base:1.40 pkgsrc-2010Q4:1.40.0.12 pkgsrc-2010Q4-base:1.40 pkgsrc-2010Q3:1.40.0.10 pkgsrc-2010Q3-base:1.40 pkgsrc-2010Q2:1.40.0.8 pkgsrc-2010Q2-base:1.40 pkgsrc-2010Q1:1.40.0.6 pkgsrc-2010Q1-base:1.40 pkgsrc-2009Q4:1.40.0.4 pkgsrc-2009Q4-base:1.40 pkgsrc-2009Q3:1.40.0.2 pkgsrc-2009Q3-base:1.40 pkgsrc-2009Q2:1.39.0.2 pkgsrc-2009Q2-base:1.39 pkgsrc-2009Q1:1.38.0.6 pkgsrc-2009Q1-base:1.38 pkgsrc-2008Q4:1.38.0.4 pkgsrc-2008Q4-base:1.38 pkgsrc-2008Q3:1.38.0.2 pkgsrc-2008Q3-base:1.38 cube-native-xorg:1.37.0.6 cube-native-xorg-base:1.37 pkgsrc-2008Q2:1.37.0.4 pkgsrc-2008Q2-base:1.37 cwrapper:1.37.0.2 pkgsrc-2008Q1:1.33.0.6 pkgsrc-2008Q1-base:1.33 pkgsrc-2007Q4:1.33.0.4 pkgsrc-2007Q4-base:1.33 pkgsrc-2007Q3:1.33.0.2 pkgsrc-2007Q3-base:1.33 pkgsrc-2007Q2:1.32.0.4 pkgsrc-2007Q2-base:1.32 pkgsrc-2007Q1:1.32.0.2 pkgsrc-2007Q1-base:1.32 pkgsrc-2006Q4:1.31.0.2 pkgsrc-2006Q4-base:1.31 pkgsrc-2006Q3:1.30.0.2 pkgsrc-2006Q3-base:1.30 pkgsrc-2006Q2:1.29.0.4 pkgsrc-2006Q2-base:1.29 pkgsrc-2006Q1:1.29.0.2 pkgsrc-2006Q1-base:1.29 pkgsrc-2005Q4:1.27.0.6 pkgsrc-2005Q4-base:1.27 pkgsrc-2005Q3:1.27.0.4 pkgsrc-2005Q3-base:1.27 pkgsrc-2005Q2:1.27.0.2 pkgsrc-2005Q2-base:1.27 pkgsrc-2005Q1:1.25.0.2 pkgsrc-2005Q1-base:1.25 pkgsrc-2004Q4:1.24.0.2 pkgsrc-2004Q4-base:1.24 pkgsrc-2004Q3:1.22.0.2 pkgsrc-2004Q3-base:1.22 pkgsrc-2004Q2:1.21.0.4 pkgsrc-2004Q2-base:1.21 pkgsrc-2004Q1:1.21.0.2 pkgsrc-2004Q1-base:1.21 pkgsrc-2003Q4:1.19.0.2 pkgsrc-2003Q4-base:1.19 netbsd-1-6-1:1.13.0.2 netbsd-1-6-1-base:1.13 netbsd-1-6:1.10.0.8 netbsd-1-6-RELEASE-base:1.10 pkgviews:1.10.0.4 pkgviews-base:1.10 buildlink2:1.10.0.2 buildlink2-base:1.10 netbsd-1-5-PATCH003:1.10 netbsd-1-5-PATCH001:1.4 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.48 date 2018.12.31.16.35.25; author chuck; state Exp; branches; next 1.47; commitid KQQNT3baHVfugY5B; 1.47 date 2017.01.05.16.52.19; author roy; state Exp; branches; next 1.46; commitid TTUs7CssdWlcFNAz; 1.46 date 2015.08.18.07.31.12; author wiz; state Exp; branches; next 1.45; commitid UPpMIsB3AWu1PIxy; 1.45 date 2015.08.17.17.11.25; author wiz; state Exp; branches; next 1.44; commitid QQGz11WX4WB14Exy; 1.44 date 2014.01.15.16.23.31; author drochner; state Exp; branches; next 1.43; commitid vSAkdeHeVgZqpelx; 1.43 date 2013.07.15.02.02.25; author ryoon; state Exp; branches; next 1.42; commitid aGblgSa9xp3HyvXw; 1.42 date 2012.09.11.23.04.17; author asau; state Exp; branches; next 1.41; 1.41 date 2011.04.05.17.18.14; author drochner; state Exp; branches; next 1.40; 1.40 date 2009.09.03.09.59.09; author asau; state Exp; branches; next 1.39; 1.39 date 2009.05.20.00.58.21; author wiz; state Exp; branches; next 1.38; 1.38 date 2008.09.17.15.23.19; author bjs; state Exp; branches; next 1.37; 1.37 date 2008.06.20.01.09.24; author joerg; state Exp; branches; next 1.36; 1.36 date 2008.05.29.17.56.35; author drochner; state Exp; branches; next 1.35; 1.35 date 2008.05.06.06.17.15; author bjs; state Exp; branches; next 1.34; 1.34 date 2008.05.05.18.54.05; author drochner; state Exp; branches; next 1.33; 1.33 date 2007.09.18.19.40.19; author drochner; state Exp; branches; next 1.32; 1.32 date 2007.02.22.20.30.15; author drochner; state Exp; branches; next 1.31; 1.31 date 2006.10.13.16.52.47; author drochner; state Exp; branches; next 1.30; 1.30 date 2006.07.04.16.19.28; author drochner; state Exp; branches; next 1.29; 1.29 date 2006.03.04.21.30.03; author jlam; state Exp; branches; next 1.28; 1.28 date 2006.02.05.23.10.01; author joerg; state Exp; branches; next 1.27; 1.27 date 2005.05.22.20.08.13; author jlam; state Exp; branches; next 1.26; 1.26 date 2005.04.11.21.46.28; author tv; state Exp; branches; next 1.25; 1.25 date 2004.12.26.01.33.40; author wiz; state Exp; branches; next 1.24; 1.24 date 2004.10.03.00.12.55; author tv; state Exp; branches; next 1.23; 1.23 date 2004.09.21.00.10.01; author wiz; state Exp; branches; next 1.22; 1.22 date 2004.06.29.23.57.06; author wiz; state Exp; branches; next 1.21; 1.21 date 2004.03.23.04.41.01; author jlam; state Exp; branches; next 1.20; 1.20 date 2004.03.10.18.17.11; author wiz; state Exp; branches; next 1.19; 1.19 date 2003.09.28.09.13.58; author jlam; state Exp; branches; next 1.18; 1.18 date 2003.09.27.17.07.37; author grant; state Exp; branches; next 1.17; 1.17 date 2003.08.30.23.27.30; author wiz; state Exp; branches; next 1.16; 1.16 date 2003.07.17.21.47.23; author grant; state Exp; branches; next 1.15; 1.15 date 2003.07.13.13.52.29; author wiz; state Exp; branches; next 1.14; 1.14 date 2003.02.26.09.44.36; author wiz; state Exp; branches; next 1.13; 1.13 date 2003.01.16.15.40.12; author wiz; state Exp; branches; next 1.12; 1.12 date 2003.01.03.20.35.29; author wiz; state Exp; branches; next 1.11; 1.11 date 2002.10.25.18.38.41; author wiz; state Exp; branches; next 1.10; 1.10 date 2001.06.21.02.26.15; author jlam; state Exp; branches; next 1.9; 1.9 date 2001.06.11.06.34.42; author jlam; state Exp; branches; next 1.8; 1.8 date 2001.06.11.02.05.12; author jlam; state Exp; branches; next 1.7; 1.7 date 2001.06.10.00.08.46; author jlam; state Exp; branches; next 1.6; 1.6 date 2001.05.24.08.53.57; author jlam; state Exp; branches; next 1.5; 1.5 date 2001.05.16.20.28.40; author jlam; state Exp; branches; next 1.4; 1.4 date 2001.02.17.18.22.16; author wiz; state Exp; branches; next 1.3; 1.3 date 2001.02.08.15.59.53; author wiz; state Exp; branches; next 1.2; 1.2 date 2001.02.08.15.50.20; author wiz; state Exp; branches; next 1.1; 1.1 date 2001.02.08.10.25.54; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.02.08.10.25.54; author wiz; state Exp; branches; next ; desc @@ 1.48 log @capc-calc: update to 2.12.7.1 and fix darwin compile 2.12.7.1 is the latest stable version. for darwin use ${COMPILER_INCLUDE_DIRS} to find include dirs since /usr/include may not be there. also, we want INCDIR to point to the system includes, but we want CALC_INCDIR to point at ${PREFIX}/include/calc. minor updates to Makefile patch to do this. 2.12.4.13 to 2.12.7.1 changes from the calc maintainer's CHANGES file: The following are the changes from calc version 2.12.7.1 to date: Corrected CHANGES notes that were mixed up for TAB, VT, CR & NL. The code in 2.12.7.0 is correct. The CHANGE notes should have read: The following is a partial list of escape sequences recognized in strings and in printf formats: \a audible bell byte 0x07 in ASCII encoding \b backspace byte 0x08 in ASCII encoding \f form feed byte 0x0c in ASCII encoding \n newline byte 0x0a in ASCII encoding \r return byte 0x0d in ASCII encoding \t tab byte 0x09 in ASCII encoding \v vertical tab byte 0x0b in ASCII encoding Sorry! The following are the changes from calc version 2.12.6.10: to 2.12.7.0: Added a patch to replaces the manual search for include files in $(INCDIR) in the have_*.h targets with compiler invocations. Thanks goes to Helmut Grohne (helmut at subdivi dot de) who implemented the patch and posted it to the Debian bug tracker and Martin Buck (m at rtin-buck dor de) for forwarding it to us. The check_include make rule was fixed to not assume /usr/include. The qprintnum() function now takes outdigits as a 3rd argument. Most of the time, this 3rd argument is just conf->outdigits. But when it comes to the experimental '%g', this value can change. This avoids having to modify conf->outdigits. Fixed a problem where gcc complains about E_FUNC not being defined for Linux systems as reported by Martin Buck (m at rtin-buck dor de). Updated the help files help/config, help/display, help/epsilon, help/fprint, help/printf, and help/strprintf to give more examples of how display digits and epsilon precision interact with displaying values. Added more information about %g in the help file help/printf. The '\a' is now recognized in a printf format string as the single byte audible bell character (byte 0x07 in ASCII encoding). The following is a partial list of escape sequences recognized in strings and in printf formats: \a audible bell byte 0x07 in ASCII encoding \b backspace byte 0x08 in ASCII encoding \f form feed byte 0x0c in ASCII encoding \n newline byte 0x0a in ASCII encoding \r return byte 0x0d in ASCII encoding \t tab byte 0x09 in ASCII encoding \v vertical tab byte 0x0b in ASCII encoding The following are the changes from calc version 2.12.6.9 to 2.12.6.9: Fixed a number of core dump bugs related to the calculation of tan(), cot(), sec(), csc(), tanh(), coth(), sech(), and csch(), asin(), acos(), asinh(), acosh(), where when a call to an underlying function produced an invalid value. Thanks goes to github user wuxiuheng for reporting this problem. A number of trigonometric and hyperbolic functions that incorrectly returned E_LOGINF, now return a new error code that is more specific to the trigonometric or hyperbolic function. The following is a list of these new error codes: E_TAN3 E_TAN4 E_COT3 E_COT4 E_SEC3 E_CSC3 E_TANH3 E_TANH4 E_COTH3 E_COTH4 E_SECH3 E_CSCH3 E_ASIN3 E_ACOS3 E_ASINH3 E_ACOSH3 E_ATAN3 E_ACOT3 E_ASEC3 E_ACSC3 E_ATANH3 E_ACOTH3 E_ASECH3 E_ACSCH3. Added regression tests 3729 thru 3732 to test E_TAN3, E_COT3, E_SEC3 and E_CSC3 respectively. Added experimential %g printf (and strprintf) format implementation based on pull request from github user 10110111. Made exterimental changes to macOS builds to not require use of /usr/include. The INCDIR for macOS uses: INCDIR= $(shell xcrun --show-sdk-path --sdk macosx)/usr/include to determine the upper path of the /usr/include directory for macOS. In some rare cases, the Darwin target seems to not automatically detected. If you are running under macOS, and that happens, you can force the target to be Darwin: # for macOS users only, force the target to be darwin # make target=Darwin clobber make target=Darwin all make target=Darwin chk make target=Darwin install The following are the changes from calc version 2.12.6.6 to 2.12.6.8: For historical purposes, in lucas.cal, gen_v1(1, n) always returns 4. Fixed some compiler warnings, thanks to a report by Mike . Added work around for a gcc warning bug, thanks to a report by Mike . Fixed errors in various help files such as: mat randbit seed srandom types Removed the MAXSTRING symbol because it was no longer used by calc. Increased HIST_SIZE (depth of the history stack) from 10k to 32k. Increased TTYSIZE (reallocation size for terminal buffers) from 100 to 8191. Increased MAXDEPTH (maximum depth of input stack) from 10 to 255. Increased interactive input buffer size from 1024 to 256k. This has the effect of increasing the maximum length of an input line from a tty. This helps with an interactive bug that was reported by Ruslan Kabatsayev (b7 dot 10110111 at gmail dot com). The calc man page indicates that -d also disables the printing of the leading tilde. Added information to "help command" about how to silence messages while reading calc resource files. Fixed an error message buffer overflow thanks to a report by Frank Peters . Replaced all use of the C funcion sprintf() with snprintf(). Replaced all use of the C funcion vsprintf() with vsnprintf(). Replaced all DONT_HAVE_VSPRINTF with DONT_HAVE_VSNPRINTF. Replaced all Makefile var ${HAVE_VSPRINTF} with ${HAVE_VSNPRINTF}. The following are the changes from calc version 2.12.6.4 to 2.12.6.5: Fixed warning about undefined operations involving the qlink(q) macro by replacing that macro with an inline-function. Thanks goes to David Haller for this fix. NOTE for Windows 10 users: Pavel Nemec reported that calc version 2.12.6.4 has been successfully compiled, installed and running on Windows 10. See README.WINDOWS for more details. The following are the changes from calc version 2.12.6.1 to 2.12.6.3: Improved gen_v1(h,n) in lucas.cal to use an even faster search method. Improved are checking in lucas.cal. In particular both h and n must be integers >= 1. In the case of both rodseth_xhn(x, h, n) and gen_v1(h, n) h must be odd. Fixed an C code indenting issue that was reported by Thomas Walter in zfunc.c. Fixed a man page warning about ./myfile where the leading dot was mistook for an nroff macro. Thanks goes to David Haller for providing the patch. Improved gen_v1(h,n) in lucas.cal for cases where h is not a multiple of 3. Optimized the search for v(1) when h is a multiple of 3. Fixed a Makefile problem, reported by Doug Hays , where if a macOS user set BINDIR, LIBDIR, CALC_SHAREDIR or INCDIR in the top section, their values will be overwritten by the Darwin specific section. The following are the changes from calc version 2.12.6.0 to 2.12.6.0: Added the makefile variable ${COMMON_ADD} that will add flags to all compile and link commands. The ${COMMON_ADD} flags are appended to both ${COMMON_CFLAGS} and ${COMMON_LDFLAGS}. This facility is available to nearly all platforms except those with very old make commands that do not understand the += operator. Example on macOS (Darwin), one may invoke clang's -fsanitize facility by: make clobber all \ COMMON_ADD='-fsanitize=undefined -fsanitize=address' Another example. To force C warnings to be treated as errors: make COMMON_ADD='-Werror' Created a GitHub repository for calc: https://github.com/lcn2/calc NOTE: The calc GitHub repository represents the an active development stream. While an effort will be made to keep the master branch of the calc GitHub repository in working order, that tree may be unstable. Those wishing for more reliable releases use releases found at calc mirror sites: http://www.isthe.com/chongo/tech/comp/calc/calc-mirror.html IMPORTANT NOTE: On 2017 June 05, the calc GitHub history was re-written. Anyone who was tracking the calc "pre-release" on GitHub prior to version 2.12.6.0 should do a: git reset --hard origin/master git cleanup -f Or you may just want to start over: rm -rf calc git clone https://github.com/lcn2/calc.git Sorry about that. The previous GitHub repository was an useful experiment. Based on what we learned, we decided to rebuild it. Renamed README to README.FIRST. Added README.md for the GitHub repository. Fixed reading from standard input (stdin) when -p is given on the command line. This now prints hello: echo hello | calc -p 'stdin = files(0); print fgetline(stdin);' Added more debugging related to stdin when bit 4 of calc_debug is set (e.g., running calc with -D16). Updated the calc(1) man page and 'help file' to explain about reading from standard input (stdin). Added some clarifying remarks for 'help ptest' explaining that the ptest builtin can return 1 is some cases where the test value is a pseudoprime. Removed duplicate copyright comments from the help/builtin that is built. Fixed a number of typos in the CHANGES file. The following are the changes from calc version 2.12.5.4 to 2.12.5.6: Recompile to match current RHEL7.2 libc and friends. Added fix by Alexandre Fedotov to prepend ${T} in front of the CALCPATH path components ${CALC_SHAREDIR} and ${CUSTOMDIR}. Add ${T} in front of ${HELPDIR} and ${CUSTONHELPDIR} when making conf.h. Improved the jacobi help page. Rewrote gen_v1() in the lucas.cal resource file using the method based on a paper: "A note on primality tests for N = h*2^n-1", by Oystein J. Rodseth, Department of Mathematics, University of Bergen, BIT Numerical Mathematics. 34 (3): pp 451-454. http://folk.uib.no/nmaoy/papers/luc.pdf The improved gen_v1() function is capable of returning a value for all valid values of h and n. As a result, the trial tables used by gen_v1() have been changed to a short list of values to try, in order ot likelyhood of success, before doing an exhaustive search for a v1 value to return. Removed lucas_tbl.cal calc resource file. This file was made obsolete by the above rewrite of the lucas.cal resource file. This file will be removed from the local cal directory and from CALC_SHAREDIR during a 'make install', 'make clobber', and 'make uninstall'. Renamed gen_u0() to gen_u2() in lucas.cal. Provided a gen_u0() stub function that calls gen_u2() for backward compatibility. The old gen_v1() method used by the Amdahl 6 group has been renamed legacy_gen_v1() in lucas.cal. This function is no longer used by the lucas(h, n) function to test the primality of h*2^n-1. It is preserved in lucas.cal for historical purposes. The 'make clobber' rule will attempt to remove all files that start with libcalc and start with libcustcalc. The 'man' command is now an alias for the 'help' command. Fixed extra /'s that were put into CALCPATH because of ${T}. Fixed extra /'s that were compiled into HELPDIR and CUSTOMHELPDIR. The fix in 2.12.5.4 to to prepend ${T} in front of the CALCPATH path components ${CALC_SHAREDIR} and ${CUSTOMDIR} broke the calc rpm build process. The check-buildroot tool discovered that the BUILDROOT directory had been improperly put into various paths and binaries. This has been fixed in 2.12.5.5. Fixed a crash that showed up on macOS (Darwin) that was reported by Richard Outerbridge and fixed by Stuart Henderson . Thanks goes to both! The following are the changes from calc version 2.12.5.3 to 2.12.5.3: Calc version 2.12.5.2 for macOS (Darwin) users, code to installed calc under /opt/calc. Moreover the CHANGES file did not mention /opt/calc. Sorry about that!. A much better tree for macOS (Darwin) users would have been to install cal under /opt/calc. This release ONLY changes the macOS (Darwin) install tree to /usr/local. macOS (Darwin) users who installed calc version 2.12.5.2 should, after installing version 2.12.5.3: rm -rf /opt/calc The following are the changes from calc version 2.12.5.1 to 2.12.5.2: NOTE: calc version 2.12.5.2, for macOS (Darwin) users, installed under /opt/calc. We neglected to mention this AND /usr/local would have been a better choice. Sorry! Fixed in calc version 2.12.5.3. Removed rules and makefile variables associated with shortened calc version numbers of less than 4 levels. Under OS X (Darwin), if /usr/include is missing, warnings are issued to help the user use xcode-select --install so that one may properly compile C code. Lowered REDC levels: #define MAXREDC 256 /* number of entries in REDC cache */ #define SQ_ALG2 28 /* size for alternative squaring */ config("sq2") == 28 /* was 3388 */ #define MUL_ALG2 28 /* size for alternative multiply */ config("mul2") == 28 /* was 1780 */ #define POW_ALG2 20 /* size for using REDC for powers */ config("pow2") == 20 /* was 176 */ #define REDC_ALG2 25 /* size for using alternative REDC */ config("redc2") == 25 /* was 220 */ The alg_config.cal script appears to be not correctly finding the best REDC values. While it has been improved, alg_config.cal still seems to be suspect on how it attempts to find the best values. Fixed an intro help file mistake found by Roger Hardiman . The following are the changes from calc version 2.12.5.0 to 2.12.5.1: Calc has a new calc-tester mailing list. This list is for those who are using/testing calc. We also use this list to announce new versions of calc. To subscribe to the calc-tester mailing list, visit the following URL: http://www.isthe.com/chongo/tech/comp/calc/calc-tester.html This is a low volume moderated mailing list. This mailing list replaces calc-tester at asthe dot com list. If you need a human to help you with your mailing list subscription, please send Email to our special: calc-tester-maillist-help at asthe dot com address. To be sure we see your Email asking for help with your mailing list subscription, please use the following phase in your Email Subject line: calc tester mailing list help That phrase in your subject line will help ensure your request will get past our anti-spam filters. You may have additional words in your subject line. There is a new calc bug report Email address: calc-bug-report at asthe dot com This replaces the old calc-bugs at asthe dot com address. To be sure we see your Email reporting a calc bug, please use the following phase in your Email Subject line: calc bug report That phrase in your subject line will help ensure your request will get past our anti-spam filters. You may have additional words in your subject line. However, you may find it more helpful to simply subscribe to the calc-tester mailing list (see above) and then to send your report to that mailing list as a wider set calc testers may be able to help you. The following makefile rules that were related to printing the upper values of the calc version, rules that were made obsolete in calc version 2.12.4.14, have been removed: calc_vers calc_ver calc_ve vers ver ve Noted that the hash() builtin function, internally known as quickhash (used for internal objects such as the associative arrays as well as other internal processes) uses the deprecated 32-bit FNV-0 hash. The use of this deprecated hash is sufficient for calc internal purposes. Use of FNV-1a is recommended for a general non-cryptographic quick hash. The following are the changes from calc version 2.12.4.14 to 2.12.5.0: For Apple OS X / Darwin target: MACOSX_DEPLOYMENT_TARGET is no longer defined using clang compiler By default, -install-name is used when forming shared libs. To force -install-name to not be used, set SET_INSTALL_NAME=no. The have_stdvs.c test uses and fixed va_start() test call that didn't use last arg. Fixed math_fmt (printf) in value.c where a LEN (SB32) be printed as %d. Fixed a significant bug where that resulted in an incorrect complex number comparison. Thanks goes to David Binderman for identifying the subtle typo! Make minor fixes to the make depend rule. Fixed places were calc defined a reserved identifier that begin with either __ or _[A-Z]. For example, __FILE_H__ has been replaced with INCLUDE_FILE_H. Fixed the addall3 example in the script help file. Thanks for this fix goes to Igor Furlan . We made important fixes to the calc command line history: Fixed a bug in the command line history where calc would sometimes crash. There was code that used memcpy() instead of memmove() that could corrupt the command line history when entering a into into history that was similar to a previous entry. Thanks goes to Einar Lielmanis for first identifying this mistake. The calc command line history code, in general was not robust. We made use a patch from Mathias Buhr , that while it uses a bit more memory: is much more flexible, readable and robust. This patch replaced the improper use of memcpy() (see above) with better code. Thanks! The alg_config.cal calc resource file has been reworked to produce better diagnostics while attempting to determine the ideal values for mul2, sq2, and pow2. However, it has been shown that this code is not correct. Suggestions for a replacement are welcome! calc -u 'read alg_config; config("user_debug", 2),; best_mul2();' calc -u 'read alg_config; config("user_debug", 2),; best_sq2();' calc -u 'read alg_config; config("user_debug", 2),; best_pow2();' Fixed a number of pedantic compiler warnings. Removed -W and -Wno-comment from the the CCWARN makefile variable. Removed no_implicit.arg makefile rule. Removed HAVE_NO_IMPLICIT makefile variable. Removed no_implicit.c source file. Added WNO_IMPLICT makefile variable to hold the compiler flag -Wno-implicit for use on selective compile lines. Added WNO_ERROR_LONG_LONG makefile variable to hold the compiler flag -Wno-error=long-long for use on selective compile lines. Added WNO_LONG_LONG makefile variable to hold the compiler flag -Wno-long-long for use on selective compile lines. The makefile variable ${MKDIR_ARG} has been replaced with just -p. Minor fixes were made to the calc.spec.in file. The target rpm architecture changed from i686 to x86_64. For those who do not run machine with x86_64, we continue to release a src rpm. For those without the ability to process an rpm, we will always to release src tarball. When building the libcalc and libcustcalc shared libraries, ONLY the .so and .so.${VERSION} files are created. The .so is a symlink to the .so.${VERSION} file. Here ${VERSION} is the full "w.x.y.z" calc version. @ text @# $NetBSD: Makefile,v 1.47 2017/01/05 16:52:19 roy Exp $ # DISTNAME= calc-2.12.7.1 PKGNAME= capc-${DISTNAME:S/t/./} CATEGORIES= math MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calc/} EXTRACT_SUFX= .tar.bz2 MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= http://www.isthe.com/chongo/tech/comp/calc/ COMMENT= C arbitrary precision calculator MAKE_JOBS_SAFE= no USE_TOOLS+= gmake BUILD_TARGET= calc-static-only MAKE_ENV+= BLD_TYPE=calc-static-only target=pkgsrc MAKE_ENV+= DEBUG=${CFLAGS:M*:Q} # XXX Doesn't use curses, but we patch for it for readline stupidly FAKE_NCURSES= yes INSTALL_MAKE_FLAGS+= T=${DESTDIR} TEST_TARGET= check .include "../../mk/curses.buildlink3.mk" .include "../../mk/readline.buildlink3.mk" .include "../../mk/bsd.pkg.mk" @ 1.47 log @Use the curses framework. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.46 2015/08/18 07:31:12 wiz Exp $ d4 1 a4 1 DISTNAME= calc-2.12.4.13 a5 1 PKGREVISION= 3 @ 1.46 log @Bump all packages that depend on curses.bui* or terminfo.bui* since they might incur ncurses dependencies on some platforms, and ncurses just bumped its shlib. Some packages were bumped twice now, sorry for that. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.45 2015/08/17 17:11:25 wiz Exp $ d6 1 a6 1 PKGREVISION= 2 d22 3 d29 1 a29 1 .include "../../devel/ncurses/buildlink3.mk" @ 1.45 log @Bump PKGREVISION for ncurses shlib bump. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.44 2014/01/15 16:23:31 drochner Exp $ d6 1 a6 1 PKGREVISION= 1 @ 1.44 log @update to 2.12.4.13 changes: -additions to builtins and library -minor fixes @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.43 2013/07/15 02:02:25 ryoon Exp $ d6 1 @ 1.43 log @* .include "../../devel/readline/buildlink3.mk" with USE_GNU_READLINE=yes are replaced with .include "../../devel/readline/buildlink3.mk", and USE_GNU_READLINE are removed, * .include "../../devel/readline/buildlink3.mk" without USE_GNU_READLINE are replaced with .include "../../mk/readline.buildlink3.mk". @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.42 2012/09/11 23:04:17 asau Exp $ d4 1 a4 1 DISTNAME= calc-2.12.4.1 @ 1.42 log @"user-destdir" is default these days @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.41 2011/04/05 17:18:14 drochner Exp $ d26 1 a26 1 .include "../../devel/readline/buildlink3.mk" @ 1.41 log @update to 2.12.4.1 changes: -added dms/hms libraries (degree/hour-min-sec calculations) -bugfixes -documentation improvement @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.40 2009/09/03 09:59:09 asau Exp $ a13 2 PKG_DESTDIR_SUPPORT= user-destdir @ 1.40 log @Update to calc 2.12.4.0. User visible changes: Fixed a documentation bug for the sgn() builtin. Added the 1<<8/2 evaluation example to "help unexpected". That expression evalutes to 128, not 16 as some C programmers might expect. Fixed a bug in solve.cal where high was not returned in some situations. Fixed a bug reported by Paul & Karen Tomlinson (paulnkaz at pktomlinson dot fsnet dot co dot uk) where calling log multiple times with different values of epsilon resulted in an incorrect value. Fixed a bug where an certains typos (e.g., calling an unknown function) would previously cause calc to exit. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.39 2009/05/20 00:58:21 wiz Exp $ d4 1 a4 1 DISTNAME= calc-2.12.4.0 @ 1.39 log @Recursive ABI depends update and PKGREVISION bump for readline-6.0 shlib major change. Reported by Robert Elz in PR 41345. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.38 2008/09/17 15:23:19 bjs Exp $ d4 1 a4 1 DISTNAME= calc-2.12.3.3 a5 1 PKGREVISION= 1 d7 1 a7 2 MASTER_SITES= http://www.isthe.com/chongo/src/calc/ \ http://prdownloads.sourceforge.net/calc/ @ 1.38 log @Pass pkgsrc ${CFLAGS} to the build via ${DEBUG}. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.37 2008/06/20 01:09:24 joerg Exp $ d6 1 @ 1.37 log @Add DESTDIR support. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.36 2008/05/29 17:56:35 drochner Exp $ d22 1 @ 1.36 log @update to 2.12.3.3 changes: minor fixes (Darwin and build system) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.35 2008/05/06 06:17:15 bjs Exp $ d15 2 d23 2 @ 1.35 log @ Mark this package MAKE_JOBS_SAFE=no. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.34 2008/05/05 18:54:05 drochner Exp $ d4 1 a4 1 DISTNAME= calc-2.12.3.0 @ 1.34 log @update to 2.12.3.0 (most recent stable release) changes: -build system improvements -Fixed bug where a FILEPOS was copied FPOS_POS_BITS octets instead of FPOS_POS_LEN octets. -documentation improvements @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.33 2007/09/18 19:40:19 drochner Exp $ d15 2 @ 1.33 log @update to 2.12.2 This is a major release. Significant changes include: * calc may be built with static or dynamic shared libraries * overhauled Makefiles to use system targets - replaced compiler sets with host targets - targets include: linux, OS X, FreeBSD, simple, default - many changes to Makefile variables * calc source static and extern variables declared with CPP symbols - to make it easier to compile under certain Windoz environments - to assist those who are developing a multi-threaded calc lib * calc library makes it easier to control parse and scan messages * added Makefile.simple for hosts without GNU Make * added custom registers - when calc is run with the -C flag * dropped support of md5 and sha-0 hashes * calc supports real and complex exponentiation bases and exponents - i.e., 2.5 ^ 3.5, 0.5i ^ 0.25, 2.5 ^ 2.718i, 3.13145i ^ 0.30103i added TEST_TARGET @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.32 2007/02/22 20:30:15 drochner Exp $ d4 1 a4 1 DISTNAME= calc-2.12.2 d9 1 @ 1.32 log @update to 2.12.1.8 changes: Documentation of # operator, comments, and cscripts. Documented multi-line statement issues. Added builtins related to user, system and clock time. Changed runtime() builtin output. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.31 2006/10/13 16:52:47 drochner Exp $ d4 1 a4 1 DISTNAME= calc-2.12.1.8 d15 4 @ 1.31 log @update to 2.12.1.5 The changelog is not very clear, afaics there are some build system and documentation fixes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.30 2006/07/04 16:19:28 drochner Exp $ d4 1 a4 1 DISTNAME= calc-2.12.1.5 @ 1.30 log @update to 2.12.0.6 too many changes and additions to list here, see the CHANGELOG file @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.29 2006/03/04 21:30:03 jlam Exp $ d4 1 a4 1 DISTNAME= calc-2.12.0.6 @ 1.29 log @Point MAINTAINER to pkgsrc-users@@NetBSD.org in the case where no developer is officially maintaining the package. The rationale for changing this from "tech-pkg" to "pkgsrc-users" is that it implies that any user can try to maintain the package (by submitting patches to the mailing list). Since the folks most likely to care about the package are the folks that want to use it or are already using it, this would leverage the energy of users who aren't developers. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.28 2006/02/05 23:10:01 joerg Exp $ d4 1 a4 1 DISTNAME= calc-2.11.10.1 a5 1 PKGREVISION= 1 @ 1.28 log @Recursive revision bump / recommended bump for gettext ABI change. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.27 2005/05/22 20:08:13 jlam Exp $ d11 1 a11 1 MAINTAINER= tech-pkg@@NetBSD.org @ 1.27 log @Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions: USE_GNU_TOOLS -> USE_TOOLS awk -> gawk m4 -> gm4 make -> gmake sed -> gsed yacc -> bison @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.26 2005/04/11 21:46:28 tv Exp $ d6 1 @ 1.26 log @Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.25 2004/12/26 01:33:40 wiz Exp $ d14 1 a14 1 USE_GNU_TOOLS+= make @ 1.25 log @Update to 2.11.10.1. Changes since 2.11.10: Fixed a bug reported by the sourceforge user: cedars where: ln(exp(6)) == 3 /* WRONG!!! */ incorrectly returned 1. This bug was fixed by Ernest Bowen The regression test was expanded to cover this issue. Added minor improvements to hash regression testing of pi(). Fixed "help script" and the calc man page regarding the requirement of -f to be the last -flag in shell script mode. Further clarified the meaning and placement of the -f flag. Moved issues with chi.cal intfile.cal into a "mis-features" section of the BUGS file. See "help bugs" or the BUGS source file for details. Added the bug about: calc 'read ellip; efactor(13*17*19)' to the BUGS file. See "help bugs" or the BUGS source file for details. Anyone want to track down and fix this bug? @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.24 2004/10/03 00:12:55 tv Exp $ a13 1 USE_BUILDLINK3= yes @ 1.24 log @Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10 in the process. (More information on tech-pkg.) Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and installing .la files. Bump PKGREVISION (only) of all packages depending directly on the above via a buildlink3 include. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.23 2004/09/21 00:10:01 wiz Exp $ d4 1 a4 1 DISTNAME= calc-2.11.10 a5 1 PKGREVISION= 1 @ 1.23 log @Update to 2.11.10, and drop maintainership. This release adds changes to better support compiling under cygwin, improved custom function support, including the addition of the pmodm127 example and config("compile_custom") and config("allow_custom") calls, and a missing display help file. It fixes configuration state hashing, document typos, calc -d (to disable printing of the leading ~), and some compilation warnings reported under OS X. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2004/06/29 23:57:06 wiz Exp $ d6 1 @ 1.22 log @Update to 2.11.9.3: This release fixes a bug related to post incrementing, some regression failures related to compiling under cygwin, and a number of gcc compiler warnings. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2004/03/23 04:41:01 jlam Exp $ d4 1 a4 1 DISTNAME= calc-2.11.9.3 d10 1 a10 1 MAINTAINER= wiz@@NetBSD.org d15 1 @ 1.21 log @USE_BUILDLINK3 must be set to "yes" or "no", not defined/undefined. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2004/03/10 18:17:11 wiz Exp $ d4 1 a4 1 DISTNAME= calc-2.11.9.2 @ 1.20 log @Update to 2.11.9.2: Fixed calc man page examples to move -f to the end of the line. Thanks goes to Michael Somos for pointing this out. Linux and gcc now compiled with -Wall -W -Wno-comment. Fixed a post increment that was reported by R. Trinler and fixed by Ernest Bowen . Fixed pi.cal to not depend on the buggy pre-2.11.9 post increment behavior. Added config("cygwin") to determine if calc was compiled under Cygwin. The config("cygwin") is a read-only configuration value that is 1 when calc was compiled under Cygwin and 0 otherwise. Regression tests 949 and 950 are skipped when config("cygwin") is true. The Makefile variable HAVE_NO_IMPLICIT is empty by default so that the Makefile will test if the compiler has a -Wno-implicit flag. Added HAVE_UNUSED Makefile variable. If HAVE_UNUSED is empty, then the Makefile will run the have_unused program to determine if the unused attribute is supported. If HAVE_UNUSED is set to -DHAVE_NO_UNUSED, then the unused attribute will not be used. The Makefile builds have_unused.h which defines, if the unused attribute is supported: #define HAVE_UNUSED /* yes */ #define UNUSED __attribute__((unused)) /* yes */ or defines, if the unused is not supported (or if the Makefile variable is HAVE_UNUSED= -DHAVE_NO_UNUSED): #undef HAVE_UNUSED /* no */ #define UNUSED /* no */ Fixed numerous warnings about comparison between signed and unsigned value warnings and unused parameter warnings in version.c, zrand.c, string.c, shs1.c, shs.c, qtrans.c, qmath.c, qfunc.c, md5.c, matfunc.c, hist.c, file.c, const.c, blkcpy.c, seed.c, opcodes.c, func.c, qio.c, zrandom.c, custom/c_argv.c, custom/c_devnull.c, custom/c_help.c, custom/c_sysinfo.c, addop.c and calc.c. Fixed some typos in this file. By default, compile with -O3 -g3. The Makefile comments on how some distributions might need to use -O2 -g or -O -g. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2003/09/28 09:13:58 jlam Exp $ d14 1 a14 1 USE_BUILDLINK3= # defined @ 1.19 log @Back out last change related to moving ncurses/buildlink2.mk to curses.buildlink2.mk. This was wrong because we _really_ do want to express that we want _n_curses when we include the buildlink2.mk file. We should have a better way to say that the NetBSD curses doesn't quite work well enough. In fact, it's far better to depend on ncurses by default, and exceptionally note when it's okay to use NetBSD curses for specific packages. We will look into this again in the future. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2003/09/27 17:07:37 grant Exp $ d4 1 a4 1 DISTNAME= calc-2.11.8 d14 1 a14 1 USE_BUILDLINK2= # defined d16 2 a17 2 .include "../../devel/ncurses/buildlink2.mk" .include "../../devel/readline/buildlink2.mk" @ 1.18 log @move ncurses/buildlink2.mk to mk/curses.buildlink2.mk, as it provides support for base system curses/ncurses as well as ncurses itself. suggested by wiz. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2003/08/30 23:27:30 wiz Exp $ d16 1 a16 1 .include "../../mk/curses.buildlink2.mk" @ 1.17 log @Update to 2.11.8: Clarify that the internal hash as well as the hash builtin function used by calc, while based on the Fowler/Noll/Vo hash is NOT an FNV hash. Made slight performance improvements to calc by an optimization of how calc's internal hash is computed. The "make chk" regression test runs about 1.5% faster (when compiled with -O3 on an AMD Athlon) NO_HASH_CPU_OPTIMIZATION is not defined. Calc's internal hash values have not changed. By default, NO_HASH_CPU_OPTIMIZATION is NOT defined and the slightly faster expression is used. A slight modification of what was known as the "calc new stardard" configuration (calc -n or config("all", "newstd")) is now the default calc configuration. The flag: calc -O was added to get the old classic calc configuration. The flag command line flag, -n, now does nothing. Use of -n is deprecated and may go away / be used for something else in the future. The following table gives the summary of these changes: pre v2.11.8 v2.11.8 default pre v2.11.8 -O & oldstd v2.11.8 and oldstd -n & newstd classic cfg default -------------------------------------------------------- epsilon 1e-20 1e-10 1e-20 1e-20 quo 2 2 2 2 outround 2 24 2 24 leadzero 0 1 0 1 fullzero 0 1 0 0 prompt > ; > ; more >> ;; >> ;; With the exception of epsilon being 1e-20, and fullzero being unset, the new default calc config is like it was (pre-2.11.8) with calc -n / config("all", "newstd"). The new default config is the old classic config with outround being 24, leadzero being set, and the prompts being ;'s. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2003/07/17 21:47:23 grant Exp $ d16 1 a16 1 .include "../../devel/ncurses/buildlink2.mk" @ 1.16 log @s/netbsd.org/NetBSD.org/ @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2003/07/13 13:52:29 wiz Exp $ d4 1 a4 1 DISTNAME= calc-2.11.7 a5 1 PKGREVISION= 1 @ 1.15 log @PKGREVISION bump for libiconv update. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2003/02/26 09:44:36 wiz Exp $ d11 1 a11 1 MAINTAINER= wiz@@netbsd.org @ 1.14 log @Update to 2.11.7: Makefile changes, bugfixes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2003/01/16 15:40:12 wiz Exp $ d6 1 @ 1.13 log @Update to 2.11.6.2 Changes: New repeat.cal, bug and portability fixes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2003/01/03 20:35:29 wiz Exp $ d4 1 a4 1 DISTNAME= calc-2.11.6.2 d16 1 @ 1.12 log @Update to 2.11.6. News: base2(), powerterm, lavarand -> LavaRnd, fproduct, and lots of bug fixes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2002/10/25 18:38:41 wiz Exp $ d4 1 a4 1 DISTNAME= calc-2.11.6 @ 1.11 log @buildlink1 -> buildlink2. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2001/06/21 02:26:15 jlam Exp $ d4 1 a4 1 DISTNAME= calc-2.11.4t2 d8 1 a8 1 ftp://ftp.batnet.com/wombats/noll/ftp/pub/calc/ @ 1.10 log @Mark as USE_BUILDLINK_ONLY. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2001/06/11 06:34:42 jlam Exp $ d14 1 a14 1 USE_BUILDLINK_ONLY= # defined d16 1 a16 1 .include "../../devel/readline/buildlink.mk" @ 1.9 log @CPPFLAGS is now passed to MAKE_ENV and CONFIGURE_ENV by bsd.pkg.mk, so adapt by moving CPPFLAGS settings to top-level, and removing explicit inclusion of CPPFLAGS into MAKE_ENV and CONFIGURE_ENV. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2001/06/11 02:05:12 jlam Exp $ d13 2 @ 1.8 log @The buildlink include and lib directories are added to CFLAGS, CPPFLAGS, CXXFLAGS, and LDFLAGS by the buildlink.mk files so remove the extra definitions to add them from the package Makefiles. As advised by the bsd.buildlink.mk file, also ensure that the buildlink.mk files are included prior to defining any package-specific CFLAGS/LDFLAGS to ensure that the buildlink directories are at the head of the compiler search paths. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2001/06/10 00:08:46 jlam Exp $ a14 3 MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" @ 1.7 log @Remove dependency on ${BUILDLINK_TARGETS} in pre-configure and pre-build targets as the buildlink.mk files now add the dependency automatically. Remove any NO_CONFIGURE definitions as they seem to be useless. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2001/05/24 08:53:57 jlam Exp $ a16 2 CPPFLAGS+= -I${BUILDLINK_INCDIR} LDFLAGS+= -L${BUILDLINK_LIBDIR} @ 1.6 log @Standardize name of file to include for build-links to be "buildlink.mk". Use BUILDLINK_INCDIR, BUILDLINK_LIBDIR for locations of linked headers and libraries. Create a variable BUILDLINK_TARGETS whose value is the list of build-link targets to execute. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2001/05/16 20:28:40 jlam Exp $ a13 2 NO_CONFIGURE= # defined a18 2 pre-build: ${BUILDLINK_TARGETS} @ 1.5 log @Use devel/readline/Makefile.readline to handle using libedit readline emulation or depending on the readline package. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2001/02/17 18:22:16 wiz Exp $ d16 1 a16 1 .include "../../devel/readline/Makefile.readline" d19 2 a20 2 CPPFLAGS+= -I${WRKINCDIR} LDFLAGS+= -L${WRKLIBDIR} d22 1 a22 1 pre-build: link-readline-headers link-readline-libs @ 1.4 log @Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2001/02/08 15:59:53 wiz Exp $ d16 7 a22 7 .if exists(/usr/include/readline.h) && !exists(/usr/include/readline/readline.h) post-patch: ${SED} -e "s|readline/readline.h|readline.h|" \ -e "s|readline/history.h|history.h|" ${WRKSRC}/hist.c > \ ${WRKSRC}/hist.c.new && \ ${MV} -f ${WRKSRC}/hist.c.new ${WRKSRC}/hist.c .endif @ 1.3 log @Remove a MASTER_SITE, fix path on a second one, and tell mv we're sure. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2001/02/08 15:50:20 wiz Exp $ d12 1 @ 1.2 log @Try to be backwards compatible in readline emulation usage for older versions of NetBSD. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2001/02/08 10:25:54 wiz Exp $ d8 1 a8 2 ftp://ftp.batnet.com/wombats/noll/ftp/calc/ \ ftp://ftp.uu.net/ftp/calc/ d20 1 a20 1 ${MV} ${WRKSRC}/hist.c.new ${WRKSRC}/hist.c @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD$ d15 8 @ 1.1.1.1 log @Initial import of calc (renamed to capc-calc because of existing calc package): C arbitrary precision calculator Requested by Chuck Cranor. @ text @@