pkgsrc-wip/mawk/Makefile

22 lines
400 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.4 2010/01/27 10:53:40 thomasklausner Exp $
Import mawk-1.3.3.20090820 as wip/mawk. Mike Brennan's awk clone. It's fast (faster than gawk), and relatively small. After 13 years of stagnation, mawk now has a new maintainer. Lots of bug fixes. Most pkgsrc patches were applied. Changes by Thomas E Dickey <dickey@invisible-island.net> 20090820 minor portability/standards fixes for examples/hical add WHINY_USERS sorted-array feature, for compatibility with gawk (patch by Aharon Robbins). correct lower-limit for d_to_U() function, which broke conversion of zero in "%x" format, added in fix for Debian #303825 (report by Masami Hiramatsu). modify "%s" and "%c" formatting in printf/sprintf commands to ensure that "%02s" does not do zero-padding, for standards conformance (discussion with Aharon Robbins, Mike Brennan, prompted by Debian #339799). 20090728 add fallback definitions for GCC_NORETURN and GCC_UNUSED to build with non-gcc compilers (report by Jan Wells). 20090727 add check/fix to prevent gsub from recurring to modify on a substring of the current line when the regular expression is anchored to the beginning of the line; fixes gawk's anchgsub testcase. add check for implicit concatenation mistaken for exponent; fixes gawk's hex testcase. add character-classes to built-in regular expressions. add 8-bit locale support 20090726 improve configure checks for MAX__UINT. add a check for infinite loop in REmatch(), to work with gawk's noloop1 testcase. modify logic to allow setting RS to an explicit null character, e.g., RS="\0" (Ubuntu #400409). modify workaround for (incorrect) scripts which use a zero-parameter for substr to ensure the overall length of the result stays the same. For example, from makewhatis: filename_no_gz = substr(filename, 0, RSTART - 1); move regular-expression files into main directory to simplify building using configure --srcdir and VPATH. modify internal functions for gsub() to handle a case from makewhatis script from man 1.6f which substitutes embedded zero bytes to a different value (report by Gabor Z Papp). change default for configure --with-builtin-regex to prefer the builtin regular expressions. They are incomplete, but POSIX regular expressions cannot match nulls embedded in strings. require standard C compiler; converted to ANSI C. rename #define'd SV_SIGINFO to MAWK_SV_SIGINFO to avoid predefined name on Mac OS X (report on comp.lang.awk). revise configure script to use conventional scheme for generating config.h 20090721 port to cygwin, modifying test-script to work with executable-suffix and fp-exception code to allow const in declaration. 20090712 update patch-date. fix Debian #127293 "mawk does not understand unescaped '/' in character classes", noting that gawk 3.1.6 also has problems with this area. drop support for varargs; use stdarg only. add tags rule to makefile. rename configure option "--with-local-regexp" to "--with-builtin-regex" add build-fix from NetBSD port: enable vax FP support when defined(__vax__) as well as BSD43_VAX. from ragge. add configure --disable-echo option identify updated files with "MawkId" keywords, retaining old log comments for reference. Ongoing changes are recorded here. update maintainer email address. 20090711 use conventional install/uninstall rules in makefile. add install-sh script, mkdirs.sh, config.guess and config.sub add $DESTDIR support to makefile add uninstall make-target add configure --enable-warnings option (fixed some warnings...) update configure script to autoconf 2.52 to permit cross-compiles. drop config.user file; replace with conventional autoconf --prefix, etc. fill-in CA_REC.type in two places in parse.y which weren't initialized. fix Debian #38353 (absent expression on last part of "for" statement caused core-dump). fix Debian #303825 (printf %x clamps numbers to signed range rather than unsigned range). apply fix from Debian #355966 (null-pointer check in is_string_split()) apply fix from Debian #391051 (limit-check in scan.c) 20090709 add patch from Aleksey Cheusov for external regexp libraries (originally comp.lang.awk June 15 2005, also cited in Debian #355442 March 6, 2006). 20090705 fixes to build on BeOS (if LIBS is set to -lroot), and QNX (redefinition of setmode). 20080909 fix gcc 4.3.1 -Wall warnings transform mawk.ac.m4 to aclocal.m4, renaming macros to use "CF_" or "CF_MAWK_" prefixes depending on their reusability. Modified macros to use quoting consistent with recent autoconf versions. regenerate configure with autoconf version 2.13.20030927 regenerate parse.c with byacc - 1.9 20080827 ifdef'd prototypes in nstd.h which belong to stdlib.h, string.h to use standard C by default. source-in Debian patches 01-08 (see below). Changes for 20080909 fix Debian #496980 as well. ------------------------------------------------------------------------------- Debian patches: (Peter Eisentraut <petere@debian.org> Sat, 05 Apr 2008 17:11:11 +0200) 08_fix-for-gcc3.3 Debian #195371 (James Troup <james@nocrew.org> Fri, 30 May 2003 15:24:50 +0100) 07_mawktest-check-devfull Debian #51875 06_parse.y-semicolons Debian #170973 05_-Wall-fixes 04_mawk.1-fix-pi Debian #103699 03_read-and-close-redefinition Debian #104124 02_fix-examples Debian #36011 01_error-on-full-fs Debian #28249 Debian #4293
2009-09-12 14:08:13 +02:00
#
Update to the latest upstream release 1.3.4 Changes: 20091220 + bump version to 1.3.4 + update INSTALL and README files. + improve configure checks for math library. + change test for NaN to use sqrt() rather than log() to work around cygwin's partly broken math functions. + add/use isnanf() to work around other breakage in cygwin math functions. + add configure check for _XOPEN_SOURCE, etc., needed to define proper function pointer for sigaction, e.g., on Tru64. + add check for sigaction function pointer, whose POSIX form is absent from the cygwin header. + extend MAWKBINMODE, adding a third bit which when set will suppress the change for RS or ORS to use CR/LF rather than LF. This is used for MinGW to make the "check" rule in a build work, for instance. + add configure check for functions used for pipe/system calls, e.g., for MinGW where these are absent. + add runtime check for floating-point underflow exceptions + fix an old 1.3.3 bug in re_split(), which did not check properly for the end of buffer; this broke on Tru64. + drop obsolete config-user, v7 and atarist subdirectories + improve configure checks for sigaction, making the definitions used in fpe_check.c consistent with matherr.c + build fixes for AIX, Tru64. + add configure check for 'environ'. + remove redundant setlocale() calls; only LC_CTYPE and LC_NUMERIC are used. 20091213 + add makedeps.sh script to aid in updating object dependencies in Makefile.in + use "mkdir -p" rather than mkdirs.sh (suggested by Aleksey Cheusov). + reformatted this file, to simplify extraction of contributor names. + update config.guess and config.sub > patches by Jonathan Nieder: + modify CF_DISABLE_ECHO autoconf macro to ensure that command lines in Makefile.in begin with a tab. + the makefile does not use $(MAKE); remove the SET_MAKE substitution. + add some files to the "make clean" rule, in case make gets interrupted in the middle of a rule. + add a maintainer-clean rule to the makefile, to remove files which could be regenerated. + fix an unescaped "-" in man/mawk.1 + remove an unneeded cast in bi_funct.c + fix an unused parameter warning in matherr.c + drop unused line_no parameter from compile_error() and its callers. + convert makescan.c to ANSI C, do further cleanup of that file. + split-out scancode.h from scan.h
2009-12-21 21:38:53 +01:00
DISTNAME= mawk-1.3.4
Import mawk-1.3.3.20090820 as wip/mawk. Mike Brennan's awk clone. It's fast (faster than gawk), and relatively small. After 13 years of stagnation, mawk now has a new maintainer. Lots of bug fixes. Most pkgsrc patches were applied. Changes by Thomas E Dickey <dickey@invisible-island.net> 20090820 minor portability/standards fixes for examples/hical add WHINY_USERS sorted-array feature, for compatibility with gawk (patch by Aharon Robbins). correct lower-limit for d_to_U() function, which broke conversion of zero in "%x" format, added in fix for Debian #303825 (report by Masami Hiramatsu). modify "%s" and "%c" formatting in printf/sprintf commands to ensure that "%02s" does not do zero-padding, for standards conformance (discussion with Aharon Robbins, Mike Brennan, prompted by Debian #339799). 20090728 add fallback definitions for GCC_NORETURN and GCC_UNUSED to build with non-gcc compilers (report by Jan Wells). 20090727 add check/fix to prevent gsub from recurring to modify on a substring of the current line when the regular expression is anchored to the beginning of the line; fixes gawk's anchgsub testcase. add check for implicit concatenation mistaken for exponent; fixes gawk's hex testcase. add character-classes to built-in regular expressions. add 8-bit locale support 20090726 improve configure checks for MAX__UINT. add a check for infinite loop in REmatch(), to work with gawk's noloop1 testcase. modify logic to allow setting RS to an explicit null character, e.g., RS="\0" (Ubuntu #400409). modify workaround for (incorrect) scripts which use a zero-parameter for substr to ensure the overall length of the result stays the same. For example, from makewhatis: filename_no_gz = substr(filename, 0, RSTART - 1); move regular-expression files into main directory to simplify building using configure --srcdir and VPATH. modify internal functions for gsub() to handle a case from makewhatis script from man 1.6f which substitutes embedded zero bytes to a different value (report by Gabor Z Papp). change default for configure --with-builtin-regex to prefer the builtin regular expressions. They are incomplete, but POSIX regular expressions cannot match nulls embedded in strings. require standard C compiler; converted to ANSI C. rename #define'd SV_SIGINFO to MAWK_SV_SIGINFO to avoid predefined name on Mac OS X (report on comp.lang.awk). revise configure script to use conventional scheme for generating config.h 20090721 port to cygwin, modifying test-script to work with executable-suffix and fp-exception code to allow const in declaration. 20090712 update patch-date. fix Debian #127293 "mawk does not understand unescaped '/' in character classes", noting that gawk 3.1.6 also has problems with this area. drop support for varargs; use stdarg only. add tags rule to makefile. rename configure option "--with-local-regexp" to "--with-builtin-regex" add build-fix from NetBSD port: enable vax FP support when defined(__vax__) as well as BSD43_VAX. from ragge. add configure --disable-echo option identify updated files with "MawkId" keywords, retaining old log comments for reference. Ongoing changes are recorded here. update maintainer email address. 20090711 use conventional install/uninstall rules in makefile. add install-sh script, mkdirs.sh, config.guess and config.sub add $DESTDIR support to makefile add uninstall make-target add configure --enable-warnings option (fixed some warnings...) update configure script to autoconf 2.52 to permit cross-compiles. drop config.user file; replace with conventional autoconf --prefix, etc. fill-in CA_REC.type in two places in parse.y which weren't initialized. fix Debian #38353 (absent expression on last part of "for" statement caused core-dump). fix Debian #303825 (printf %x clamps numbers to signed range rather than unsigned range). apply fix from Debian #355966 (null-pointer check in is_string_split()) apply fix from Debian #391051 (limit-check in scan.c) 20090709 add patch from Aleksey Cheusov for external regexp libraries (originally comp.lang.awk June 15 2005, also cited in Debian #355442 March 6, 2006). 20090705 fixes to build on BeOS (if LIBS is set to -lroot), and QNX (redefinition of setmode). 20080909 fix gcc 4.3.1 -Wall warnings transform mawk.ac.m4 to aclocal.m4, renaming macros to use "CF_" or "CF_MAWK_" prefixes depending on their reusability. Modified macros to use quoting consistent with recent autoconf versions. regenerate configure with autoconf version 2.13.20030927 regenerate parse.c with byacc - 1.9 20080827 ifdef'd prototypes in nstd.h which belong to stdlib.h, string.h to use standard C by default. source-in Debian patches 01-08 (see below). Changes for 20080909 fix Debian #496980 as well. ------------------------------------------------------------------------------- Debian patches: (Peter Eisentraut <petere@debian.org> Sat, 05 Apr 2008 17:11:11 +0200) 08_fix-for-gcc3.3 Debian #195371 (James Troup <james@nocrew.org> Fri, 30 May 2003 15:24:50 +0100) 07_mawktest-check-devfull Debian #51875 06_parse.y-semicolons Debian #170973 05_-Wall-fixes 04_mawk.1-fix-pi Debian #103699 03_read-and-close-redefinition Debian #104124 02_fix-examples Debian #36011 01_error-on-full-fs Debian #28249 Debian #4293
2009-09-12 14:08:13 +02:00
CATEGORIES= lang
MASTER_SITES= ftp://invisible-island.net/mawk/
EXTRACT_SUFX= .tgz
Update to the latest upstream release 1.3.4 Changes: 20091220 + bump version to 1.3.4 + update INSTALL and README files. + improve configure checks for math library. + change test for NaN to use sqrt() rather than log() to work around cygwin's partly broken math functions. + add/use isnanf() to work around other breakage in cygwin math functions. + add configure check for _XOPEN_SOURCE, etc., needed to define proper function pointer for sigaction, e.g., on Tru64. + add check for sigaction function pointer, whose POSIX form is absent from the cygwin header. + extend MAWKBINMODE, adding a third bit which when set will suppress the change for RS or ORS to use CR/LF rather than LF. This is used for MinGW to make the "check" rule in a build work, for instance. + add configure check for functions used for pipe/system calls, e.g., for MinGW where these are absent. + add runtime check for floating-point underflow exceptions + fix an old 1.3.3 bug in re_split(), which did not check properly for the end of buffer; this broke on Tru64. + drop obsolete config-user, v7 and atarist subdirectories + improve configure checks for sigaction, making the definitions used in fpe_check.c consistent with matherr.c + build fixes for AIX, Tru64. + add configure check for 'environ'. + remove redundant setlocale() calls; only LC_CTYPE and LC_NUMERIC are used. 20091213 + add makedeps.sh script to aid in updating object dependencies in Makefile.in + use "mkdir -p" rather than mkdirs.sh (suggested by Aleksey Cheusov). + reformatted this file, to simplify extraction of contributor names. + update config.guess and config.sub > patches by Jonathan Nieder: + modify CF_DISABLE_ECHO autoconf macro to ensure that command lines in Makefile.in begin with a tab. + the makefile does not use $(MAKE); remove the SET_MAKE substitution. + add some files to the "make clean" rule, in case make gets interrupted in the middle of a rule. + add a maintainer-clean rule to the makefile, to remove files which could be regenerated. + fix an unescaped "-" in man/mawk.1 + remove an unneeded cast in bi_funct.c + fix an unused parameter warning in matherr.c + drop unused line_no parameter from compile_error() and its callers. + convert makescan.c to ANSI C, do further cleanup of that file. + split-out scancode.h from scan.h
2009-12-21 21:38:53 +01:00
MAINTAINER= vle@gmx.net
COMMENT= AWK clone by Mike Brennan
Import mawk-1.3.3.20090820 as wip/mawk. Mike Brennan's awk clone. It's fast (faster than gawk), and relatively small. After 13 years of stagnation, mawk now has a new maintainer. Lots of bug fixes. Most pkgsrc patches were applied. Changes by Thomas E Dickey <dickey@invisible-island.net> 20090820 minor portability/standards fixes for examples/hical add WHINY_USERS sorted-array feature, for compatibility with gawk (patch by Aharon Robbins). correct lower-limit for d_to_U() function, which broke conversion of zero in "%x" format, added in fix for Debian #303825 (report by Masami Hiramatsu). modify "%s" and "%c" formatting in printf/sprintf commands to ensure that "%02s" does not do zero-padding, for standards conformance (discussion with Aharon Robbins, Mike Brennan, prompted by Debian #339799). 20090728 add fallback definitions for GCC_NORETURN and GCC_UNUSED to build with non-gcc compilers (report by Jan Wells). 20090727 add check/fix to prevent gsub from recurring to modify on a substring of the current line when the regular expression is anchored to the beginning of the line; fixes gawk's anchgsub testcase. add check for implicit concatenation mistaken for exponent; fixes gawk's hex testcase. add character-classes to built-in regular expressions. add 8-bit locale support 20090726 improve configure checks for MAX__UINT. add a check for infinite loop in REmatch(), to work with gawk's noloop1 testcase. modify logic to allow setting RS to an explicit null character, e.g., RS="\0" (Ubuntu #400409). modify workaround for (incorrect) scripts which use a zero-parameter for substr to ensure the overall length of the result stays the same. For example, from makewhatis: filename_no_gz = substr(filename, 0, RSTART - 1); move regular-expression files into main directory to simplify building using configure --srcdir and VPATH. modify internal functions for gsub() to handle a case from makewhatis script from man 1.6f which substitutes embedded zero bytes to a different value (report by Gabor Z Papp). change default for configure --with-builtin-regex to prefer the builtin regular expressions. They are incomplete, but POSIX regular expressions cannot match nulls embedded in strings. require standard C compiler; converted to ANSI C. rename #define'd SV_SIGINFO to MAWK_SV_SIGINFO to avoid predefined name on Mac OS X (report on comp.lang.awk). revise configure script to use conventional scheme for generating config.h 20090721 port to cygwin, modifying test-script to work with executable-suffix and fp-exception code to allow const in declaration. 20090712 update patch-date. fix Debian #127293 "mawk does not understand unescaped '/' in character classes", noting that gawk 3.1.6 also has problems with this area. drop support for varargs; use stdarg only. add tags rule to makefile. rename configure option "--with-local-regexp" to "--with-builtin-regex" add build-fix from NetBSD port: enable vax FP support when defined(__vax__) as well as BSD43_VAX. from ragge. add configure --disable-echo option identify updated files with "MawkId" keywords, retaining old log comments for reference. Ongoing changes are recorded here. update maintainer email address. 20090711 use conventional install/uninstall rules in makefile. add install-sh script, mkdirs.sh, config.guess and config.sub add $DESTDIR support to makefile add uninstall make-target add configure --enable-warnings option (fixed some warnings...) update configure script to autoconf 2.52 to permit cross-compiles. drop config.user file; replace with conventional autoconf --prefix, etc. fill-in CA_REC.type in two places in parse.y which weren't initialized. fix Debian #38353 (absent expression on last part of "for" statement caused core-dump). fix Debian #303825 (printf %x clamps numbers to signed range rather than unsigned range). apply fix from Debian #355966 (null-pointer check in is_string_split()) apply fix from Debian #391051 (limit-check in scan.c) 20090709 add patch from Aleksey Cheusov for external regexp libraries (originally comp.lang.awk June 15 2005, also cited in Debian #355442 March 6, 2006). 20090705 fixes to build on BeOS (if LIBS is set to -lroot), and QNX (redefinition of setmode). 20080909 fix gcc 4.3.1 -Wall warnings transform mawk.ac.m4 to aclocal.m4, renaming macros to use "CF_" or "CF_MAWK_" prefixes depending on their reusability. Modified macros to use quoting consistent with recent autoconf versions. regenerate configure with autoconf version 2.13.20030927 regenerate parse.c with byacc - 1.9 20080827 ifdef'd prototypes in nstd.h which belong to stdlib.h, string.h to use standard C by default. source-in Debian patches 01-08 (see below). Changes for 20080909 fix Debian #496980 as well. ------------------------------------------------------------------------------- Debian patches: (Peter Eisentraut <petere@debian.org> Sat, 05 Apr 2008 17:11:11 +0200) 08_fix-for-gcc3.3 Debian #195371 (James Troup <james@nocrew.org> Fri, 30 May 2003 15:24:50 +0100) 07_mawktest-check-devfull Debian #51875 06_parse.y-semicolons Debian #170973 05_-Wall-fixes 04_mawk.1-fix-pi Debian #103699 03_read-and-close-redefinition Debian #104124 02_fix-examples Debian #36011 01_error-on-full-fs Debian #28249 Debian #4293
2009-09-12 14:08:13 +02:00
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
TEST_TARGET= mawk_test fpe_test
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= no
.include "../../mk/bsd.pkg.mk"