2007-05-24 23:51:47 +02:00
|
|
|
# $NetBSD: Makefile,v 1.47 2007/05/24 21:51:47 dmcmahill Exp $
|
1997-10-06 16:06:09 +02:00
|
|
|
|
Update to 1.4.9:
Version 1.4.9 - 23 Mar 2007, by Eric Blake (CVS version 1.4.8c)
* Minor documentation and portability cleanups.
Version 1.4.8b - 24 Feb 2007, by Eric Blake (CVS version 1.4.8a)
* Fix a regression introduced in 1.4.8 that made m4 unable to process
files larger than 2GiB on some platforms.
* Fix a regression introduced in 1.4.8 that made m4 dump core when
invoked as 'm4 -- file'.
* The `eval' builtin now follows C precedence rules. Additionally, the
short-circuit operators correctly short-circuit division by zero. The
previously undocumented alias of '=' meaning '==' in eval now triggers a
deprecation warning, so that a future version of M4 can implement a form
of variable assignment as an extension.
* The `include' builtin now affects exit status on failure, as required by
POSIX. Use `sinclude' if you need a successful exit status.
* The `-E'/`--fatal-warnings' command-line option now has two levels. When
specified only once, warnings affect exit status, but execution
continues, so that you can see all warnings instead of fixing them one
at a time. To acheive 1.4.8 behavior, where the first warning
immediately exits, specify -E twice on the command line.
* A new `--warn-macro-sequence' command-line option allows detection of
sequences in `define' and `pushdef' definitions that match an optional
regular expression. The default regular expression is
`\$\({[^}]*}\|[0-9][0-9]+\)', corresponding to the sequences that might
not behave correctly when upgrading to the eventual M4 2.0. By default,
M4 2.0 will follow the POSIX requirement that a macro definition
containing `$11' must expand to the first argument concatenated with 1,
rather than the eleventh argument; and will take advantage of the POSIX
wording that allows implementations to treat `${11}' as the eleventh
argument instead of literal text. Be aware that Autoconf 2.61 will not
work with this option enabled with the default regular expression; but
Autoconf 2.62 will be compatible with this option.
* Improved portability to platforms such as BSD/OS and AIX.
2007-04-08 20:04:22 +02:00
|
|
|
DISTNAME= m4-1.4.9
|
2007-05-24 23:51:47 +02:00
|
|
|
PKGREVISION= 1
|
1997-10-06 16:06:09 +02:00
|
|
|
CATEGORIES= devel
|
2002-12-23 21:08:50 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=m4/}
|
1997-10-06 16:06:09 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-04 23:35:58 +02:00
|
|
|
HOMEPAGE= http://directory.fsf.org/gnum4.html
|
2004-09-03 11:47:05 +02:00
|
|
|
COMMENT= GNU version of UNIX m4 macro language processor
|
1997-10-06 16:06:09 +02:00
|
|
|
|
2004-01-05 12:28:07 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2006-11-02 18:59:37 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-01-05 12:28:07 +01:00
|
|
|
|
2001-07-14 13:54:12 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-03-30 05:44:41 +02:00
|
|
|
INFO_FILES= # PLIST
|
1998-01-24 05:20:19 +01:00
|
|
|
|
2003-08-09 09:03:14 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2002-12-23 21:08:50 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if defined(GNU_PROGRAM_PREFIX)
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX:Q}
|
2002-12-23 21:08:50 +01:00
|
|
|
.endif
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX:Q}
|
2002-12-23 21:08:50 +01:00
|
|
|
BUILD_DEFS+= GNU_PROGRAM_PREFIX
|
|
|
|
|
|
|
|
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
|
|
|
|
PLIST_SUBST+= GM4_LINK=""
|
|
|
|
.else
|
|
|
|
PLIST_SUBST+= GM4_LINK="@comment "
|
|
|
|
.endif
|
|
|
|
|
1997-10-06 16:06:09 +02:00
|
|
|
post-install:
|
2006-11-02 18:59:37 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/m4
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${DESTDIR}${PREFIX}/share/examples/m4
|
2002-12-23 21:08:50 +01:00
|
|
|
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
|
2006-11-02 18:59:37 +01:00
|
|
|
${LN} -sf ${GNU_PROGRAM_PREFIX}m4 ${DESTDIR}${PREFIX}/bin/gm4
|
2002-12-23 21:08:50 +01:00
|
|
|
.endif
|
1997-10-06 16:06:09 +02:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|